table of contents
other versions
SDL_GetAudioStreamBinding(3) | SDL3 FUNCTIONS | SDL_GetAudioStreamBinding(3) |
NAME¶
SDL_GetAudioStreamBinding - Query an audio stream for its currently-bound device.
SYNOPSIS¶
#include "SDL3/SDL.h"
SDL_AudioDeviceID SDL_GetAudioStreamBinding(SDL_AudioStream *stream);
DESCRIPTION¶
This reports the audio device that an audio stream is currently bound to.
If not bound, or invalid, this returns zero, which is not a valid device ID.
FUNCTION PARAMETERS¶
- stream
- the audio stream to query.
RETURN VALUE¶
Returns The bound audio device, or 0 if not bound or invalid.
THREAD SAFETY¶
It is safe to call this function from any thread.
AVAILABILITY¶
This function is available since SDL 3.0.0.
SEE ALSO¶
SDL_BindAudioStream(3), SDL_BindAudioStreams(3), SDL_UnbindAudioStream(3), SDL_UnbindAudioStreams(3)
SDL 3.0.0 | SDL |