Skip to content

Commit

Permalink
Improve javadoc of JukeBox volume setter/getter
Browse files Browse the repository at this point in the history
Signed-off-by: Matthias <webmaster@pottgames.de>
  • Loading branch information
Hangman committed Jul 31, 2024
1 parent 02393e5 commit 8fbe29d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ protected float fadeOut(SongSource source, SongSettings settings, float playback
* master volume = JukeBox.getVolume() * SongSettings.fadeVolume()
* </code>
*
* @param volume
* @param volume in the range of 0.0 - 1.0 with 0 being silent and 1 being the maximum volume, values outside of the range will be clamped
*/
public void setVolume(float volume) {
this.volume = MathUtils.clamp(volume, 0f, 1f);
Expand All @@ -174,7 +174,7 @@ public void setVolume(float volume) {
* master volume = JukeBox.getVolume() * SongSettings.fadeVolume()
* </code>
*
* @return the master volume
* @return the master volume in the range of 0.0 - 1.0 with 0 being silent and 1 being the maximum volume
*/
public float getVolume() {
return this.volume;
Expand Down

0 comments on commit 8fbe29d

Please sign in to comment.