option to ignore beatmap sample volume

This commit is contained in:
yugecin
2016-09-30 20:46:38 +02:00
parent 8891976d48
commit 08d9f4165a
3 changed files with 12 additions and 0 deletions

View File

@@ -433,6 +433,7 @@ public class Options {
container.setMusicVolume(getMasterVolume() * getMusicVolume());
}
},
IGNORE_SAMPLE_VOLUME ("Ignore sample volume", "IgnoreBMSample", "Ignore hitsound volume set by beatmap", true),
EFFECT_VOLUME ("Effect Volume", "VolumeEffect", "Volume of menu and game sounds.", 70, 0, 100),
HITSOUND_VOLUME ("Hit Sound Volume", "VolumeHitSound", "Volume of hit sounds.", 30, 0, 100),
MUSIC_OFFSET ("Music Offset", "Offset", "Adjust this value if hit objects are out of sync.", -75, -500, 500) {
@@ -1164,6 +1165,12 @@ public class Options {
*/
public static float getHitSoundVolume() { return GameOption.HITSOUND_VOLUME.getIntegerValue() / 100f; }
/**
* Returns the default hit sound volume.
* @return the hit sound volume [0, 1]
*/
public static boolean ignoreBeatmapSampleVolume() { return GameOption.IGNORE_SAMPLE_VOLUME.bool; }
/**
* Returns the music offset time.
* @return the offset (in milliseconds)