diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-12-17 22:40:29 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-12-17 22:40:29 +0300 |
commit | 7bd1dfced8823f59adb923170345664219545410 (patch) | |
tree | 0042b2e5359b5cab33a70033657a5fa13263e82c | |
parent | eeb6f3b831e707b413a10de53c7f72139e73f963 (diff) | |
download | plus-7bd1dfced8823f59adb923170345664219545410.tar.gz plus-7bd1dfced8823f59adb923170345664219545410.tar.bz2 plus-7bd1dfced8823f59adb923170345664219545410.tar.xz plus-7bd1dfced8823f59adb923170345664219545410.zip |
Remove default parameter from soundeffect.h
-rw-r--r-- | src/resources/soundeffect.h | 5 | ||||
-rw-r--r-- | src/soundmanager.cpp | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/src/resources/soundeffect.h b/src/resources/soundeffect.h index 2797ce00e..71f5f5f03 100644 --- a/src/resources/soundeffect.h +++ b/src/resources/soundeffect.h @@ -65,8 +65,9 @@ class SoundEffect final : public Resource * @return <code>true</code> if the playback started properly * <code>false</code> otherwise. */ - bool play(const int loops, const int volume, - const int channel = -1) const; + bool play(const int loops, + const int volume, + const int channel) const; int calcMemoryLocal() const override final; diff --git a/src/soundmanager.cpp b/src/soundmanager.cpp index 5a9ddb333..437e77775 100644 --- a/src/soundmanager.cpp +++ b/src/soundmanager.cpp @@ -485,7 +485,7 @@ void SoundManager::playSfx(const std::string &path, vol -= dist * 8; } - sample->play(0, vol); + sample->play(0, vol, -1); if (!mCacheSounds) sample->decRef(); } |