diff options
Diffstat (limited to 'src/plugins/Input/modplug')
| -rw-r--r-- | src/plugins/Input/modplug/decoder_modplug.cpp | 18 | ||||
| -rw-r--r-- | src/plugins/Input/modplug/decodermodplugfactory.cpp | 6 | ||||
| -rw-r--r-- | src/plugins/Input/modplug/settingsdialog.cpp | 10 |
3 files changed, 17 insertions, 17 deletions
diff --git a/src/plugins/Input/modplug/decoder_modplug.cpp b/src/plugins/Input/modplug/decoder_modplug.cpp index 99e9ba127..fe92d90f4 100644 --- a/src/plugins/Input/modplug/decoder_modplug.cpp +++ b/src/plugins/Input/modplug/decoder_modplug.cpp @@ -79,7 +79,7 @@ bool DecoderModPlug::initialize() if (!file.open(QIODevice::ReadOnly)) { qWarning("DecoderModPlug: error: %s", qPrintable(file.errorString ())); - return FALSE; + return false; } m_input_buf = file.readAll(); file.close(); @@ -87,7 +87,7 @@ bool DecoderModPlug::initialize() if (m_input_buf.isEmpty()) { qWarning("DecoderModPlug: error reading moplug file"); - return FALSE; + return false; } m_soundFile = new CSoundFile(); readSettings(); @@ -189,13 +189,13 @@ void DecoderModPlug::readSettings() ( settings.value("Surround", true).toBool(), true, - settings.value("Reverb", FALSE).toBool(), + settings.value("Reverb", false).toBool(), true, - settings.value("Megabass", FALSE).toBool(), - settings.value("NoiseReduction", FALSE).toBool(), - FALSE + settings.value("Megabass", false).toBool(), + settings.value("NoiseReduction", false).toBool(), + false ); - if (settings.value("Reverb", FALSE).toBool()) + if (settings.value("Reverb", false).toBool()) { CSoundFile::SetReverbParameters ( @@ -203,7 +203,7 @@ void DecoderModPlug::readSettings() settings.value("ReverbDelay", 100).toInt() ); } - if (settings.value("Megabass", FALSE).toBool()) + if (settings.value("Megabass", false).toBool()) { CSoundFile::SetXBassParameters ( @@ -227,7 +227,7 @@ void DecoderModPlug::readSettings() /* settings.value("GrabAmigaMOD", true).toBool());*/ //preamp - m_usePreamp = settings.value("PreAmp", FALSE).toBool(); + m_usePreamp = settings.value("PreAmp", false).toBool(); m_preampFactor = exp(settings.value("PreAmpLevel", 0.0f).toDouble()); settings.endGroup(); } diff --git a/src/plugins/Input/modplug/decodermodplugfactory.cpp b/src/plugins/Input/modplug/decodermodplugfactory.cpp index 1343898ff..bc80f549d 100644 --- a/src/plugins/Input/modplug/decodermodplugfactory.cpp +++ b/src/plugins/Input/modplug/decodermodplugfactory.cpp @@ -46,12 +46,12 @@ bool DecoderModPlugFactory::supports(const QString &source) const << ".xm" << ".mtm" << ".psm" << ".ft2"; if (lExtList.contains(lExt)) return true; - return FALSE; + return false; } bool DecoderModPlugFactory::canDecode(QIODevice *) const { - return FALSE; + return false; } const DecoderProperties DecoderModPlugFactory::properties() const @@ -81,7 +81,7 @@ QList<FileInfo *> DecoderModPlugFactory::createPlayList(const QString &fileName, { QList <FileInfo*> list; QSettings settings(Qmmp::configFile(), QSettings::IniFormat); - if (!useMetaData || settings.value("UseFileName", FALSE).toBool()) + if (!useMetaData || settings.value("UseFileName", false).toBool()) { list << new FileInfo(fileName); list.at(0)->setMetaData(Qmmp::TITLE, fileName.section('/',-1)); diff --git a/src/plugins/Input/modplug/settingsdialog.cpp b/src/plugins/Input/modplug/settingsdialog.cpp index 6d33f5d7b..d38d4e8a7 100644 --- a/src/plugins/Input/modplug/settingsdialog.cpp +++ b/src/plugins/Input/modplug/settingsdialog.cpp @@ -37,8 +37,8 @@ SettingsDialog::SettingsDialog(QWidget *parent) QSettings settings(Qmmp::configFile(), QSettings::IniFormat); settings.beginGroup("ModPlug"); //general - ui.noiseCheckBox->setChecked(settings.value("NoiseReduction", FALSE).toBool()); - ui.fileNameCheckBox->setChecked(settings.value("UseFileName", FALSE).toBool()); + ui.noiseCheckBox->setChecked(settings.value("NoiseReduction", false).toBool()); + ui.fileNameCheckBox->setChecked(settings.value("UseFileName", false).toBool()); ui.amigaCheckBox->setChecked(settings.value("GrabAmigaMOD", true).toBool()); //settings.value("Oversampling", true).toBool(); //settings.value("VolumeRamp", true).toBool(); @@ -74,7 +74,7 @@ SettingsDialog::SettingsDialog(QWidget *parent) else ui.resampPolyphaseRadioButton->setChecked(true); //reverberation - ui.reverbGroupBox->setChecked(settings.value("Reverb", FALSE).toBool()); + ui.reverbGroupBox->setChecked(settings.value("Reverb", false).toBool()); ui.reverbDepthSlider->setValue(settings.value("ReverbDepth", 30).toInt()); ui.reverbDelaySlider->setValue(settings.value("ReverbDelay", 100).toInt()); //surround @@ -82,11 +82,11 @@ SettingsDialog::SettingsDialog(QWidget *parent) ui.surDepthSlider->setValue(settings.value("SurroundDepth", 20).toInt()); ui.surDelaySlider->setValue(settings.value("SurroundDelay", 20).toInt()); //bass - ui.bassGroupBox->setChecked(settings.value("Megabass", FALSE).toBool()); + ui.bassGroupBox->setChecked(settings.value("Megabass", false).toBool()); ui.bassAmountSlider->setValue(settings.value("BassAmount", 40).toInt()); ui.bassRangeSlider->setValue(settings.value("BassRange", 30).toInt()); //preamp - ui.preampGroupBox->setChecked(settings.value("PreAmp", FALSE).toBool()); + ui.preampGroupBox->setChecked(settings.value("PreAmp", false).toBool()); connect(ui.preampSlider, SIGNAL(valueChanged(int)), SLOT(setPreamp(int))); ui.preampSlider->setValue(int(settings.value("PreAmpLevel", 0.0f).toDouble()*10)); //looping |
