AudioSDL 3.2
SDL_ResumeAudioStreamDevice
Unpauses the device behind a stream opened with SDL_OpenAudioDeviceStream, so sound starts flowing.
Signature
bool SDL_ResumeAudioStreamDevice(SDL_AudioStream *stream);
How it works
Forgetting this call is the classic "my sound does not play" bug with SDL_OpenAudioDeviceStream. SDL_PauseAudioStreamDevice pauses it again (for a pause menu, say).
Parameters
streamSDL_AudioStream *
The stream from SDL_OpenAudioDeviceStream.
Return value
true on success, false on failure.
Example
example.cpp
1SDL_ResumeAudioStreamDevice(stream);