metronome: play sounds while volume is muted

This commit is contained in:
trimbe
2019-02-11 20:57:57 -05:00
committed by Adam
parent 257bf18742
commit 53504cc765

View File

@@ -27,6 +27,7 @@ package net.runelite.client.plugins.metronome;
import com.google.inject.Provides;
import javax.inject.Inject;
import net.runelite.api.SoundEffectVolume;
import net.runelite.api.Client;
import net.runelite.api.SoundEffectID;
import net.runelite.api.events.GameTick;
@@ -70,11 +71,11 @@ public class MetronomePlugin extends Plugin
{
if (config.enableTock() && shouldTock)
{
client.playSoundEffect(SoundEffectID.GE_DECREMENT_PLOP);
client.playSoundEffect(SoundEffectID.GE_DECREMENT_PLOP, SoundEffectVolume.MEDIUM_HIGH);
}
else
{
client.playSoundEffect(SoundEffectID.GE_INCREMENT_PLOP);
client.playSoundEffect(SoundEffectID.GE_INCREMENT_PLOP, SoundEffectVolume.MEDIUM_HIGH);
}
shouldTock = !shouldTock;
}