From 42413d143d4e875ba2977b3c0fe2be98f82d7288 Mon Sep 17 00:00:00 2001 From: j Date: Wed, 21 Aug 2024 21:36:32 +1000 Subject: [PATCH] Fix whitespace --- src/audio_core/sdl_audio.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/audio_core/sdl_audio.cpp b/src/audio_core/sdl_audio.cpp index d0a4c397..f55c5b96 100644 --- a/src/audio_core/sdl_audio.cpp +++ b/src/audio_core/sdl_audio.cpp @@ -116,7 +116,7 @@ s32 SDLAudio::AudioOutOutput(s32 handle, const void* ptr) { auto bytesPerSecond = 48000 * port.sample_size * port.channels_num; const int TARGET_LATENCY_MS = 20; // Arbitrary, but slightly more than one 60fps frame auto sizeTarget = (bytesPerSecond * TARGET_LATENCY_MS) / 1000; - + while (SDL_GetAudioStreamAvailable(port.stream) > sizeTarget) { SDL_Delay(1); // Sleep behaviour is platform-dependent; 1ms may be up to 17ms }