diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2013-03-20 15:10:12 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2013-03-20 15:10:12 +0000 |
| commit | 45f47cbe48c64fdb731db7d02423a446c325b236 (patch) | |
| tree | 28a510974e59147af4a7b85897e028a062704c31 /src/plugins/Input/opus/decoder_opus.cpp | |
| parent | fc7884a76597e1009e0c7de9f1c63fd497abc02a (diff) | |
| download | qmmp-45f47cbe48c64fdb731db7d02423a446c325b236.tar.gz qmmp-45f47cbe48c64fdb731db7d02423a446c325b236.tar.bz2 qmmp-45f47cbe48c64fdb731db7d02423a446c325b236.zip | |
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
Diffstat (limited to 'src/plugins/Input/opus/decoder_opus.cpp')
| -rw-r--r-- | src/plugins/Input/opus/decoder_opus.cpp | 7 |
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; } |
