summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-12-17 22:40:29 +0300
committerAndrei Karas <akaras@inbox.ru>2017-12-17 22:40:29 +0300
commit7bd1dfced8823f59adb923170345664219545410 (patch)
tree0042b2e5359b5cab33a70033657a5fa13263e82c
parenteeb6f3b831e707b413a10de53c7f72139e73f963 (diff)
downloadmanaplus-7bd1dfced8823f59adb923170345664219545410.tar.gz
manaplus-7bd1dfced8823f59adb923170345664219545410.tar.bz2
manaplus-7bd1dfced8823f59adb923170345664219545410.tar.xz
manaplus-7bd1dfced8823f59adb923170345664219545410.zip
Remove default parameter from soundeffect.h
-rw-r--r--src/resources/soundeffect.h5
-rw-r--r--src/soundmanager.cpp2
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();
}