Fixed Opus decoder forced 48000 Hz output.
This commit is contained in:
parent
efd2c77afb
commit
6ae5295cf1
@ -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
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user