SDL School

API reference / Audio

SDL_ResumeAudioStreamDevice

Function, SDL3

Starts or continues the device of a stream. A new stream makes no sound until you call this.

Declaration

#include <SDL3/SDL.h>

bool SDL_ResumeAudioStreamDevice(SDL_AudioStream *stream);

Parameters

streamThe stream.

Return value

True on success. On failure it returns false.

Example

Play a sound
SDL_ResumeAudioStreamDevice(stream);

See this code run in Play a sound. Download the full program (.zip)

In SDL2

Use SDL_PauseAudioDevice with 0 as the second argument.

See also