diff options
author | Johannes Schickel | 2009-08-08 12:22:34 +0000 |
---|---|---|
committer | Johannes Schickel | 2009-08-08 12:22:34 +0000 |
commit | d14c0fd886cfb46854034cfbada43d6300a35dae (patch) | |
tree | 9e46896e5769a5bda9758f665b6ca914c6dae904 /engines | |
parent | 462d6dc65ced5c08d91a31bdeed69702c681a822 (diff) | |
download | scummvm-rg350-d14c0fd886cfb46854034cfbada43d6300a35dae.tar.gz scummvm-rg350-d14c0fd886cfb46854034cfbada43d6300a35dae.tar.bz2 scummvm-rg350-d14c0fd886cfb46854034cfbada43d6300a35dae.zip |
Change workaround for bug #2820054 to apply for all GRA versions.
svn-id: r43123
Diffstat (limited to 'engines')
-rw-r--r-- | engines/tinsel/music.cpp | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/engines/tinsel/music.cpp b/engines/tinsel/music.cpp index 41a6714ba9..6ce1ea7288 100644 --- a/engines/tinsel/music.cpp +++ b/engines/tinsel/music.cpp @@ -189,7 +189,7 @@ bool PlayMidiSequence(uint32 dwFileOffset, bool bLoop) { } // the index and length of the last tune loaded - static uint32 dwLastMidiIndex; + static uint32 dwLastMidiIndex = 0; //static uint32 dwLastSeqLen; uint32 dwSeqLen = 0; // length of the sequence @@ -257,14 +257,15 @@ bool PlayMidiSequence(uint32 dwFileOffset, bool bLoop) { midiStream.close(); // WORKAROUND for bug #2820054 "DW1: No intro music at first start on Wii", - // which actually affects all ports, since it's specific to the multi language - // version. + // which actually affects all ports, since it's specific to the GRA version. // - // The multilanguage version does not seem to set the channel volume at all for - // the intro track, thus we need to do that here. We only initialize the - // channels used in that sequence. And we are using 127 as default channel volume. - if (_vm->getGameID() == GID_DW1 && dwFileOffset == 38888 && - (_vm->getFeatures() & (GF_USE_3FLAGS | GF_USE_4FLAGS | GF_USE_5FLAGS))) { + // The GRA version does not seem to set the channel volume at all for the first + // intro track, thus we need to do that here. We only initialize the channels + // used in that sequence. And we are using 127 as default channel volume. + // + // Only in the GRA version dwFileOffset can be "38888", just to be sure, we + // check for the SCN files feature flag not being set though. + if (_vm->getGameID() == GID_DW1 && dwFileOffset == 38888 && !(_vm->getFeatures() & GF_SCNFILES)) { _vm->_midiMusic->send(0x7F07B0 | 3); _vm->_midiMusic->send(0x7F07B0 | 5); _vm->_midiMusic->send(0x7F07B0 | 8); |