Scroll to navigation

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

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

MIX_SetMasterGain(3), MIX_GetTrackGain(3)

SDL_mixer 3.1.0 SDL_mixer