aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/Input/opus/decoder_opus.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/Input/opus/decoder_opus.cpp')
-rw-r--r--src/plugins/Input/opus/decoder_opus.cpp7
1 files changed, 2 insertions, 5 deletions
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;
}