mirror of
https://github.com/Detanup01/gbe_fork.git
synced 2026-02-04 05:21:16 +01:00
fix comment
This commit is contained in:
@@ -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<std::mutex> 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<std::mutex> lock(playbackQueueMutex);
|
||||
playbackQueue.push({ userId, std::vector<uint8_t>(data, data + len) });
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user