Fix residual voice data not clearing

This commit is contained in:
Kae 2023-07-19 23:28:13 +10:00
parent f2bc9adc36
commit 7ad1671e0d

View File

@ -329,9 +329,6 @@ void Voice::readAudioData(uint8_t* stream, int len) {
m_clientSpeaker->playing = active; m_clientSpeaker->playing = active;
} }
if (!active)
return;
MutexLocker captureLock(m_captureMutex); MutexLocker captureLock(m_captureMutex);
if (active) { if (active) {
m_capturedChunksFrames += sampleCount / m_deviceChannels; m_capturedChunksFrames += sampleCount / m_deviceChannels;