I believe this fixes part of the music fading glitch in IHNM, but there's still

a slight problem when the intro fades the music down. Just before starting the
new music, the old music is briefly set back to normal volume again. This could
be a script bug, but I haven't investigated it any further.

svn-id: r28833
This commit is contained in:
Torbjörn Andersson 2007-09-02 21:40:09 +00:00
parent cb2ce51236
commit 243a48138d

View File

@ -566,7 +566,7 @@ void Music::play(uint32 resourceId, MusicFlags flags) {
parser->property(MidiParser::mpCenterPitchWheelOnUnload, 1);
_player->_parser = parser;
_player->setVolume(_vm->_musicVolume == 10 ? 255 : _vm->_musicVolume * 25);
setVolume(_vm->_musicVolume == 10 ? 255 : _vm->_musicVolume * 25);
if (flags & MUSIC_LOOP)
_player->setLoop(true);