summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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();
}