diff options
Diffstat (limited to 'sound')
| -rw-r--r-- | sound/mixer.cpp | 4 | ||||
| -rw-r--r-- | sound/mixer.h | 3 |
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); |
