OSDN Git Service

Switch to using QAtomicInc for abort flags.
[lamexp/LameXP.git] / src / Filter_Normalize.h
index e5e71af..172482d 100644 (file)
@@ -1,11 +1,12 @@
 ///////////////////////////////////////////////////////////////////////////////
 // LameXP - Audio Encoder Front-End
-// Copyright (C) 2004-2012 LoRd_MuldeR <MuldeR2@GMX.de>
+// Copyright (C) 2004-2017 LoRd_MuldeR <MuldeR2@GMX.de>
 //
 // This program is free software; you can redistribute it and/or modify
 // it under the terms of the GNU General Public License as published by
 // the Free Software Foundation; either version 2 of the License, or
-// (at your option) any later version.
+// (at your option) any later version, but always including the *additional*
+// restrictions defined in the "License.txt" file.
 //
 // This program is distributed in the hope that it will be useful,
 // but WITHOUT ANY WARRANTY; without even the implied warranty of
 class NormalizeFilter : public AbstractFilter
 {
 public:
-       NormalizeFilter(int peakVolume = -50, int equalizationMode = 0);
+       NormalizeFilter(const int &peakVolume = -50, const bool &dnyAudNorm = false, const bool &channelsCoupled = true, const int &filterSize = 31);
        ~NormalizeFilter(void);
 
-       virtual bool apply(const QString &sourceFile, const QString &outputFile, AudioFileModel *formatInfo, volatile bool *abortFlag);
+       virtual FilterResult apply(const QString &sourceFile, const QString &outputFile, AudioFileModel_TechInfo *const formatInfo, QAtomicInt &abortFlag);
 
 private:
        const QString m_binary;
-       int m_peakVolume;
-       int m_equalizationMode;
+       const bool m_useDynAudNorm;
+       const bool m_channelsCoupled;
+       const int m_peakVolume;
+       const int m_filterLength;
 };