SDL/src/audio
David Gow 3261f7f6ce audio: Support "pulse" as an alias for "pulseaudio"
Originally, SDL 1.2 used "pulse" as the name for its PulseAudio driver.
While it now supports "pulseaudio" as well for compatibility with SDL
2.0 [1], there are still scripts and distro packages which set
SDL_AUDIODRIVER=pulse [2]. While it's possible to remove this in most
circumstances or replace it with "pulseaudio" or a comma-separated list,
this may still conflict if the environment variable is set globally and
old binary builds of SDL 1.2 (e.g. packaged with older games) are being
used.

To fix this on SDL 2.0, add a hardcoded check for "pulse" as an audio
driver name, and replace it with "pulseaudio". This mimics what SDL 1.2
does (but in reverse). Note that setting driver_attempt{,_len} is safe
here as they're reset correctly based on driver_attempt_end on the next
loop.

[1] d951409784
[2] https://bugzilla.opensuse.org/show_bug.cgi?id=1189778
2021-08-25 22:43:32 -10:00
..
aaudio AAudio: make sure stream is not null to prevent crash in RequestStop (see #3710) 2021-04-28 21:04:47 +02:00
alsa Add SDL_GetAudioDeviceSpec. 2021-03-05 12:03:07 -08:00
android Updated copyright for 2021 2021-01-02 10:25:38 -08:00
arts Updated copyright for 2021 2021-01-02 10:25:38 -08:00
coreaudio Removed duplicate SDL_AtomicGet() 2021-05-28 12:29:54 -04:00
directsound Add SDL_GetAudioDeviceSpec. 2021-03-05 12:03:07 -08:00
disk audio: Changed a disk and dummy backends to use _this instead of this. 2021-04-06 18:35:20 -04:00
dsp dsp: Refuse to initialize if there aren't any Open Sound System devices. 2021-03-17 13:04:05 -04:00
dummy audio: Fixed assertion failure if trying to use dummy backend. 2021-04-06 18:35:20 -04:00
emscripten emscripten: Feed silence to device when paused 2021-08-14 12:24:35 +01:00
esd Updated copyright for 2021 2021-01-02 10:25:38 -08:00
fusionsound Updated copyright for 2021 2021-01-02 10:25:38 -08:00
haiku Updated copyright for 2021 2021-01-02 10:25:38 -08:00
jack Updated copyright for 2021 2021-01-02 10:25:38 -08:00
nacl Updated copyright for 2021 2021-01-02 10:25:38 -08:00
nas Updated copyright for 2021 2021-01-02 10:25:38 -08:00
netbsd netbsdaudio: Handle ioctls failing 2021-03-13 18:37:21 -08:00
openslES OpenSLES: CloseDevice() is called at higher level, if OpenDevice() fails 2021-04-29 09:29:02 +02:00
os2 Add SDL_GetAudioDeviceSpec. 2021-03-05 12:03:07 -08:00
paudio Updated copyright for 2021 2021-01-02 10:25:38 -08:00
pipewire audio: pipewire: Reset hotplug atomic variables on deinit. 2021-08-19 22:26:25 -04:00
psp Updated copyright for 2021 2021-01-02 10:25:38 -08:00
pulseaudio pulseaudio: Fix some function signatures that expect const pointers. 2021-08-23 00:47:25 -04:00
qsa Add SDL_GetAudioDeviceSpec. 2021-03-05 12:03:07 -08:00
sndio Updated copyright for 2021 2021-01-02 10:25:38 -08:00
sun Updated copyright for 2021 2021-01-02 10:25:38 -08:00
vita Set volume on device open 2021-04-24 14:13:09 -07:00
wasapi SDL_wasapi.c: fixed build against older SDKs. 2021-08-12 01:40:50 +03:00
winmm Fixed warnings building with Visual Studio 2021-05-25 10:34:04 -07:00
SDL_audio_c.h Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_audio.c audio: Support "pulse" as an alias for "pulseaudio" 2021-08-25 22:43:32 -10:00
SDL_audiocvt.c Improve portability of SDL_Convert51ToStereo_AVX 2021-08-12 16:04:35 -07:00
SDL_audiodev_c.h Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_audiodev.c Fix casts that should be using uintptr_t 2021-07-29 14:42:15 -07:00
SDL_audiotypecvt.c Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_mixer.c Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_sysaudio.h AAudio: add bootstrap in SDL_audio.c 2021-04-15 21:00:00 +02:00
SDL_wave.c Fix format string warnings for width-based integers 2021-02-11 19:41:41 -08:00
SDL_wave.h Updated copyright for 2021 2021-01-02 10:25:38 -08:00