mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
Swapped out the sound_sync_event.Wait() call by a simple std::sleep_for.
It seems to make no difference besides allowing lower latencies and more stability on hardware OpenAL cards. Maybe the Wait() call waits for too long, causing buffers underruns.
This commit is contained in:
@ -290,7 +290,7 @@ void OpenALStream::SoundLoop()
|
||||
palGetSourcei(m_source, AL_BUFFERS_PROCESSED, &num_buffers_processed);
|
||||
if (num_buffers_queued == OAL_BUFFERS && !num_buffers_processed)
|
||||
{
|
||||
m_sound_sync_event.Wait();
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(1));
|
||||
continue;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user