Set supported input formats for FHG AAC encoder.

This commit is contained in:
LoRd_MuldeR 2012-03-08 01:35:04 +01:00
parent 326fd32ef6
commit f47b033953
3 changed files with 22 additions and 2 deletions

View File

@ -30,7 +30,7 @@
#define VER_LAMEXP_MINOR_LO 4 #define VER_LAMEXP_MINOR_LO 4
#define VER_LAMEXP_TYPE Beta #define VER_LAMEXP_TYPE Beta
#define VER_LAMEXP_PATCH 5 #define VER_LAMEXP_PATCH 5
#define VER_LAMEXP_BUILD 901 #define VER_LAMEXP_BUILD 902
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
// Tool versions (minimum expected versions!) // Tool versions (minimum expected versions!)

View File

@ -176,6 +176,23 @@ bool FHGAACEncoder::isFormatSupported(const QString &containerType, const QStrin
return false; 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) void FHGAACEncoder::setProfile(int profile)
{ {

View File

@ -36,7 +36,10 @@ public:
virtual bool encode(const QString &sourceFile, const AudioFileModel &metaInfo, const QString &outputFile, volatile bool *abortFlag); 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 bool isFormatSupported(const QString &containerType, const QString &containerProfile, const QString &formatType, const QString &formatProfile, const QString &formatVersion);
virtual QString extension(void); virtual QString extension(void);
virtual const unsigned int *supportedChannelCount(void);
virtual const unsigned int *supportedBitdepths(void);
virtual const unsigned int *supportedSamplerates(void);
//Advanced options //Advanced options
virtual void setProfile(int profile); virtual void setProfile(int profile);