api: move sound effect volumes to preferences

This commit is contained in:
Adam
2020-12-07 13:40:49 -05:00
committed by Max Weber
parent 6aa085fc3e
commit dc84f6b649
2 changed files with 24 additions and 24 deletions

View File

@@ -1022,30 +1022,6 @@ public interface Client extends GameEngine
*/ */
void setMusicVolume(int volume); 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, * Play a sound effect at the player's current location. This is how UI,
* and player-generated (e.g. mining, woodcutting) sound effects are * and player-generated (e.g. mining, woodcutting) sound effects are

View File

@@ -42,4 +42,28 @@ public interface Preferences
* @param username the new remembered username * @param username the new remembered username
*/ */
void setRememberedUsername(String 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);
} }