diff options
author | 2010-11-23 20:20:56 +0100 | |
---|---|---|
committer | 2010-11-23 20:20:56 +0100 | |
commit | d97566500324fae7b66b11a35f4916ab8339e707 (patch) | |
tree | 53126964c5c54570308c57ff6fd98e07d3b77f65 /plugins/sid/plugin.c | |
parent | cb4a7640cc1cba197a37bd8c3215096ba7d10102 (diff) |
ported SID plugin to new API;
added default play length option;
added Bits Per Sample option;
fixed Sample Rate option to have 44100 by default
Diffstat (limited to 'plugins/sid/plugin.c')
-rw-r--r-- | plugins/sid/plugin.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/plugins/sid/plugin.c b/plugins/sid/plugin.c index f2df0c62..86475545 100644 --- a/plugins/sid/plugin.c +++ b/plugins/sid/plugin.c @@ -23,8 +23,10 @@ const char *filetypes[] = { "SID", NULL }; static const char settings_dlg[] = "property \"Enable HVSC\" checkbox hvsc_enable 0;\n" - "property \"HVSC path\" file hvsc_path \"\";\n" - "property \"Samplerate\" entry sid.samplerate 48000;\n" + "property \"Songlenghts.txt (from HVSC)\" file hvsc_path \"\";\n" + "property \"Samplerate\" entry sid.samplerate 44100;\n" + "property \"Bits per sample\" entry sid.bps 16;\n" + "property \"Default song length (sec)\" entry sid.defaultlength 180;\n" ; // define plugin interface @@ -45,7 +47,7 @@ DB_decoder_t sid_plugin = { .open = csid_open, .init = csid_init, .free = csid_free, - .read_int16 = csid_read, + .read = csid_read, .seek = csid_seek, .seek_sample = NULL, .insert = csid_insert, |