SDL/src/audio
Ryan C. Gordon d713a68071
pulseaudio: wait until at least 1/8th (!) of the mixbuffer is available.
This is to workaround systems where we hang in playback because the buffer
does not report the space for whatever reason. The system will instead block
in PlayDevice, which always immediately follows WaitDevice in modern times
so this works out, and it seems to keep the device moving forward.

For a future revision, we are either going to clean this up more properly,
or attempt to move to PulseAudio's pa_stream_set_write_callback() API, but
this will do for SDL 2.0.18.

Reference #4387 for discussion and further information.
2021-11-25 22:32:40 -05:00
..
aaudio Fixed crash on Android 8, due to bugs in AAudio implementation 2021-11-02 15:59:26 -07:00
alsa use SDL's functions version inplace of libc version 2021-11-22 08:38:46 -08:00
android Fixed whitespace 2021-11-12 08:28:02 -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 Make sure SDL file descriptors don't leak into child processes 2021-09-08 14:47:40 -07: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 Fixed some accidental uses of external C runtime functions 2021-09-22 09:06:45 -07:00
netbsd Make sure SDL file descriptors don't leak into child processes 2021-09-08 14:47:40 -07:00
openslES Fixed bug #4982 - Failed to open audio_device on OpenSLES / Android 5.x with freq 96khz+ 2021-11-21 15:45:08 +01:00
os2 replaced many uses of libc calls with SDL_ counterparts in os2 sources. 2021-10-04 23:00:28 +03:00
paudio core: Convert SDL_IOReady()'s 2nd parameter to flags 2021-10-30 21:23:45 -07:00
pipewire Add SDL_HINT_APP_NAME and DBUS inhibition hint 2021-08-30 09:15:11 -04:00
psp PSP: un needed include 2021-11-22 08:38:46 -08:00
pulseaudio pulseaudio: wait until at least 1/8th (!) of the mixbuffer is available. 2021-11-25 22:32:40 -05:00
qsa core: Convert SDL_IOReady()'s 2nd parameter to flags 2021-10-30 21:23:45 -07:00
sndio Updated copyright for 2021 2021-01-02 10:25:38 -08:00
sun core: Convert SDL_IOReady()'s 2nd parameter to flags 2021-10-30 21:23:45 -07:00
vita Vita: unneeded include 2021-11-22 08:38:46 -08:00
wasapi wasapi: AvSetMmThreadCharacteristicsW takes an LPCWSTR param, not LPWSTR 2021-11-15 00:55:04 +03:00
winmm audio/winmm/SDL_winmm.c (SetMMerror): constify. 2021-11-14 02:30:56 +03:00
SDL_audio.c Remove 'malloc' from comment 2021-11-22 08:38:46 -08:00
SDL_audio_c.h Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_audiocvt.c Add audio conversion from/to 61 2021-11-17 16:04:54 -08:00
SDL_audiodev.c Make sure SDL file descriptors don't leak into child processes 2021-09-08 14:47:40 -07:00
SDL_audiodev_c.h Updated copyright for 2021 2021-01-02 10:25:38 -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 AAudio: add bootstrap in SDL_audio.c 2021-04-15 21:00:00 +02:00
SDL_wave.c SDL_wave: use SDL_free 2021-11-22 08:38:46 -08:00
SDL_wave.h Remove 'malloc' from comment 2021-11-22 08:38:46 -08:00