diff options
Diffstat (limited to 'engines')
-rw-r--r-- | engines/saga/music.cpp | 6 | ||||
-rw-r--r-- | engines/saga/music.h | 1 |
2 files changed, 5 insertions, 2 deletions
diff --git a/engines/saga/music.cpp b/engines/saga/music.cpp index 11c3fa3f58..c65014c923 100644 --- a/engines/saga/music.cpp +++ b/engines/saga/music.cpp @@ -578,11 +578,13 @@ void Music::play(uint32 resourceId, MusicFlags flags) { } void Music::pause(void) { - //TODO: do it + _player->setVolume(-1); + _player->setPlaying(false); } void Music::resume(void) { - //TODO: do it} + _player->setVolume(_vm->_musicVolume == 10 ? 255 : _vm->_musicVolume * 25); + _player->setPlaying(true); } void Music::stop(void) { diff --git a/engines/saga/music.h b/engines/saga/music.h index 036fcbf897..1fbdda53f2 100644 --- a/engines/saga/music.h +++ b/engines/saga/music.h @@ -50,6 +50,7 @@ public: ~MusicPlayer(); bool isPlaying() { return _isPlaying; } + void setPlaying(bool playing) { _isPlaying = playing; } void setVolume(int volume); int getVolume() { return _masterVolume; } |