getVolume method

int getVolume()

Query the current volume value for a music object.

\param music the music object to query. \returns the music's current volume, between 0 and MIX_MAX_VOLUME (128).

\since This function is available since SDL_mixer 3.0.0.

extern SDL_DECLSPEC int SDLCALL Mix_GetMusicVolume(Mix_Music *music)

Implementation

int getVolume() {
  return mixGetMusicVolume(this);
}