diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-03-24 02:09:36 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-03-24 02:09:36 +0300 |
commit | 890349c3d1ad29ff668a3ef7fd7c535ed9a876ef (patch) | |
tree | 343a3e21c2ded430d912b9b124d6239933ff3d25 /src/resources | |
parent | 39b61e709ca41804af30410f4a82a99f34900a29 (diff) | |
download | manaverse-890349c3d1ad29ff668a3ef7fd7c535ed9a876ef.tar.gz manaverse-890349c3d1ad29ff668a3ef7fd7c535ed9a876ef.tar.bz2 manaverse-890349c3d1ad29ff668a3ef7fd7c535ed9a876ef.tar.xz manaverse-890349c3d1ad29ff668a3ef7fd7c535ed9a876ef.zip |
improve soundmanager class.
Diffstat (limited to 'src/resources')
-rw-r--r-- | src/resources/soundeffect.cpp | 3 | ||||
-rw-r--r-- | src/resources/soundeffect.h | 2 |
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: /** |