mirror of
https://github.com/ioquake/ioq3.git
synced 2024-11-10 07:11:46 +00:00
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.
This commit is contained in:
parent
05180e32dc
commit
eacb83a244
1 changed files with 1 additions and 6 deletions
|
@ -281,12 +281,7 @@ qboolean SNDDMA_Init(void)
|
||||||
#ifdef USE_SDL_AUDIO_CAPTURE
|
#ifdef USE_SDL_AUDIO_CAPTURE
|
||||||
// !!! FIXME: some of these SDL_OpenAudioDevice() values should be cvars.
|
// !!! FIXME: some of these SDL_OpenAudioDevice() values should be cvars.
|
||||||
s_sdlCapture = Cvar_Get( "s_sdlCapture", "1", CVAR_ARCHIVE | CVAR_LATCH );
|
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 (!s_sdlCapture->integer)
|
||||||
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)
|
|
||||||
{
|
{
|
||||||
Com_Printf("SDL audio capture support disabled by user ('+set s_sdlCapture 1' to enable)\n");
|
Com_Printf("SDL audio capture support disabled by user ('+set s_sdlCapture 1' to enable)\n");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue