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