diff options
author | johndoe123 | 2018-05-17 06:22:13 +1000 |
---|---|---|
committer | Eugene Sandulenko | 2018-07-20 06:43:33 +0000 |
commit | a76612ec5a91847e7e23652614d5e572af2c4aab (patch) | |
tree | 733277ce9a739a3f336c78049627225f545c442e /engines/illusions/sound.h | |
parent | 4637104e6d289ab42d5eb02e0f42f48133180542 (diff) | |
download | scummvm-rg350-a76612ec5a91847e7e23652614d5e572af2c4aab.tar.gz scummvm-rg350-a76612ec5a91847e7e23652614d5e572af2c4aab.tar.bz2 scummvm-rg350-a76612ec5a91847e7e23652614d5e572af2c4aab.zip |
ILLUSIONS: Implement voice pausing/unpausing
(cherry picked from commit a70cf1d)
Diffstat (limited to 'engines/illusions/sound.h')
-rw-r--r-- | engines/illusions/sound.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/engines/illusions/sound.h b/engines/illusions/sound.h index 8d5f21eed9..2669102b69 100644 --- a/engines/illusions/sound.h +++ b/engines/illusions/sound.h @@ -80,8 +80,9 @@ public: bool cue(const char *voiceName); void stopCueing(); void start(int16 volume, int16 pan); - void pause(bool paused); void stop(); + void pause(); + void unpause(); bool isPlaying(); bool isEnabled(); bool isCued(); @@ -89,6 +90,8 @@ protected: Audio::SoundHandle _soundHandle; Common::String _voiceName; uint _voiceStatus; + bool _wasPlaying; + bool _isPaused; }; class Sound { @@ -134,7 +137,8 @@ public: void stopCueingVoice(); void startVoice(int16 volume, int16 pan); void stopVoice(); - void pauseVoice(bool paused); + void pauseVoice(); + void unpauseVoice(); bool isVoicePlaying(); bool isVoiceEnabled(); bool isVoiceCued(); |