SDL_BindAudioStream - Man Page

Bind a single audio stream to an audio device.

Header File

Defined in SDL3/SDL_audio.h

Synopsis

#include "SDL3/SDL.h"

bool SDL_BindAudioStream(SDL_AudioDeviceID devid, SDL_AudioStream *stream);

Description

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

Function Parameters

devid

an audio device to bind a stream to.

stream

an audio stream to bind to a device.

Return Value

Returns true on success or false on failure; call

SDL_GetError () for more information.

Thread Safety

It is safe to call this function from any thread.

Availability

This function is available since SDL 3.2.0.

See Also

·(3), SDL_BindAudioStreams(3), ·(3), SDL_UnbindAudioStream(3), ·(3), SDL_GetAudioStreamDevice(3)

Referenced By

SDL_GetAudioStreamDevice(3), SDL_UnbindAudioStream(3).

SDL 3.2.2 Simple Directmedia Layer SDL3 FUNCTIONS