Browse Source

engine: platform: sdl: do not lock audio device, for some reason it sometimes causes problems although it shouldn't

pull/2/head
Alibek Omarov 2 years ago
parent
commit
5bae2f06ad
  1. 4
      engine/platform/sdl/s_sdl.c

4
engine/platform/sdl/s_sdl.c

@ -165,7 +165,7 @@ Makes sure dma.buffer is valid
*/ */
void SNDDMA_BeginPainting( void ) 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 ) void SNDDMA_Submit( void )
{ {
SDL_UnlockAudioDevice( sdl_dev ); // SDL_UnlockAudioDevice( sdl_dev );
} }
/* /*

Loading…
Cancel
Save