From eacb83a2443ee5a7fe6f597095ce94a31fe023c2 Mon Sep 17 00:00:00 2001 From: Zack Middleton Date: Fri, 26 Feb 2021 23:46:30 -0500 Subject: [PATCH] Allow using pulseaudio for SDL audio capture Pulseaudio audio capture didn't stop when paused on Debian 8 but works on Debian 9 when using the same manual SDL build. So it seems to have been an issue in pulseaudio, not SDL. --- code/sdl/sdl_snd.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/code/sdl/sdl_snd.c b/code/sdl/sdl_snd.c index eb0dd58f..7696a515 100644 --- a/code/sdl/sdl_snd.c +++ b/code/sdl/sdl_snd.c @@ -281,12 +281,7 @@ qboolean SNDDMA_Init(void) #ifdef USE_SDL_AUDIO_CAPTURE // !!! FIXME: some of these SDL_OpenAudioDevice() values should be cvars. s_sdlCapture = Cvar_Get( "s_sdlCapture", "1", CVAR_ARCHIVE | CVAR_LATCH ); - // !!! FIXME: pulseaudio capture records audio the entire time the program is running. https://bugzilla.libsdl.org/show_bug.cgi?id=4087 - if (Q_stricmp(SDL_GetCurrentAudioDriver(), "pulseaudio") == 0) - { - Com_Printf("SDL audio capture support disabled for pulseaudio (https://bugzilla.libsdl.org/show_bug.cgi?id=4087)\n"); - } - else if (!s_sdlCapture->integer) + if (!s_sdlCapture->integer) { Com_Printf("SDL audio capture support disabled by user ('+set s_sdlCapture 1' to enable)\n"); }