Skip to content

Commit

Permalink
Follow-up
Browse files Browse the repository at this point in the history
Signed-off-by: Matthias <webmaster@pottgames.de>
  • Loading branch information
Hangman committed Jul 28, 2024
1 parent dc3451f commit 02393e5
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -466,14 +466,6 @@ protected void handleEvents() {
}


protected void notifyVolumeChange(float oldVolume, float newVolume) {
for (int i = 0; i < this.observer.size; i++) {
final JukeBoxObserver observer = this.observer.get(i);
observer.onMasterVolumeChanged(oldVolume, newVolume);
}
}


protected void notifySongStart(Song song) {
for (int i = 0; i < this.observer.size; i++) {
final JukeBoxObserver observer = this.observer.get(i);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,15 +71,4 @@ public interface JukeBoxObserver {
*/
void onJukeBoxEnd();


/**
* This method is called when the master volume of the {@link JukeBox} changed by calling {@link JukeBox#setVolume(float)}.
*
* @param oldVolume the volume before the change
* @param newVolume the new volume after the change
*/
default void onMasterVolumeChanged(float oldVolume, float newVolume) {
// do nothing by default
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -205,12 +205,6 @@ public void onJukeBoxPause() {
}


@Override
public void onMasterVolumeChanged(float oldVolume, float newVolume) {
System.out.println(JukeBoxTest.timeStamp() + " Master volume changed from " + oldVolume + " to " + newVolume);
}


private static String timeStamp() {
return "[" + System.currentTimeMillis() + "]";
}
Expand Down

0 comments on commit 02393e5

Please sign in to comment.