From e781295eebe67c5000256ea63dd0d54433434aaf Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 17 Dec 2017 22:57:47 +0300 Subject: Remove default parameter from sdlmusic. --- src/resources/sdlmusic.h | 4 ++-- src/soundmanager.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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 true if the playback started properly * false 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); } } -- cgit v1.2.3-70-g09d2