table of contents
other versions
- experimental 3.1~git20260101~3045b35+ds-1
| MIX_GetMasterGain(3) | SDL_mixer3 FUNCTIONS | MIX_GetMasterGain(3) |
NAME¶
MIX_GetMasterGain - Get a mixer's master gain control.
SYNOPSIS¶
#include <SDL3_mixer/SDL_mixer.h>
float MIX_GetMasterGain(MIX_Mixer *mixer);
DESCRIPTION¶
This returns the last value set through MIX_SetMasterGain(), or 1.0f if no value has ever been explicitly set.
FUNCTION PARAMETERS¶
- mixer
- the mixer to query.
RETURN VALUE¶
Returns the mixer's current master gain.
THREAD SAFETY¶
It is safe to call this function from any thread.
AVAILABILITY¶
This function is available since SDL_mixer 3.0.0.
SEE ALSO¶
| SDL_mixer 3.1.0 | SDL_mixer |