mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 17:38:16 +03:00
Add music and sound volume config options
This adds <musicvolume> and <soundvolume> tags to unlock.vvv and settings.vvv, so users' volume preferences will be persistent across game sessions. This does not add the user interface to change them from in-game; the next commit will do that.
This commit is contained in:
@@ -771,7 +771,7 @@ static enum LoopCode loop_end(void)
|
||||
}
|
||||
else
|
||||
{
|
||||
Mix_Volume(-1,MIX_MAX_VOLUME);
|
||||
Mix_Volume(-1,MIX_MAX_VOLUME * music.user_sound_volume / USER_VOLUME_MAX);
|
||||
|
||||
if (game.musicmuted)
|
||||
{
|
||||
@@ -779,7 +779,7 @@ static enum LoopCode loop_end(void)
|
||||
}
|
||||
else
|
||||
{
|
||||
Mix_VolumeMusic(music.musicVolume);
|
||||
Mix_VolumeMusic(music.musicVolume * music.user_music_volume / USER_VOLUME_MAX);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user