diff --git a/src/Config.h b/src/Config.h index 87547be7..be245bad 100644 --- a/src/Config.h +++ b/src/Config.h @@ -35,7 +35,7 @@ #define VER_LAMEXP_MINOR_LO 6 #define VER_LAMEXP_TYPE Beta #define VER_LAMEXP_PATCH 9 -#define VER_LAMEXP_BUILD 2103 +#define VER_LAMEXP_BUILD 2104 #define VER_LAMEXP_CONFG 2002 /////////////////////////////////////////////////////////////////////////////// diff --git a/src/Decoder_Opus.cpp b/src/Decoder_Opus.cpp index fa45e7f8..6a3aa477 100644 --- a/src/Decoder_Opus.cpp +++ b/src/Decoder_Opus.cpp @@ -34,6 +34,8 @@ #include #include +static const quint32 OPUS_DEFAULT_SAMPLING_RATE = 48000; + bool OpusDecoder::m_disableResampling = false; OpusDecoder::OpusDecoder(void) @@ -57,7 +59,7 @@ bool OpusDecoder::decode(const QString &sourceFile, const QString &outputFile, Q if(m_disableResampling) { - args << "--no-resample"; + args << "--rate" << QString().number(OPUS_DEFAULT_SAMPLING_RATE); /*force 48.000 Hz*/ } args << QDir::toNativeSeparators(sourceFile);