SDL_BindAudioStream

Bind a single audio stream to an audio device.

This is a convenience function, equivalent to calling SDL_BindAudioStreams(devid, &stream, 1).

extern (C) nothrow @nogc extern
bool
SDL_BindAudioStream

Parameters

devid SDL_AudioDeviceID

an audio device to bind a stream to.

stream SDL_AudioStream*

an audio stream to bind to a device.

Return Value

Type: bool

true on success or false on failure; call SDL_GetError() for more information.

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

See Also

Meta