summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/resources/sdlmusic.h4
-rw-r--r--src/soundmanager.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/resources/sdlmusic.h b/src/resources/sdlmusic.h
index 70614c420..40e7be7ee 100644
--- a/src/resources/sdlmusic.h
+++ b/src/resources/sdlmusic.h
@@ -66,8 +66,8 @@ class SDLMusic final : public Resource
* @return <code>true</code> if the playback started properly
* <code>false</code> otherwise.
*/
- bool play(const int loops = -1,
- const int fadeIn = 0) const;
+ bool play(const int loops,
+ const int fadeIn) const;
int calcMemoryLocal() const override final;
diff --git a/src/soundmanager.cpp b/src/soundmanager.cpp
index 437e77775..94f976f6c 100644
--- a/src/soundmanager.cpp
+++ b/src/soundmanager.cpp
@@ -366,7 +366,7 @@ void SoundManager::playMusic(const std::string &fileName,
mMusic = loadMusic(fileName,
skipError);
if (mMusic != nullptr)
- mMusic->play();
+ mMusic->play(-1, 0);
}
}