Open main menu

Difference between revisions of "SCUMM/NES"

28 bytes added ,  04:27, 5 April 2005
(→‎Sound: add sound format data)
Line 124: Line 124:
* Sound
* Sound


Sound Format:
Sound Format:
uint16 length (added by extract util)
uint16 length (added by extract util)
uint8 slot - specifies which slot the sound plays in - 2 for music, 0/1/4 for sound effects (slot 4 attempts to play in slot 2 only if there is no music playing)
uint8 slot - specifies which slot the sound plays in - 2 for music, 0/1/4 for sound effects  
uint8 type - 10 (0x0C) for sound effects, 100 (0x64) for music
- slot 4 sound effects appear to play in slot 0, but only if no music is playing?
uint8 data[]
uint8 type - 10 (0x0A) for sound effects, 100 (0x64) for music
uint8 data[]


Type 10 data:
Type 10 data:
[03/07/0B/0F] - next 4 bytes is data for sound channel 0/1/2/3 (square1, square2, triangle, noise)
[03/07/0B/0F] - next 4 bytes is data for sound channel 0/1/2/3 (square1, square2, triangle, noise)
[10] - next byte is a number of frames to wait before processing the next update
[10] - next byte is a number of frames to wait before processing the next update
[FF] - terminate sound
[FF] - terminate sound
[FE] - loop back to beginning
[FE] - loop back to beginning


Type 100 data:
Type 100 data:
uint8 auxLen - specifies length of some sort of auxiliary data
uint8 auxLen - specifies length of some sort of auxiliary data
uint8 auxdata[auxLen] - a long sequence of small numbers, slowly incrementing
uint8 auxdata[auxLen] - a long sequence of small numbers, slowly incrementing
uint8 unknown[] - haven't decoded yet
uint8 unknown[] - haven't decoded yet
30

edits