aboutsummaryrefslogtreecommitdiff
path: root/scumm/imuse.h
diff options
context:
space:
mode:
authorMax Horn2003-09-07 17:14:56 +0000
committerMax Horn2003-09-07 17:14:56 +0000
commit361c3b95d52babd23b78864e6679334ed1c9e316 (patch)
tree97538bbcab6862f5a5c5a88e681907ba301e44c6 /scumm/imuse.h
parent38402315d5cb34b610db2eaf9025c307ed8ba374 (diff)
downloadscummvm-rg350-361c3b95d52babd23b78864e6679334ed1c9e316.tar.gz
scummvm-rg350-361c3b95d52babd23b78864e6679334ed1c9e316.tar.bz2
scummvm-rg350-361c3b95d52babd23b78864e6679334ed1c9e316.zip
some cleanup; clarified isSoundInUse semantics and the difference between IMuse::get_sound_active and IMuse::getSoundStatus; added lots of const qualifiers to IMuse; rewrote IMuseInternal::getSoundStatus (hopefully not breaking it); added MusicEngine::getSoundStatus
svn-id: r10069
Diffstat (limited to 'scumm/imuse.h')
-rw-r--r--scumm/imuse.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/scumm/imuse.h b/scumm/imuse.h
index 6cef659dda..78b75829dc 100644
--- a/scumm/imuse.h
+++ b/scumm/imuse.h
@@ -38,11 +38,11 @@ class IMuse : public MusicEngine {
private:
OSystem *_system;
IMuseInternal *_target;
- OSystem::MutexRef _mutex;
+ mutable OSystem::MutexRef _mutex;
IMuse(OSystem *system, IMuseInternal *target);
- void in();
- void out();
+ void in() const;
+ void out() const;
public:
~IMuse();
@@ -66,8 +66,8 @@ public:
void startSound(int sound);
void stopSound(int sound);
int stopAllSounds();
- int getSoundStatus(int sound);
- bool get_sound_active(int sound);
+ int getSoundStatus(int sound) const;
+ bool get_sound_active(int sound) const;
int getMusicTimer();
int32 doCommand (int a, int b, int c, int d, int e, int f, int g, int h);
int32 doCommand (int numargs, int args[]);