AudioSDL 3.2

SDL_ResumeAudioDevice

Unpauses a device paused with SDL_PauseAudioDevice.

Signature

bool SDL_ResumeAudioDevice(SDL_AudioDeviceID devid);

How it works

Devices from SDL_OpenAudioDevice start unpaused, so you only need this after pausing one yourself (a pause menu stops all bound streams at once). Resuming a device that is already playing does nothing, so calling it right after opening is harmless.

Parameters

devidSDL_AudioDeviceID

A device from SDL_OpenAudioDevice.

Return value

true on success, false on failure.

Example

example.cpp
1SDL_PauseAudioDevice(dev);    // pause menu opened
2// ...
3SDL_ResumeAudioDevice(dev);   // back to the game
Official SDL wiki