Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/frontend/StarVoice.cpp
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2023-07-19 23:28:13 +1000
committerKae <80987908+Novaenia@users.noreply.github.com>2023-07-19 23:28:13 +1000
commit7ad1671e0daf1c15d593343e5e2cd03593db744e (patch)
tree7e8239da8da2faba0db992f723623ca9f71869e6 /source/frontend/StarVoice.cpp
parentf2bc9adc365c5488e0fdd0996d5bdc3027f34806 (diff)
Fix residual voice data not clearing
Diffstat (limited to 'source/frontend/StarVoice.cpp')
-rw-r--r--source/frontend/StarVoice.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/source/frontend/StarVoice.cpp b/source/frontend/StarVoice.cpp
index 4a0e344..44e62cb 100644
--- a/source/frontend/StarVoice.cpp
+++ b/source/frontend/StarVoice.cpp
@@ -329,9 +329,6 @@ void Voice::readAudioData(uint8_t* stream, int len) {
m_clientSpeaker->playing = active;
}
- if (!active)
- return;
-
MutexLocker captureLock(m_captureMutex);
if (active) {
m_capturedChunksFrames += sampleCount / m_deviceChannels;