summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-12-17 22:57:47 +0300
committerAndrei Karas <akaras@inbox.ru>2017-12-17 22:57:47 +0300
commite781295eebe67c5000256ea63dd0d54433434aaf (patch)
tree30f8e5367574525c1336c16890e6774b86e15138 /src
parent7bd1dfced8823f59adb923170345664219545410 (diff)
downloadmv-e781295eebe67c5000256ea63dd0d54433434aaf.tar.gz
mv-e781295eebe67c5000256ea63dd0d54433434aaf.tar.bz2
mv-e781295eebe67c5000256ea63dd0d54433434aaf.tar.xz
mv-e781295eebe67c5000256ea63dd0d54433434aaf.zip
Remove default parameter from sdlmusic.
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);
}
}