aboutsummaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorPaweł Kołodziejski2004-09-04 13:13:23 +0000
committerPaweł Kołodziejski2004-09-04 13:13:23 +0000
commit3a19ca1be3ef163cf88f58236cb004163947340f (patch)
tree90ed5d75dc49c8d84d478a2375377c94ccaf1d93 /sound
parent23e294e10c237fc5ddb53205d2d7d187e4537e0d (diff)
downloadscummvm-rg350-3a19ca1be3ef163cf88f58236cb004163947340f.tar.gz
scummvm-rg350-3a19ca1be3ef163cf88f58236cb004163947340f.tar.bz2
scummvm-rg350-3a19ca1be3ef163cf88f58236cb004163947340f.zip
fixde bug IMUSE+DEBUG
svn-id: r14892
Diffstat (limited to 'sound')
-rw-r--r--sound/mixer.cpp4
-rw-r--r--sound/mixer.h3
2 files changed, 7 insertions, 0 deletions
diff --git a/sound/mixer.cpp b/sound/mixer.cpp
index 40dfe8b3be..adf92cbd10 100644
--- a/sound/mixer.cpp
+++ b/sound/mixer.cpp
@@ -134,6 +134,10 @@ SoundMixer::~SoundMixer() {
_syst->deleteMutex(_mutex);
}
+bool SoundMixer::isPaused() {
+ return _paused;
+}
+
void SoundMixer::setupPremix(PremixProc *proc, void *param) {
Common::StackLock lock(_mutex);
_premixParam = param;
diff --git a/sound/mixer.h b/sound/mixer.h
index 1ab0360b24..91b32ae152 100644
--- a/sound/mixer.h
+++ b/sound/mixer.h
@@ -145,6 +145,9 @@ public:
/** pause/unpause all channels */
void pauseAll(bool paused);
+ /** check if mixer is paused */
+ bool isPaused();
+
/** pause/unpause the sound with the given ID */
void pauseID(int id, bool paused);