SDL_GetAudioStreamFrequencyRatio - Man Page

Get the frequency ratio of an audio stream.

Header File

Defined in SDL3/SDL_audio.h

Synopsis

#include "SDL3/SDL.h"

float SDL_GetAudioStreamFrequencyRatio(SDL_AudioStream *stream);

Function Parameters

stream

the SDL_AudioStream
to query.

Return Value

Returns the frequency ratio of the stream or 0.0 on failure; call

SDL_GetError () for more information.

Thread Safety

It is safe to call this function from any thread, as it holds a stream-specific mutex while running.

Availability

This function is available since SDL 3.2.0.

See Also

·(3), SDL_SetAudioStreamFrequencyRatio(3)

Referenced By

SDL_SetAudioStreamFrequencyRatio(3).

SDL 3.2.2 Simple Directmedia Layer SDL3 FUNCTIONS