From dc84f6b6497270875af861b20e22902d32031416 Mon Sep 17 00:00:00 2001 From: Adam Date: Mon, 7 Dec 2020 13:40:49 -0500 Subject: [PATCH] api: move sound effect volumes to preferences --- .../main/java/net/runelite/api/Client.java | 24 ------------------- .../java/net/runelite/api/Preferences.java | 24 +++++++++++++++++++ 2 files changed, 24 insertions(+), 24 deletions(-) diff --git a/runelite-api/src/main/java/net/runelite/api/Client.java b/runelite-api/src/main/java/net/runelite/api/Client.java index 580b16b1f3..2fc2be3edc 100644 --- a/runelite-api/src/main/java/net/runelite/api/Client.java +++ b/runelite-api/src/main/java/net/runelite/api/Client.java @@ -1022,30 +1022,6 @@ public interface Client extends GameEngine */ void setMusicVolume(int volume); - /** - * Gets the sound effect volume - * @return volume 0-127 inclusive - */ - int getSoundEffectVolume(); - - /** - * Sets the sound effect volume - * @param volume 0-127 inclusive - */ - void setSoundEffectVolume(int volume); - - /** - * Gets the area sound effect volume - * @return volume 0-127 inclusive - */ - int getAreaSoundEffectVolume(); - - /** - * Sets the area sound effect volume - * @param volume 0-127 inclusive - */ - void setAreaSoundEffectVolume(int volume); - /** * Play a sound effect at the player's current location. This is how UI, * and player-generated (e.g. mining, woodcutting) sound effects are diff --git a/runelite-api/src/main/java/net/runelite/api/Preferences.java b/runelite-api/src/main/java/net/runelite/api/Preferences.java index ec1fb0dad7..d7b67242bf 100644 --- a/runelite-api/src/main/java/net/runelite/api/Preferences.java +++ b/runelite-api/src/main/java/net/runelite/api/Preferences.java @@ -42,4 +42,28 @@ public interface Preferences * @param username the new remembered username */ void setRememberedUsername(String username); + + /** + * Gets the sound effect volume + * @return volume 0-127 inclusive + */ + int getSoundEffectVolume(); + + /** + * Sets the sound effect volume + * @param volume 0-127 inclusive + */ + void setSoundEffectVolume(int volume); + + /** + * Gets the area sound effect volume + * @return volume 0-127 inclusive + */ + int getAreaSoundEffectVolume(); + + /** + * Sets the area sound effect volume + * @param volume 0-127 inclusive + */ + void setAreaSoundEffectVolume(int volume); }