SDL/src/audio/pulseaudio
Ryan C. Gordon f6eb4b0759
pulseaudio: Feed audio data in response to write callbacks.
Instead of waiting until the entire buffer from the SDL callback is ready
to be accepted by PulseAudio, we use pa_stream_set_write_callback and
feed some portion of the buffer as callbacks come in asking for more.

This lets us remove the halving of the buffer size during device open,
and also (hopefully) solves several strange hangs that happen in unusual
circumstances.

Fixes #4387
Fixes #2262
2022-04-26 13:22:32 -04:00
..
SDL_pulseaudio.c pulseaudio: Feed audio data in response to write callbacks. 2022-04-26 13:22:32 -04:00
SDL_pulseaudio.h pulseaudio: Feed audio data in response to write callbacks. 2022-04-26 13:22:32 -04:00