diff --git a/src/mumble/AudioInput.cpp b/src/mumble/AudioInput.cpp index 3b13ce9f6c5..7825e9fcf04 100644 --- a/src/mumble/AudioInput.cpp +++ b/src/mumble/AudioInput.cpp @@ -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;