Fixed encoding with Nero AAC encoder for input sampling rate less than 8 KHz or greater than 96 KHz.

This commit is contained in:
LoRd_MuldeR 2019-04-28 13:25:29 +02:00
parent 0c2463ac61
commit e355a9c210
5 changed files with 11 additions and 3 deletions

File diff suppressed because one or more lines are too long

View File

@ -13,6 +13,7 @@ LameXP Audio-Encoder Front-End – Changelog
* Updated Monkey's Audio binary to v4.41 (2018-12-05), compiled with ICL 19.0 and MSVC 14.16 * Updated Monkey's Audio binary to v4.41 (2018-12-05), compiled with ICL 19.0 and MSVC 14.16
* Updated mpg123 decoder to v1.25.10 (2018-03-05) and added *64-Bit* binaries, compiled with GCC 8.2.1 * Updated mpg123 decoder to v1.25.10 (2018-03-05) and added *64-Bit* binaries, compiled with GCC 8.2.1
* Updated MediaInfo to v19.04 (2019-04-23), compiled with ICL 19.0 and MSVC 14.16 * Updated MediaInfo to v19.04 (2019-04-23), compiled with ICL 19.0 and MSVC 14.16
* Fixed encoding with Nero AAC encoder for input sampling rate less than 8 KHz or greater than 96 KHz
## LameXP v4.17 [2018-11-10] ## {-} ## LameXP v4.17 [2018-11-10] ## {-}
* Upgraded build environment to Microsoft Visual Studio 2017.8 (MSVC 14.15) * Upgraded build environment to Microsoft Visual Studio 2017.8 (MSVC 14.15)

View File

@ -33,8 +33,8 @@
#define VER_LAMEXP_MAJOR 4 #define VER_LAMEXP_MAJOR 4
#define VER_LAMEXP_MINOR_HI 1 #define VER_LAMEXP_MINOR_HI 1
#define VER_LAMEXP_MINOR_LO 8 #define VER_LAMEXP_MINOR_LO 8
#define VER_LAMEXP_TYPE Alpha #define VER_LAMEXP_TYPE Beta
#define VER_LAMEXP_PATCH 10 #define VER_LAMEXP_PATCH 1
#define VER_LAMEXP_BUILD 2216 #define VER_LAMEXP_BUILD 2216
#define VER_LAMEXP_CONFG 2188 #define VER_LAMEXP_CONFG 2188

View File

@ -291,6 +291,12 @@ bool AACEncoder::isFormatSupported(const QString &containerType, const QString &
return false; return false;
} }
const unsigned int *AACEncoder::supportedSamplerates(void)
{
static const unsigned int supportedRates[] = { 96000, 48000, 44100, 32000, 24000, 22050, 16000, 12000, 11025, 8000, NULL};
return supportedRates;
}
void AACEncoder::setProfile(int profile) void AACEncoder::setProfile(int profile)
{ {
m_configProfile = qBound(0, profile, 3); m_configProfile = qBound(0, profile, 3);

View File

@ -37,6 +37,7 @@ public:
virtual bool encode(const QString &sourceFile, const AudioFileModel_MetaInfo &metaInfo, const unsigned int duration, const unsigned int channels, const QString &outputFile, QAtomicInt &abortFlag); virtual bool encode(const QString &sourceFile, const AudioFileModel_MetaInfo &metaInfo, const unsigned int duration, const unsigned int channels, const QString &outputFile, QAtomicInt &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 const bool needsTimingInfo(void); virtual const bool needsTimingInfo(void);
virtual const unsigned int *supportedSamplerates(void);
//Advanced options //Advanced options
virtual void setProfile(int profile); virtual void setProfile(int profile);