sdl2_frt/src/audio
Splamy c72aef2664 Fixed microphone randomly stop working
WASAPI_WaitDevice is used for audio playback and capture, but needs to
behave slighty different.
For playback `GetCurrentPadding` returns the padding which is already
queued, so WaitDevice should return when buffer length falls below the
buffer threshold (`maxpadding`).
For capture `GetCurrentPadding` returns the available data which can be
read, so WaitDevice can return as soon as any data is available.

In the old implementation WaitDevice could suddenly hang. This is
because on many capture devices the buffer (`padding`) wasn't filled
fast enough to surpass `maxpadding`. But if at one point (due to unlucky
timing) more than maxpadding frames were available, WaitDevice would not
return anymore.

Issue #3234 is probably related to this.
2021-07-27 14:19:11 -04: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: 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 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: 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 pulseaudio: Optionally add "monitor" sources to device list. 2021-07-27 13:12:57 -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 Fixed microphone randomly stop working 2021-07-27 14:19:11 -04: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 Support comma-separated lists in SDL_AUDIODRIVER 2021-07-26 15:14:54 -04:00
SDL_audiocvt.c audiocvt: stereo-to-mono SSE3 now uses unaligned accesses. 2021-07-27 12:23:46 -04: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 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