SDL_GetAudioStreamDevice

Query an audio stream for its currently-bound device.

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.

extern (C) nothrow @nogc extern
SDL_GetAudioStreamDevice

Parameters

stream SDL_AudioStream*

the audio stream to query.

Return Value

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

Threadsafety: It is safe to call this function from any thread.

See Also

Meta