[Scummvm-devel] [Scummvm-cvs-logs] SF.net SVN: scummvm:[52198] scummvm/trunk
Torbjörn Andersson
eriktorbjorn at telia.com
Sun Aug 22 13:58:19 CEST 2010
On 2010-08-22 13:32, yotam barnoy wrote:
> MI1 CD w/MP3: intro no longer plays for me after this revision. I get
> only a static image of the LucasArts logo. Pressing escape moves to
> the next section though.
It's probably because this part of the code (which covered more than
just the FM-TOWNS games) got removed:
>> Modified: scummvm/trunk/engines/scumm/sound.cpp
>> ===================================================================
>> --- scummvm/trunk/engines/scumm/sound.cpp 2010-08-18 20:41:03 UTC (rev 52197)
>> +++ scummvm/trunk/engines/scumm/sound.cpp 2010-08-18 21:38:43 UTC (rev 52198)
...
>> - else if ((_vm->_game.platform == Common::kPlatformFMTowns&& _vm->_game.version == 3) || READ_BE_UINT32(ptr) == MKID_BE('SOUN') || READ_BE_UINT32(ptr) == MKID_BE('TOWS')) {
...
>> - switch (type) {
...
>> - case 2: // CD track resource
>> - ptr += 0x16;
>> -
>> - if (soundID == _currentCDSound&& pollCD() == 1) {
>> - return;
>> - }
>> -
>> - {
>> - int track = ptr[0];
>> - int loops = ptr[1];
>> - int start = (ptr[2] * 60 + ptr[3]) * 75 + ptr[4];
>> - int end = (ptr[5] * 60 + ptr[6]) * 75 + ptr[7];
>> -
>> - playCDTrack(track, loops == 0xff ? -1 : loops, start, end<= start ? 0 : end - start);
>> - }
>> -
>> - _currentCDSound = soundID;
>> - break;
But I'm uncertain of exactly how much of it needs to be put back.
Torbjörn Andersson
More information about the Scummvm-devel
mailing list