mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-05 17:57:14 +00:00
Reset channel volumes on load
svn-id: r7813
This commit is contained in:
parent
3b08208879
commit
b2f4c34c01
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user