###### (This function is part of SDL_mixer, a separate library from SDL.) # MIX_GetMasterGain Get a mixer's master gain control. ## Header File Defined in [](https://github.com/libsdl-org/SDL_mixer/blob/main/include/SDL3_mixer/SDL_mixer.h) ## Syntax ```c float MIX_GetMasterGain(MIX_Mixer *mixer); ``` ## Function Parameters | | | | | ------------------------ | --------- | ------------------- | | [MIX_Mixer](MIX_Mixer) * | **mixer** | the mixer to query. | ## Return Value (float) Returns the mixer's current master gain. ## Remarks This returns the last value set through [MIX_SetMasterGain](MIX_SetMasterGain)(), or 1.0f if no value has ever been explicitly set. ## Thread Safety It is safe to call this function from any thread. ## Version This function is available since SDL_mixer 3.0.0. ## See Also - [MIX_SetMasterGain](MIX_SetMasterGain) - [MIX_GetTrackGain](MIX_GetTrackGain) ---- [CategoryAPI](CategoryAPI), [CategoryAPIFunction](CategoryAPIFunction), [CategorySDLMixer](CategorySDLMixer)