SDL/src/audio
Ethan Lee 9d294f1fca audio: Allow AudioStreamGet to return 0 in RunAudio.
While we should normally expect _something_ from the stream based on the
AudioStreamAvailable check, it's possible for a device change to flush the
stream at an inconvenient time, causing this function to return 0.

Thing is, this is harmless. Either data will be NULL and the result won't matter
anyway, or the data buffer will be zeroed out and the output will just be
silence for the brief moment that the device change is occurring. Both scenarios
work themselves out, and testing on Windows shows that this behavior is safe.
2021-03-29 08:58:02 -07: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 Add SDL_GetAudioDeviceSpec. 2021-03-05 12:03:07 -08:00
directsound Add SDL_GetAudioDeviceSpec. 2021-03-05 12:03:07 -08:00
disk Add SDL_GetAudioDeviceSpec. 2021-03-05 12:03:07 -08:00
dsp dsp: Refuse to initialize if there aren't any Open Sound System devices. 2021-03-17 13:04:05 -04:00
dummy Updated copyright for 2021 2021-01-02 10:25:38 -08:00
emscripten emscripten: Automatically resume audio contexts 2021-02-13 11:56:01 -05: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 Updated copyright for 2021 2021-01-02 10:25:38 -08: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: Block while waiting on stream state info 2021-03-29 08:49:25 -07:00
psp Updated copyright for 2021 2021-01-02 10:25:38 -08:00
pulseaudio Add SDL_GetAudioDeviceSpec. 2021-03-05 12:03:07 -08: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 Formatting 2021-03-08 09:07:12 -08:00
wasapi wasapi: Remove assert added by 67e8522d 2021-03-29 08:55:13 -07:00
winmm Add SDL_GetAudioDeviceSpec. 2021-03-05 12:03:07 -08:00
SDL_audio_c.h Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_audio.c audio: Allow AudioStreamGet to return 0 in RunAudio. 2021-03-29 08:58:02 -07:00
SDL_audiocvt.c Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_audiodev_c.h Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_audiodev.c Add SDL_GetAudioDeviceSpec. 2021-03-05 12:03:07 -08: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 Initial rebase of xerpi's port 2021-03-08 09:07:12 -08: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