diff options
author | Robert Špalek | 2009-10-22 06:41:11 +0000 |
---|---|---|
committer | Robert Špalek | 2009-10-22 06:41:11 +0000 |
commit | 8f75ee9a37114115ed5f3093c305b5d4d599a5b5 (patch) | |
tree | 6401f5663edbb9b41e8365fe58cb8e8fca13189b | |
parent | 3903be61e750ddee32350dc52c75a9f4893da475 (diff) | |
download | scummvm-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.cpp | 3 |
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 |