diff options
Diffstat (limited to 'engines/cruise/sound.cpp')
-rw-r--r-- | engines/cruise/sound.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/engines/cruise/sound.cpp b/engines/cruise/sound.cpp index 1441ae9661..cef67385f9 100644 --- a/engines/cruise/sound.cpp +++ b/engines/cruise/sound.cpp @@ -379,13 +379,12 @@ void AdLibSoundDriver::stopChannel(int channel) { } void AdLibSoundDriver::stopAll() { - int i; - for (i = 0; i < 18; ++i) { + for (int i = 0; i < 18; ++i) OPLWriteReg(_opl, 0x40 | _operatorsTable[i], 63); - } - for (i = 0; i < 9; ++i) { + + for (int i = 0; i < 9; ++i) OPLWriteReg(_opl, 0xB0 | i, 0); - } + OPLWriteReg(_opl, 0xBD, 0); } |