/[pcsx2_0.9.7]/trunk/plugins/spu2-x/src/Linux/Config.h
ViewVC logotype

Contents of /trunk/plugins/spu2-x/src/Linux/Config.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 280 - (show annotations) (download)
Thu Dec 23 12:02:12 2010 UTC (9 years, 2 months ago) by william
File MIME type: text/plain
File size: 3595 byte(s)
re-commit (had local access denied errors when committing)
1 /* SPU2-X, A plugin for Emulating the Sound Processing Unit of the Playstation 2
2 * Developed and maintained by the Pcsx2 Development Team.
3 *
4 * Original portions from SPU2ghz are (c) 2008 by David Quintana [gigaherz]
5 *
6 * SPU2-X is free software: you can redistribute it and/or modify it under the terms
7 * of the GNU Lesser General Public License as published by the Free Software Found-
8 * ation, either version 3 of the License, or (at your option) any later version.
9 *
10 * SPU2-X is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
11 * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12 * PURPOSE. See the GNU Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public License
15 * along with SPU2-X. If not, see <http://www.gnu.org/licenses/>.
16 */
17
18 #ifndef CONFIG_H_INCLUDED
19 #define CONFIG_H_INCLUDED
20
21 #include <gtk/gtk.h>
22 #include <string>
23 #include <wx/fileconf.h>
24
25 extern bool DebugEnabled;
26
27 extern bool _MsgToConsole;
28 extern bool _MsgKeyOnOff;
29 extern bool _MsgVoiceOff;
30 extern bool _MsgDMA;
31 extern bool _MsgAutoDMA;
32 extern bool _MsgOverruns;
33 extern bool _MsgCache;
34
35 extern bool _AccessLog;
36 extern bool _DMALog;
37 extern bool _WaveLog;
38
39 extern bool _CoresDump;
40 extern bool _MemDump;
41 extern bool _RegDump;
42
43 /*static __forceinline bool MsgToConsole() { return _MsgToConsole & DebugEnabled; }
44
45 static __forceinline bool MsgKeyOnOff() { return _MsgKeyOnOff & MsgToConsole(); }
46 static __forceinline bool MsgVoiceOff() { return _MsgVoiceOff & MsgToConsole(); }
47 static __forceinline bool MsgDMA() { return _MsgDMA & MsgToConsole(); }
48 static __forceinline bool MsgAutoDMA() { return _MsgAutoDMA & MsgDMA(); }
49 static __forceinline bool MsgOverruns() { return _MsgOverruns & MsgToConsole(); }
50 static __forceinline bool MsgCache() { return _MsgCache & MsgToConsole(); }
51
52 static __forceinline bool AccessLog() { return _AccessLog & DebugEnabled; }
53 static __forceinline bool DMALog() { return _DMALog & DebugEnabled; }
54 static __forceinline bool WaveLog() { return _WaveLog & DebugEnabled; }
55
56 static __forceinline bool CoresDump() { return _CoresDump & DebugEnabled; }
57 static __forceinline bool MemDump() { return _MemDump & DebugEnabled; }
58 static __forceinline bool RegDump() { return _RegDump & DebugEnabled; }*/
59
60
61 //extern wchar_t AccessLogFileName[255];
62 //extern wchar_t WaveLogFileName[255];
63 //extern wchar_t DMA4LogFileName[255];
64 //extern wchar_t DMA7LogFileName[255];
65 //extern wchar_t CoresDumpFileName[255];
66 //extern wchar_t MemDumpFileName[255];
67 //extern wchar_t RegDumpFileName[255];
68
69 extern int Interpolation;
70 extern int ReverbBoost;
71 extern bool EffectsDisabled;
72 extern bool postprocess_filter_enabled;
73
74 extern int AutoDMAPlayRate[2];
75
76 extern u32 OutputModule;
77 extern int SndOutLatencyMS;
78
79 extern wchar_t dspPlugin[];
80 extern int dspPluginModule;
81
82 extern bool dspPluginEnabled;
83 extern int SynchMode;
84
85 namespace SoundtouchCfg
86 {
87 // Timestretch Slider Bounds, Min/Max
88 static const int SequenceLen_Min = 20;
89 static const int SequenceLen_Max = 100;
90
91 static const int SeekWindow_Min = 10;
92 static const int SeekWindow_Max = 30;
93
94 static const int Overlap_Min = 5;
95 static const int Overlap_Max = 15;
96
97 static int SequenceLenMS = 30;
98 static int SeekWindowMS = 20;
99 static int OverlapMS = 10;
100
101 void ReadSettings();
102 void WriteSettings();
103 void DisplayDialog();
104
105
106 static void ClampValues();
107 };
108
109 void ReadSettings();
110 void WriteSettings();
111 void configure();
112 void AboutBox();
113 extern wxFileConfig *spuConfig;
114 extern bool pathSet;
115 extern void initIni();
116 #endif // CONFIG_H_INCLUDED

  ViewVC Help
Powered by ViewVC 1.1.22