From 2edc8b16ae75e2e145b12808ec3cd9beef41987d Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Wed, 10 Mar 2021 13:44:25 +0300 Subject: [PATCH] engine: platform: fix sdl audio --- engine/platform/sdl/s_sdl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/engine/platform/sdl/s_sdl.c b/engine/platform/sdl/s_sdl.c index 1df8d4f5..8763969c 100644 --- a/engine/platform/sdl/s_sdl.c +++ b/engine/platform/sdl/s_sdl.c @@ -135,9 +135,10 @@ qboolean SNDDMA_Init( void ) Con_Printf( "Using SDL audio driver: %s @ %d Hz\n", SDL_GetCurrentAudioDriver( ), obtained.freq ); + dma.initialized = true; + SNDDMA_Activate( true ); - dma.initialized = true; return true; fail: