OSDN Git Service

Updated Monkey's Audio binaries to v5.54 (2020-08-24), compiled with ICL 19.1 and...
[lamexp/LameXP.git] / src / Decoder_AAC.h
index e0d1b3a..4346f2f 100644 (file)
@@ -1,12 +1,12 @@
 ///////////////////////////////////////////////////////////////////////////////
 // LameXP - Audio Encoder Front-End
-// Copyright (C) 2004-2016 LoRd_MuldeR <MuldeR2@GMX.de>
+// Copyright (C) 2004-2020 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
+// 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, but always including the *additional*
-// restrictions defined in the "License.txt" file.
+// (at your option) any later version; always including the non-optional
+// LAMEXP GNU GENERAL PUBLIC LICENSE ADDENDUM. See "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
@@ -23,6 +23,7 @@
 #pragma once
 
 #include "Decoder_Abstract.h"
+#include <MUtils/Lazy.h>
 
 class AACDecoder : public AbstractDecoder
 {
@@ -30,10 +31,12 @@ public:
        AACDecoder(void);
        ~AACDecoder(void);
 
-       virtual bool decode(const QString &sourceFile, const QString &outputFile, volatile bool *abortFlag);
+       virtual bool decode(const QString &sourceFile, const QString &outputFile, QAtomicInt &abortFlag);
        static bool isFormatSupported(const QString &containerType, const QString &containerProfile, const QString &formatType, const QString &formatProfile, const QString &formatVersion);
        static const supportedType_t *supportedTypes(void);
 
 private:
        const QString m_binary;
+       static MUtils::Lazy<QRegExp> m_regxFeatures;
+       static QMutex m_regexMutex;
 };