AudioSDL 3.2

SDL_DestroyAudioStream

Frees a stream. If it came from SDL_OpenAudioDeviceStream, its device closes too.

Signature

void SDL_DestroyAudioStream(SDL_AudioStream *stream);

How it works

Queued audio that has not played yet is dropped. A stream bound to a device you opened yourself is unbound first; the device stays open.

Parameters

streamSDL_AudioStream *

The stream to free.

Example

example.cpp
Official SDL wiki