Query an audio stream for its currently-bound device.
Defined in <SDL3/SDL_audio.h>
SDL_AudioDeviceID SDL_GetAudioStreamDevice(SDL_AudioStream *stream);
SDL_AudioStream * | stream | the audio stream to query. |
(SDL_AudioDeviceID) Returns the bound audio device, or 0 if not bound or invalid.
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.
It is safe to call this function from any thread.
This function is available since SDL 3.1.3.