diff options
author | Alyssa Milburn | 2012-08-28 20:25:48 +0200 |
---|---|---|
committer | Alyssa Milburn | 2012-08-28 20:25:48 +0200 |
commit | 9ebbeda949c0a4da2c5a3ecb588a718bb867c0d4 (patch) | |
tree | 9435b78f87c8b78b9a68553a9d94c8c34b7099cc /engines | |
parent | 23638a07d34c9d4c30e0b4e65b419c7862853e24 (diff) | |
download | scummvm-rg350-9ebbeda949c0a4da2c5a3ecb588a718bb867c0d4.tar.gz scummvm-rg350-9ebbeda949c0a4da2c5a3ecb588a718bb867c0d4.tar.bz2 scummvm-rg350-9ebbeda949c0a4da2c5a3ecb588a718bb867c0d4.zip |
TONY: Implement some forgotten sound/music functions.
Diffstat (limited to 'engines')
-rw-r--r-- | engines/tony/tony.cpp | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/engines/tony/tony.cpp b/engines/tony/tony.cpp index b9d12beb11..05c195f8ba 100644 --- a/engines/tony/tony.cpp +++ b/engines/tony/tony.cpp @@ -518,13 +518,28 @@ void TonyEngine::closeMusic() { } void TonyEngine::pauseSound(bool bPause) { + _theEngine.pauseSound(bPause); + + for (uint i = 0; i < 6; i++) + if (_stream[i]) + _stream[i]->pause(bPause); + + for (uint i = 0; i < MAX_SFX_CHANNELS; i++) { + if (_sfx[i]) + _sfx[i]->pause(bPause); + if (_utilSfx[i]) + _utilSfx[i]->pause(bPause); + } } void TonyEngine::setMusicVolume(int nChannel, int volume) { + _stream[nChannel + GLOBALS._flipflop]->setVolume(volume); } int TonyEngine::getMusicVolume(int nChannel) { - return 255; + int volume; + _stream[nChannel + GLOBALS._flipflop]->getVolume(&volume); + return volume; } Common::String TonyEngine::getSaveStateFileName(int n) { |