From 10fed5be44c9fef5a1cf7204ae03972d395de34b Mon Sep 17 00:00:00 2001 From: Detanup01 <91248446+Detanup01@users.noreply.github.com> Date: Tue, 12 Aug 2025 19:28:49 +0200 Subject: [PATCH] fix comment --- dll/voicechat.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/dll/voicechat.cpp b/dll/voicechat.cpp index 2ca66fdc..12927a60 100644 --- a/dll/voicechat.cpp +++ b/dll/voicechat.cpp @@ -190,15 +190,13 @@ EVoiceResult VoiceChat::GetAvailableVoice(uint32_t* pcbCompressed) { EVoiceResult VoiceChat::GetVoice(bool bWantCompressed, void* pDestBuffer, uint32_t cbDestBufferSize, uint32_t* nBytesWritten) { if (!pDestBuffer || !nBytesWritten) return k_EVoiceResultNotInitialized; - // if we doest not recording dont do anything. + // if we does not recording dont do anything. if (isRecording.load()) return k_EVoiceResultNotRecording; // should we have this here ? -detanup // some games might not initialize this. (?? FUCKING WHY? ) if (!InitVoiceSystem()) return k_EVoiceResultNotInitialized; - - std::unique_lock lock(inputMutex); inputCond.wait_for(lock, std::chrono::milliseconds(20), [this] { return !this->encodedQueue.empty(); @@ -264,3 +262,4 @@ void VoiceChat::QueueIncomingVoice(uint64_t userId, const uint8_t* data, size_t std::lock_guard lock(playbackQueueMutex); playbackQueue.push({ userId, std::vector(data, data + len) }); } +