diff options
author | Gregory Montoir | 2006-11-05 13:00:20 +0000 |
---|---|---|
committer | Gregory Montoir | 2006-11-05 13:00:20 +0000 |
commit | 424e9e362e55b32406af950cc5e551b9a378f45c (patch) | |
tree | b2c7cdcc12b7396f7830b8b22367fd6e01b5d672 /engines/touche/touche.cpp | |
parent | 05dcf9c11db19f0b4da7892cfdc052b0df5f3ab6 (diff) | |
download | scummvm-rg350-424e9e362e55b32406af950cc5e551b9a378f45c.tar.gz scummvm-rg350-424e9e362e55b32406af950cc5e551b9a378f45c.tar.bz2 scummvm-rg350-424e9e362e55b32406af950cc5e551b9a378f45c.zip |
enabled MIDI volume changes
svn-id: r24627
Diffstat (limited to 'engines/touche/touche.cpp')
-rw-r--r-- | engines/touche/touche.cpp | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/engines/touche/touche.cpp b/engines/touche/touche.cpp index cacf7ded33..2352d22795 100644 --- a/engines/touche/touche.cpp +++ b/engines/touche/touche.cpp @@ -46,12 +46,7 @@ ToucheEngine::ToucheEngine(OSystem *system, Common::Language language) clearDirtyRects(); _defaultSoundPriority = 0; - _snd_midiContext.unk2 = 0; - _snd_midiContext.unkA = 1; - _snd_midiContext.unkB = 0; - _snd_midiContext.volume = 0; - _snd_midiContext.unkF = 0; - _snd_midiContext.currentVolume = 175; + _playSoundCounter = 0; _processRandomPaletteCounter = 0; @@ -1711,15 +1706,10 @@ void ToucheEngine::clearRoomArea() { } void ToucheEngine::startNewMusic() { - _snd_midiContext.unkA = _flagsTable[619] & 0xFF; +// bool unkMidiFlag = _flagsTable[619] != 0; if (_newMusicNum != 0 && _newMusicNum != _currentMusicNum) { - _snd_midiContext.unkB = 3; - if (_snd_midiContext.unkF != 0 && _snd_midiContext.unk2 != 0) { - return; - } - _snd_midiContext.unkB = 0; res_loadMusic(_newMusicNum); - _snd_midiContext.unk2 = 0; + _currentMusicNum = _newMusicNum; _newMusicNum = 0; } } |