Skip to content

Commit

Permalink
Merge pull request #11349 from daschuer/opus_buffersize
Browse files Browse the repository at this point in the history
Opus buffersize fix
  • Loading branch information
Swiftb0y authored Mar 30, 2023
2 parents 6c47229 + 0638f03 commit 4f45f22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/encoder/encoderopus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ int EncoderOpus::initEncoder(int samplerate, QString* pUserErrorMessage) {
opus_encoder_ctl(m_pOpus, OPUS_SET_VBR_CONSTRAINT(0)); // Unconstrained VBR
}

m_readRequired = m_samplerate * kOpusFrameMs;
m_readRequired = m_channels * m_samplerate * kOpusFrameMs / 1000;
m_pFifoChunkBuffer = std::make_unique<mixxx::SampleBuffer>(m_readRequired);
initStream();

Expand Down

0 comments on commit 4f45f22

Please sign in to comment.