126
edits
Jestar jokin (talk | contribs) m (→Early v5 - SBL blocks: minor clarifications) |
Jestar jokin (talk | contribs) (Added info I found in the source) |
||
Line 8: | Line 8: | ||
==Early v5== | ==Early v5== | ||
Going from Monkey Island 2 (MI2), music blocks are stored in LFLF blocks, outside of the ROOMs, so they can be accessed globally. The containing sound block looks like this: | |||
Block name 4 bytes ("SOUN") | Block name 4 bytes ("SOUN") | ||
Line 26: | Line 26: | ||
Every track is stored in MIDI format, in order to make use of the iMUSE technology through System Exclusive (SysEx) messages. | Every track is stored in MIDI format, in order to make use of the iMUSE technology through System Exclusive (SysEx) messages. | ||
Due to the predominance of the Sound Blaster and Adlib/OPL FM technology at the time | Due to the predominance of the Sound Blaster and Adlib/OPL FM technology at the time, in at least MI2 every musical SOUN block contains an ADL block. | ||
==Mac0== | |||
From Markus Magnuson (superqult) we got this information: | |||
4 bytes - 'SOUN' | |||
BE 4 bytes - block length | |||
4 bytes - 'Mac0' | |||
BE 4 bytes - (blockLength - 27) | |||
28 bytes - ??? | |||
do this three times (once for each channel): | |||
4 bytes - 'Chan' | |||
BE 4 bytes - channel length | |||
4 bytes - instrument name (e.g. 'MARI') | |||
do this for ((chanLength-24)/4) times: | |||
2 bytes - note duration | |||
1 byte - note value | |||
1 byte - note velocity | |||
4 bytes - ??? | |||
4 bytes - 'Loop'/'Done' | |||
4 bytes - ??? | |||
1 byte - 0x09 | |||
=Digitized Sounds= | =Digitized Sounds= | ||
Line 86: | Line 112: | ||
Each sound is directly preceded by its lip-synch tags. | Each sound is directly preceded by its lip-synch tags. | ||
=Sound block types= | |||
This information is gleaned from the ScummVM source code. Any block name with only three characters has a space at the end. | |||
MIDI \ Midi | |||
iMUS / | |||
SOU subtypes | |||
TOWS - FM Towns | |||
SBL - Sound Blaster digitized sound (Creative VOC file) | |||
ADL - Adlib (OPL FM) | |||
AMI - Amiga MOD | |||
ROL - Roland MT-32 | |||
GMD - General MIDI | |||
MAC - Macintosh (occurs in MI2, FOA) | |||
SPK - PC speaker | |||
Mac0 - Macintosh music type 0 | |||
Mac1 \ | |||
RIFF | | |||
TALK > Creative VOC file | |||
DIGI | | |||
Crea / | |||
HSHD - HE sound type without SOUN header | |||
FMUS - Used in 3DO versions of HE games |
edits