summaryrefslogtreecommitdiff
path: root/src/resources
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources')
-rw-r--r--src/resources/soundeffect.cpp3
-rw-r--r--src/resources/soundeffect.h2
2 files changed, 3 insertions, 2 deletions
diff --git a/src/resources/soundeffect.cpp b/src/resources/soundeffect.cpp
index 48772291b..2da3319e8 100644
--- a/src/resources/soundeffect.cpp
+++ b/src/resources/soundeffect.cpp
@@ -49,7 +49,8 @@ Resource *SoundEffect::load(SDL_RWops *const rw)
}
}
-bool SoundEffect::play(const int loops, const int volume, const int channel)
+bool SoundEffect::play(const int loops, const int volume,
+ const int channel) const
{
Mix_VolumeChunk(mChunk, volume);
diff --git a/src/resources/soundeffect.h b/src/resources/soundeffect.h
index 67c28591b..50ddd562d 100644
--- a/src/resources/soundeffect.h
+++ b/src/resources/soundeffect.h
@@ -63,7 +63,7 @@ class SoundEffect final : public Resource
* <code>false</code> otherwise.
*/
virtual bool play(const int loops, const int volume,
- const int channel = -1);
+ const int channel = -1) const;
protected:
/**