ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/SIDPlayer/src/prefs_items.cpp
Revision: 1.4
Committed: 2001-01-21T18:04:46Z (23 years, 8 months ago) by cebix
Branch: MAIN
Changes since 1.3: +1 -1 lines
Log Message:
- fixed compilation problems under BeOS
- updated copyright year 2000->2001

File Contents

# User Rev Content
1 cebix 1.1 /*
2     * prefs.cpp - Preferences items
3     *
4 cebix 1.4 * SIDPlayer (C) Copyright 1996-2001 Christian Bauer
5 cebix 1.1 *
6     * This program is free software; you can redistribute it and/or modify
7     * it under the terms of the GNU General Public License as published by
8     * the Free Software Foundation; either version 2 of the License, or
9     * (at your option) any later version.
10     *
11     * This program is distributed in the hope that it will be useful,
12     * but WITHOUT ANY WARRANTY; without even the implied warranty of
13     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14     * GNU General Public License for more details.
15     *
16     * You should have received a copy of the GNU General Public License
17     * along with this program; if not, write to the Free Software
18     * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19     */
20    
21     #include "sys.h"
22     #include "prefs.h"
23    
24    
25     // List of preferences items
26     prefs_desc common_prefs_items[] = {
27 cebix 1.3 {"victype", TYPE_STRING, false, "type number of VIC-II to emulate (6569, 6567 or 6567R5)"},
28     {"sidtype", TYPE_STRING, false, "type number of SID to emulate (6581 or 8580)"},
29     {"samplerate", TYPE_INT32, false, "output sample rate in Hz"},
30     {"audio16bit", TYPE_BOOLEAN, false, "16-bit audio output"},
31     {"stereo", TYPE_BOOLEAN, false, "stereo audio output"},
32     {"filters", TYPE_BOOLEAN, false, "emulate SID filters"},
33     {"dualsid", TYPE_BOOLEAN, false, "emulate dual SID chips"},
34     {"audioeffect", TYPE_INT32, false, "audio effect type (0 = none, 1 = reverb, 2 = spatial)"},
35     {"revdelay", TYPE_INT32, false, "effect delay in ms"},
36     {"revfeedback", TYPE_INT32, false, "effect feedback (0..256 = 0..100%)"},
37     {"volume", TYPE_INT32, false, "master volume (0..256 = 0..100%)"},
38     {"v1volume", TYPE_INT32, false, "volume voice 1 (0..256 = 0..100%)"},
39     {"v2volume", TYPE_INT32, false, "volume voice 2 (0..256 = 0..100%)"},
40     {"v3volume", TYPE_INT32, false, "volume voice 3 (0..256 = 0..100%)"},
41     {"v4volume", TYPE_INT32, false, "volume sampled voice (0..256 = 0..100%)"},
42     {"v1pan", TYPE_INT32, false, "panning voice 1 (-256..256 = left..right)"},
43     {"v2pan", TYPE_INT32, false, "panning voice 2 (-256..256 = left..right)"},
44     {"v3pan", TYPE_INT32, false, "panning voice 3 (-256..256 = left..right)"},
45     {"v4pan", TYPE_INT32, false, "panning sampled voice (-256..256 = left..right)"},
46     {"dualsep", TYPE_INT32, false, "dual SID stereo separation (0..256 = 0..100%)"},
47     {"speed", TYPE_INT32, false, "replay speed adjustment (percent)"},
48     {"replayfreq", TYPE_INT32, false, NULL}, // Frequency at which 6510 replay routine is called in Hz (used internally)
49 cebix 1.1 {NULL, TYPE_END, false} // End of list
50     };
51    
52    
53     /*
54     * Set default values for preferences items
55     */
56    
57     void AddPrefsDefaults(void)
58     {
59     PrefsAddString("victype", "6569");
60     PrefsAddString("sidtype", "6581");
61     PrefsAddInt32("samplerate", 44100);
62     PrefsAddBool("audio16bit", true);
63     PrefsAddBool("stereo", true);
64     PrefsAddBool("filters", true);
65     PrefsAddBool("dualsid", false);
66     PrefsAddInt32("audioeffect", 2);
67     PrefsAddInt32("revdelay", 125);
68     PrefsAddInt32("revfeedback", 0x50);
69     PrefsAddInt32("volume", 0x100);
70     PrefsAddInt32("v1volume", 0x100);
71     PrefsAddInt32("v1pan", -0x40);
72     PrefsAddInt32("v2volume", 0x100);
73     PrefsAddInt32("v2pan", 0);
74     PrefsAddInt32("v3volume", 0x100);
75     PrefsAddInt32("v3pan", 0x40);
76     PrefsAddInt32("v4volume", 0x100);
77     PrefsAddInt32("v4pan", 0);
78     PrefsAddInt32("dualsep", 0x80);
79     PrefsAddInt32("replayfreq", 50);
80 cebix 1.2 PrefsAddInt32("speed", 100);
81 cebix 1.1 }