|[ < ]||[ > ]||[ << ]||[ Up ]||[ >> ]||[Top]||[Contents]||[Index]||[ ? ]|
int Mix_VolumeMusic(int volume)
Set the volume to volume, if it is 0 or greater, and return the previous volume setting. Setting the volume during a fade will not work, the faders use this function to perform their effect! Setting volume while using an external music player set by
Mix_SetMusicCMD will have no effect, and
Mix_GetError will show the reason why not.
Returns: The previous volume setting.
4.5.4 Mix_FadeInMusic, 4.5.14 Mix_FadeOutMusic, 4.5.12 Mix_SetMusicCMD