SDL_GetAudioStreamFormat

Query the current format of an audio stream.

extern (C) nothrow @nogc extern
bool
SDL_GetAudioStreamFormat

Parameters

stream SDL_AudioStream*

the SDL_AudioStream to query.

src_spec SDL_AudioSpec*

where to store the input audio format; ignored if NULL.

dst_spec SDL_AudioSpec*

where to store the output audio format; ignored if NULL.

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, as it holds a stream-specific mutex while running.

See Also

Meta