OSDN Git Service

Switched the method of how the Designer UI file is used in the DropBox class to ...
[lamexp/LameXP.git] / src / Encoder_AAC_FHG.cpp
index 1f1b7e1..728d760 100644 (file)
@@ -1,6 +1,6 @@
 ///////////////////////////////////////////////////////////////////////////////
 // LameXP - Audio Encoder Front-End
-// Copyright (C) 2004-2011 LoRd_MuldeR <MuldeR2@GMX.de>
+// Copyright (C) 2004-2012 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
@@ -150,7 +150,7 @@ bool FHGAACEncoder::encode(const QString &sourceFile, const AudioFileModel &meta
        emit statusUpdated(100);
        emit messageLogged(QString().sprintf("\nExited with code: 0x%04X", process.exitCode()));
 
-       if(bTimeout || bAborted || process.exitStatus() != QProcess::NormalExit)
+       if(bTimeout || bAborted || process.exitCode() != EXIT_SUCCESS)
        {
                return false;
        }
@@ -176,6 +176,23 @@ bool FHGAACEncoder::isFormatSupported(const QString &containerType, const QStrin
        return false;
 }
 
+const unsigned int *FHGAACEncoder::supportedChannelCount(void)
+{
+       static const unsigned int supportedChannels[] = {1, 2, 4, 5, 6, NULL};
+       return supportedChannels;
+}
+
+const unsigned int *FHGAACEncoder::supportedSamplerates(void)
+{
+       static const unsigned int supportedRates[] = {192000, 96000, 48000, 44100, 32000, 24000, 22050, 16000, 12000, 11025, 8000, 6000, NULL};
+       return supportedRates;
+}
+
+const unsigned int *FHGAACEncoder::supportedBitdepths(void)
+{
+       static const unsigned int supportedBPS[] = {16, 24, NULL};
+       return supportedBPS;
+}
 
 void FHGAACEncoder::setProfile(int profile)
 {