Fixed Opus decoder forced 48000 Hz output.

This commit is contained in:
LoRd_MuldeR 2018-03-17 20:59:24 +01:00
parent efd2c77afb
commit 6ae5295cf1
2 changed files with 4 additions and 2 deletions

View File

@ -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
///////////////////////////////////////////////////////////////////////////////

View File

@ -34,6 +34,8 @@
#include <QRegExp>
#include <QUuid>
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);