Please sign in to comment.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
audio: run the audio callback even if device was lost.
We will throw away the data anyhow, but some apps depend on the callback firing to make progress; testmultiaudio.c, if nothing else, is an example of this. Capture also will now fire the callback in these conditions, offering nothing but silence. Apps can check SDL_GetAudioDeviceStatus() or listen for the SDL_AUDIODEVICEREMOVED event if they want to gracefully deal with an opened audio device that has been unexpectedly lost.
- Loading branch information