1 /*
2     SID plugin for DeaDBeeF Player
3     Copyright (C) 2009-2014 Alexey Yakovenko <waker@users.sourceforge.net>
4 
5     This program is free software: you can redistribute it and/or modify
6     it under the terms of the GNU General Public License as published by
7     the Free Software Foundation, either version 2 of the License, or
8     (at your option) any later version.
9 
10     This program is distributed in the hope that it will be useful,
11     but WITHOUT ANY WARRANTY; without even the implied warranty of
12     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13     GNU General Public License for more details.
14 
15     You should have received a copy of the GNU General Public License
16     along with this program.  If not, see <http://www.gnu.org/licenses/>.
17 */
18 #include "../../deadbeef.h"
19 #include "csid.h"
20 
21 static const char *exts[] = { "sid", NULL };
22 static const char settings_dlg[] =
23     "property \"Enable HVSC Songlength DB\" checkbox hvsc_enable 0;\n"
24     "property \"Songlengths.txt (from HVSC)\" file hvsc_path \"\";\n"
25     "property \"Samplerate\" entry sid.samplerate 44100;\n"
26     "property \"Bits per sample (8 or 16)\" entry sid.bps 16;\n"
27     "property \"Mono synth\" checkbox sid.mono 0;\n"
28     "property \"Default song length (sec)\" entry sid.defaultlength 180;\n"
29 ;
30 
31 // define plugin interface
32 DB_decoder_t sid_plugin = {
33     .plugin.api_vmajor = 1,
34     .plugin.api_vminor = 0,
35     .plugin.type = DB_PLUGIN_DECODER,
36     .plugin.version_major = 1,
37     .plugin.version_minor = 0,
38     .plugin.name = "SID player",
39     .plugin.id = "sidplay2",
40     .plugin.descr = "SID player based on libsidplay2",
41     .plugin.copyright =
42         "SID plugin for DeaDBeeF Player\n"
43         "Copyright (C) 2009-2014 Alexey Yakovenko <waker@users.sourceforge.net>\n"
44         "\n"
45         "This program is free software: you can redistribute it and/or modify\n"
46         "it under the terms of the GNU General Public License as published by\n"
47         "the Free Software Foundation, either version 2 of the License, or\n"
48         "(at your option) any later version.\n"
49         "\n"
50         "This program is distributed in the hope that it will be useful,\n"
51         "but WITHOUT ANY WARRANTY; without even the implied warranty of\n"
52         "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n"
53         "GNU General Public License for more details.\n"
54         "\n"
55         "You should have received a copy of the GNU General Public License\n"
56         "along with this program.  If not, see <http://www.gnu.org/licenses/>.\n"
57     ,
58     .plugin.website = "http://deadbeef.sf.net",
59     .plugin.start = csid_start,
60     .plugin.stop = csid_stop,
61     .plugin.configdialog = settings_dlg,
62     .plugin.message = sid_message,
63     .open = csid_open,
64     .init = csid_init,
65     .free = csid_free,
66     .read = csid_read,
67     .seek = csid_seek,
68     .seek_sample = NULL,
69     .insert = csid_insert,
70 //    .numvoices = csid_numvoices,
71 //    .mutevoice = csid_mutevoice,
72     .exts = exts,
73 };
74 
75