aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Špalek2009-10-22 06:41:11 +0000
committerRobert Špalek2009-10-22 06:41:11 +0000
commit8f75ee9a37114115ed5f3093c305b5d4d599a5b5 (patch)
tree6401f5663edbb9b41e8365fe58cb8e8fca13189b
parent3903be61e750ddee32350dc52c75a9f4893da475 (diff)
downloadscummvm-rg350-8f75ee9a37114115ed5f3093c305b5d4d599a5b5.tar.gz
scummvm-rg350-8f75ee9a37114115ed5f3093c305b5d4d599a5b5.tar.bz2
scummvm-rg350-8f75ee9a37114115ed5f3093c305b5d4d599a5b5.zip
Fix uninitialized channel volumes.
This fixed stopped music after calling the configuration dialog. svn-id: r45327
-rw-r--r--engines/draci/music.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/draci/music.cpp b/engines/draci/music.cpp
index a5694ae2c9..b13fac0673 100644
--- a/engines/draci/music.cpp
+++ b/engines/draci/music.cpp
@@ -38,6 +38,7 @@ namespace Draci {
MusicPlayer::MusicPlayer(MidiDriver *driver, const char *pathMask) : _parser(0), _driver(driver), _pathMask(pathMask), _looping(false), _isPlaying(false), _passThrough(false), _isGM(false), _track(0) {
memset(_channel, 0, sizeof(_channel));
+ memset(_channelVolume, 255, sizeof(_channelVolume));
_masterVolume = 0;
this->open();
_smfParser = MidiParser::createParser_SMF();
@@ -230,7 +231,7 @@ void MusicPlayer::syncVolume() {
// - bindings to GPL2 scripting
// - load cmf.ins
// - enable Adlib
-// - resuming after configuration
+// + resuming after configuration
// + error handling
} // End of namespace Draci