Skip to content

Commit

Permalink
Backport "Merge PR #6499: FIX(client, plugins): Wrong sample count in…
Browse files Browse the repository at this point in the history
… plugin callback" to 1.5.x (#6501)
  • Loading branch information
Hartmnt authored Jul 8, 2024
2 parents 9b54c05 + 74e9142 commit 1d67130
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/mumble/AudioInput.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1090,7 +1090,9 @@ void AudioInput::encodeAudioFrame(AudioChunk chunk) {
EncodingOutputBuffer buffer;
Q_ASSERT(buffer.size() >= static_cast< size_t >(iAudioQuality / 100 * iAudioFrames / 8));

emit audioInputEncountered(psSource, iFrameSize, iMicChannels, SAMPLE_RATE, bIsSpeech);
assert(iFrameSize % iMicChannels == 0);
const unsigned int samplesPerChannel = iFrameSize / iMicChannels;
emit audioInputEncountered(psSource, samplesPerChannel, iMicChannels, SAMPLE_RATE, bIsSpeech);

int len = 0;

Expand Down

0 comments on commit 1d67130

Please sign in to comment.