From 890349c3d1ad29ff668a3ef7fd7c535ed9a876ef Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 24 Mar 2013 02:09:36 +0300 Subject: improve soundmanager class. --- src/resources/soundeffect.cpp | 3 ++- src/resources/soundeffect.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'src/resources') 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 * false otherwise. */ virtual bool play(const int loops, const int volume, - const int channel = -1); + const int channel = -1) const; protected: /** -- cgit v1.2.3-60-g2f50