Opened 18 years ago

Closed 18 years ago

Last modified 13 months ago

#7930 closed patch (fixed)

MI1 CD Music Patch (New Version

Reported by: SF/realmz Owned by: SF/ender
Priority: normal Component: Engine: SCUMM
Keywords: Cc:
Game: Monkey Island 1

Description

I rewrote the CD Music patch for The Secret of
Monkey Island.
It includes support for ALL music in the
game and better code.
It is also prepared for adding Loom music
and voice support WHEN loom IS supported.
It also adds one command to debugging.
If the MI1 CD is in, you'll get music in
MI1. This patch allows you to play MI1
just as it was designed.
The only problem is that ScummVM runs too
fast for the Music to be in sync with the
intro.
I REALLY think this should be added
to the CVS tree! There's no point and mabye
no way if finding the way the original
interpreter mapped the sounds to tracks,
time it would take to do this should be
spent in better supporting more SCUMM games.

Ticket imported from: #506748. Ticket imported from: patches/35.

Attachments (1)

mi1_cdmusic.diff (13.7 KB ) - added by SF/realmz 18 years ago.

Download all attachments as: .zip

Change History (5)

by SF/realmz, 18 years ago

Attachment: mi1_cdmusic.diff added

comment:1 by SF/dschepler, 18 years ago

I just spent a little time and found that reading the
mapping from the data files should be easy. The "SOUN"
block for a track played from the CD has no subblocks, it's
just 24 bytes long; something like

18 00 00 00 00 00 04 02 c8 c8 ff 00 01 00 01 00 0c ff 00 00
00 00 00 00

Only a few bytes change (at least in the MI1 CD data):

bytes 8-9 (0-based) are "ff ff" instead of "c8 c8" for
sounds 108 and 110 (the two parts of the intro music)
byte 16 is the track number
byte 17 is a repeat count, I think (ff for looping music, 01
for music played once)
bytes 18-23 are always zeros, except in sound 108 (the
second part of the intro music), where they are: 01 01 23 30
00 00. I believe the second to fourth out of this probably
give the MSF offset -- 1:35.48 -- of where to start.

comment:2 by SF/ender, 18 years ago

Owner: set to SF/ender
Resolution: fixed
Status: newclosed

comment:3 by SF/ender, 18 years ago

Applied with dschepler's new patch. Thanks, both of you.

comment:4 by digitall, 13 months ago

Component: Engine: SCUMM
Game: Monkey Island 1
Note: See TracTickets for help on using tickets.