From 5bae2f06ad5e2399188cb1ead9ecd91b0b55a0b5 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Tue, 20 Sep 2022 21:29:19 +0300 Subject: [PATCH] engine: platform: sdl: do not lock audio device, for some reason it sometimes causes problems although it shouldn't --- engine/platform/sdl/s_sdl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/platform/sdl/s_sdl.c b/engine/platform/sdl/s_sdl.c index 4f212485..876926b3 100644 --- a/engine/platform/sdl/s_sdl.c +++ b/engine/platform/sdl/s_sdl.c @@ -165,7 +165,7 @@ Makes sure dma.buffer is valid */ void SNDDMA_BeginPainting( void ) { - SDL_LockAudioDevice( sdl_dev ); +// SDL_LockAudioDevice( sdl_dev ); } /* @@ -178,7 +178,7 @@ Also unlocks the dsound buffer */ void SNDDMA_Submit( void ) { - SDL_UnlockAudioDevice( sdl_dev ); +// SDL_UnlockAudioDevice( sdl_dev ); } /*