diff options
author | Jamieson Christian | 2003-05-22 00:06:24 +0000 |
---|---|---|
committer | Jamieson Christian | 2003-05-22 00:06:24 +0000 |
commit | b2f4c34c01f15d8f0c1f95fd3c80993757c0e64d (patch) | |
tree | 297f25d65c7c6735d4c2e71c2b371cc556b96675 /simon | |
parent | 3b08208879e8abfd138bae444668d288b5b2b89a (diff) | |
download | scummvm-rg350-b2f4c34c01f15d8f0c1f95fd3c80993757c0e64d.tar.gz scummvm-rg350-b2f4c34c01f15d8f0c1f95fd3c80993757c0e64d.tar.bz2 scummvm-rg350-b2f4c34c01f15d8f0c1f95fd3c80993757c0e64d.zip |
Reset channel volumes on load
svn-id: r7813
Diffstat (limited to 'simon')
-rw-r--r-- | simon/midi.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/simon/midi.cpp b/simon/midi.cpp index a3368e70e6..c181511d40 100644 --- a/simon/midi.cpp +++ b/simon/midi.cpp @@ -296,6 +296,7 @@ void MidiPlayer::loadSMF (File *in, int song) { _paused = true; _currentTrack = 255; + memset(_volumeTable, 127, sizeof(_volumeTable)); _parser = parser; // That plugs the power cord into the wall _system->unlock_mutex (_mutex); } @@ -351,6 +352,7 @@ void MidiPlayer::loadMultipleSMF (File *in) { _paused = true; _currentTrack = 255; + memset(_volumeTable, 127, sizeof(_volumeTable)); _system->unlock_mutex (_mutex); } @@ -397,6 +399,7 @@ void MidiPlayer::loadXMIDI (File *in) { _paused = true; _currentTrack = 255; + memset(_volumeTable, 127, sizeof(_volumeTable)); _parser = parser; // That plugs the power cord into the wall _system->unlock_mutex (_mutex); } |