Function SDL_GetAudioStreamDevice

pub unsafe extern "C" fn SDL_GetAudioStreamDevice(
    stream: *mut SDL_AudioStream,
) -> u32 
Available on crate feature dep_sdl3 only.
Expand description

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.

§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.2.0.

§See also