From 45f47cbe48c64fdb731db7d02423a446c325b236 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Wed, 20 Mar 2013 15:10:12 +0000 Subject: fixed opus codec sample rate git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@3336 90c681e8-e032-0410-971d-27865f9a5e38 --- src/plugins/Input/opus/decoder_opus.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/plugins/Input/opus/decoder_opus.cpp') diff --git a/src/plugins/Input/opus/decoder_opus.cpp b/src/plugins/Input/opus/decoder_opus.cpp index b8fda17fb..47da8b4e6 100644 --- a/src/plugins/Input/opus/decoder_opus.cpp +++ b/src/plugins/Input/opus/decoder_opus.cpp @@ -84,7 +84,6 @@ DecoderOpus::~DecoderOpus() bool DecoderOpus::initialize() { qDebug("DecoderOpus: initialize"); - quint32 freq = 0; m_chan = 0; m_totalTime = 0; @@ -125,11 +124,9 @@ bool DecoderOpus::initialize() const OpusHead *head = op_head(m_opusfile, -1); if (head) - { - freq = head->input_sample_rate; m_chan = head->channel_count; - } - configure(freq, m_chan, Qmmp::PCM_S16LE); + + configure(48000, m_chan, Qmmp::PCM_S16LE); //opus codec supports 48 kHz only return true; } -- cgit v1.2.3-13-gbd6f