#7930 closed patch (fixed)
MI1 CD Music Patch (New Version
Reported by: | SF/realmz | Owned by: | SF/ender |
---|---|---|---|
Priority: | normal | Component: | Engine: SCUMM |
Version: | 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)
Change History (5)
by , 23 years ago
Attachment: | mi1_cdmusic.diff added |
---|
comment:1 by , 23 years ago
comment:2 by , 23 years ago
Owner: | set to |
---|---|
Resolution: | → fixed |
Status: | new → closed |
comment:4 by , 6 years ago
Component: | → Engine: SCUMM |
---|---|
Game: | → Monkey Island 1 |
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.