diff --git a/src/Config.h b/src/Config.h index 7cbcc0e3..6a88c1da 100644 --- a/src/Config.h +++ b/src/Config.h @@ -30,7 +30,7 @@ #define VER_LAMEXP_MINOR_LO 4 #define VER_LAMEXP_TYPE Beta #define VER_LAMEXP_PATCH 5 -#define VER_LAMEXP_BUILD 901 +#define VER_LAMEXP_BUILD 902 /////////////////////////////////////////////////////////////////////////////// // Tool versions (minimum expected versions!) diff --git a/src/Encoder_AAC_FHG.cpp b/src/Encoder_AAC_FHG.cpp index aa734892..728d7608 100644 --- a/src/Encoder_AAC_FHG.cpp +++ b/src/Encoder_AAC_FHG.cpp @@ -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) { diff --git a/src/Encoder_AAC_FHG.h b/src/Encoder_AAC_FHG.h index f90cbd48..45f706ad 100644 --- a/src/Encoder_AAC_FHG.h +++ b/src/Encoder_AAC_FHG.h @@ -36,7 +36,10 @@ public: virtual bool encode(const QString &sourceFile, const AudioFileModel &metaInfo, const QString &outputFile, volatile bool *abortFlag); virtual bool isFormatSupported(const QString &containerType, const QString &containerProfile, const QString &formatType, const QString &formatProfile, const QString &formatVersion); virtual QString extension(void); - + virtual const unsigned int *supportedChannelCount(void); + virtual const unsigned int *supportedBitdepths(void); + virtual const unsigned int *supportedSamplerates(void); + //Advanced options virtual void setProfile(int profile);