diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-12-17 22:57:47 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-12-17 22:57:47 +0300 |
commit | e781295eebe67c5000256ea63dd0d54433434aaf (patch) | |
tree | 30f8e5367574525c1336c16890e6774b86e15138 | |
parent | 7bd1dfced8823f59adb923170345664219545410 (diff) | |
download | plus-e781295eebe67c5000256ea63dd0d54433434aaf.tar.gz plus-e781295eebe67c5000256ea63dd0d54433434aaf.tar.bz2 plus-e781295eebe67c5000256ea63dd0d54433434aaf.tar.xz plus-e781295eebe67c5000256ea63dd0d54433434aaf.zip |
Remove default parameter from sdlmusic.
-rw-r--r-- | src/resources/sdlmusic.h | 4 | ||||
-rw-r--r-- | src/soundmanager.cpp | 2 |
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); } } |