getGain method

double getGain()

Get a track's gain control.

This returns the last value set through MIX_SetTrackGain(), or 1.0f if no value has ever been explicitly set.

\param track the track to query. \returns the track's current gain.

\threadsafety It is safe to call this function from any thread.

\since This function is available since SDL_mixer 3.0.0.

\sa MIX_SetTrackGain \sa MIX_GetMasterGain

extern SDL_DECLSPEC float SDLCALL MIX_GetTrackGain(MIX_Track *track)

{@category mixer}

Implementation

double getGain() => mixGetTrackGain(this);