MIX_GETMIXERFREQUENCYRATIO(3)

πŸ“¦
version 3.2.4 Β· 2 versions
, in fedora 44

πŸ’– 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 πŸ‘‘


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