1 ///////////////////////////////////////////////////////////////////////////////
2 // LameXP - Audio Encoder Front-End
3 // Copyright (C) 2004-2012 LoRd_MuldeR <MuldeR2@GMX.de>
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.
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.
15 // You should have received a copy of the GNU General Public License along
16 // with this program; if not, write to the Free Software Foundation, Inc.,
17 // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19 // http://www.gnu.org/licenses/gpl-2.0.txt
20 ///////////////////////////////////////////////////////////////////////////////
27 ///////////////////////////////////////////////////////////////////////////////
29 #define LAMEXP_MAKE_OPTION_I(OPT) \
31 void OPT(int value); \
32 int OPT##Default(void);
34 #define LAMEXP_MAKE_OPTION_S(OPT) \
36 void OPT(const QString &value); \
37 QString OPT##Default(void);
39 #define LAMEXP_MAKE_OPTION_B(OPT) \
41 void OPT(bool value); \
42 bool OPT##Default(void);
44 #define LAMEXP_MAKE_OPTION_U(OPT) \
45 unsigned int OPT(void); \
46 void OPT(unsigned int value); \
47 unsigned int OPT##Default(void);
49 ///////////////////////////////////////////////////////////////////////////////
76 static const int mp3Bitrates
[15];
77 static const int ac3Bitrates
[20];
78 static const int samplingRates
[8];
81 LAMEXP_MAKE_OPTION_I(licenseAccepted
);
82 LAMEXP_MAKE_OPTION_I(interfaceStyle
);
83 LAMEXP_MAKE_OPTION_I(compressionEncoder
);
84 LAMEXP_MAKE_OPTION_I(compressionRCMode
);
85 LAMEXP_MAKE_OPTION_I(compressionBitrate
);
86 LAMEXP_MAKE_OPTION_S(outputDir
);
87 LAMEXP_MAKE_OPTION_B(outputToSourceDir
);
88 LAMEXP_MAKE_OPTION_B(prependRelativeSourcePath
);
89 LAMEXP_MAKE_OPTION_S(favoriteOutputFolders
);
90 LAMEXP_MAKE_OPTION_B(writeMetaTags
);
91 LAMEXP_MAKE_OPTION_B(createPlaylist
);
92 LAMEXP_MAKE_OPTION_S(autoUpdateLastCheck
);
93 LAMEXP_MAKE_OPTION_B(autoUpdateEnabled
);
94 LAMEXP_MAKE_OPTION_B(autoUpdateCheckBeta
);
95 LAMEXP_MAKE_OPTION_B(soundsEnabled
);
96 LAMEXP_MAKE_OPTION_B(neroAacNotificationsEnabled
);
97 LAMEXP_MAKE_OPTION_B(antivirNotificationsEnabled
);
98 LAMEXP_MAKE_OPTION_B(dropBoxWidgetEnabled
);
99 LAMEXP_MAKE_OPTION_B(shellIntegrationEnabled
);
100 LAMEXP_MAKE_OPTION_S(currentLanguage
);
101 LAMEXP_MAKE_OPTION_I(lameAlgoQuality
);
102 LAMEXP_MAKE_OPTION_I(lameChannelMode
);
103 LAMEXP_MAKE_OPTION_B(forceStereoDownmix
);
104 LAMEXP_MAKE_OPTION_B(bitrateManagementEnabled
);
105 LAMEXP_MAKE_OPTION_I(bitrateManagementMinRate
);
106 LAMEXP_MAKE_OPTION_I(bitrateManagementMaxRate
);
107 LAMEXP_MAKE_OPTION_I(samplingRate
);
108 LAMEXP_MAKE_OPTION_B(neroAACEnable2Pass
);
109 LAMEXP_MAKE_OPTION_I(aacEncProfile
);
110 LAMEXP_MAKE_OPTION_I(aftenAudioCodingMode
);
111 LAMEXP_MAKE_OPTION_I(aftenDynamicRangeCompression
);
112 LAMEXP_MAKE_OPTION_B(aftenFastBitAllocation
);
113 LAMEXP_MAKE_OPTION_I(aftenExponentSearchSize
);
114 LAMEXP_MAKE_OPTION_B(normalizationFilterEnabled
);
115 LAMEXP_MAKE_OPTION_I(normalizationFilterMaxVolume
);
116 LAMEXP_MAKE_OPTION_I(normalizationFilterEqualizationMode
);
117 LAMEXP_MAKE_OPTION_I(toneAdjustBass
);
118 LAMEXP_MAKE_OPTION_I(toneAdjustTreble
);
119 LAMEXP_MAKE_OPTION_S(customParametersLAME
);
120 LAMEXP_MAKE_OPTION_S(customParametersOggEnc
);
121 LAMEXP_MAKE_OPTION_S(customParametersAacEnc
);
122 LAMEXP_MAKE_OPTION_S(customParametersAften
);
123 LAMEXP_MAKE_OPTION_S(customParametersFLAC
);
124 LAMEXP_MAKE_OPTION_B(renameOutputFilesEnabled
);
125 LAMEXP_MAKE_OPTION_S(renameOutputFilesPattern
);
126 LAMEXP_MAKE_OPTION_U(metaInfoPosition
);
127 LAMEXP_MAKE_OPTION_U(maximumInstances
);
128 LAMEXP_MAKE_OPTION_S(customTempPath
);
129 LAMEXP_MAKE_OPTION_B(customTempPathEnabled
);
130 LAMEXP_MAKE_OPTION_B(slowStartup
);
131 LAMEXP_MAKE_OPTION_S(mostRecentInputPath
);
132 LAMEXP_MAKE_OPTION_B(hibernateComputer
);
138 QSettings
*m_settings
;
139 QString
*m_defaultLanguage
;
140 QString
defaultLanguage(void);
141 QString
initDirectory(const QString
&path
);
144 ///////////////////////////////////////////////////////////////////////////////
146 #undef LAMEXP_MAKE_OPTION_I
147 #undef LAMEXP_MAKE_OPTION_S
148 #undef LAMEXP_MAKE_OPTION_B
149 #undef LAMEXP_MAKE_OPTION_U