renamed the method in BackgroundMusic

renamed the method toogleMusic to toggleMusic.
This commit is contained in:
Hanno Fleischer hanno.fleischer@unibw.de
2024-10-05 19:08:57 +02:00
parent f6f87c4f5d
commit 9dc3984f35
2 changed files with 2 additions and 2 deletions

View File

@@ -111,7 +111,7 @@ public void pause(AudioNode audioNode) {
/**
* Toggle Method to control the music to switch it on or off
*/
public void toogleMusic() {
public void toggleMusic() {
this.musicEnabled = !this.musicEnabled;
if (musicEnabled) {
switch (lastNodePlayed){

View File

@@ -143,7 +143,7 @@ private void adjustSoundVolume(double volume) {
* this method toggles the background music on and off
*/
private void toggleMusic() {
app.getBackgroundMusic().toogleMusic();
app.getBackgroundMusic().toggleMusic();
}
/**