MIX_GETMIXERFREQUENCYRATIO(3)
π MIX_GetMixerFrequencyRatio π
okay so bestie, welcome to the SDL_mixer3 girlies' corner, this one lives in section 3 of the manual and it's literally just one little function that spills the tea about your mixer's master frequency ratio π«Ά
β¨ NAME β¨
MIX_GetMixerFrequencyRatio β get a mixer's master frequency ratio. that's the whole job. she's simple, she's iconic, she does not overcomplicate things π
πΈ SYNOPSIS πΈ
#include <SDL3_mixer/SDL_mixer.h>
float MIX_GetMixerFrequencyRatio(MIX_Mixer *mixer);
π¦ DESCRIPTION π¦
so here's the vibe: this function returns the last value that got set through MIX_SetMixerFrequencyRatio(). that's it. that's the ratio she's reporting.
but wait β plot twist β if no value has ever been explicitly set, she just hands you 1.0f. like, default behavior, no drama, just 1.0f π
important: it's the last value set, and if nothing was ever set it's 1.0f. no cap, that's exactly what it says, don't come for me.
π FUNCTION PARAMETERS π
mixerβ the mixer to query. you're asking her specifically, so hand her over π
π RETURN VALUE π
returns the mixer's current master frequency ratio. that's the float, that's your answer, periodt β¨
π₯ THREAD SAFETY π₯
it is safe to call this function from any thread. any. thread. go wild, no need to hold hands with a mutex, she's built different π―
β AVAILABILITY β
this function has been available since SDL_mixer 3.0.0. so if you're on something older... bestie, why π
π SEE ALSO π
MIX_SetMixerFrequencyRatio(3)β the setter, her other half π«ΆMIX_GetTrackFrequencyRatio(3)β same energy, but for a track, not the mixer π§
and that's the page, bestie!! this was SDL_mixer, version 3.2.4, and yeah β MIX_GetMixerFrequencyRatio(3), that's a wrap. go forth and query your mixers, ily, drink water ππ§π
π¦ where this page comes from
- fedora 44: SDL3_mixer-doc 3.2.4-3.fc44 Β· Zlib AND (GPL-2.0-or-later OR LGPL-2.0-or-later)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms