Blast-Radius Aware AI Code Review for Business-Critical Systems
LiveReview LiveReview Explore LiveReview

SDL_GetAudioStreamDevice - Query an audio stream for its currently-bound device.

Availability

       This function is available since SDL 3.2.0.

Description

       This reports the logical 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.

Name

       SDL_GetAudioStreamDevice - Query an audio stream for its currently-bound device.

Return Value

       Returns the bound audio device, or 0 if not bound or invalid.

See Also

SDL_BindAudioStream(3), SDL_BindAudioStreams(3)

Simple Directmedia Layer                           SDL 3.2.20                        SDL_GetAudioStreamDevice(3)

Synopsis

#include<SDL3/SDL_audio.h>SDL_AudioDeviceIDSDL_GetAudioStreamDevice(SDL_AudioStream*stream);

Thread Safety

       It is safe to call this function from any thread.

See Also