AGSC (File Format): Difference between revisions

Jump to navigation Jump to search
>Aruki
>Aruki
Line 709: Line 709:
| 0x0
| 0x0
| 4
| 4
| '''Chunk size'''
| '''Proj chunk size'''
|-
|-
| 0x2
| 0x2
Line 721: Line 721:
| 0x8
| 0x8
| 4
| 4
| {{unknown|'''Unknown'''}}; Always 0x28
| '''SoundMacro ID table offset'''
|-
|-
| 0xC
| 0xC
| 4
| 4
| {{unknown|'''Unknown'''}}
| '''Sample ID table offset'''
|-
|-
| 0x10
| 0x10
| 4
| 4
| {{unknown|'''Unknown'''}}; possible offset?
| '''Unknown Table A offset'''
|-
|-
| 0x14
| 0x14
| 4
| 4
| {{unknown|'''Unknown'''}}; always +2 than previous long
| '''Unknown Table B offset'''
|-
|-
| 0x18
| 0x18
| 4
| 4
| {{unknown|'''Unknown'''}}; always +2 than previous long
| '''Unknown Table C offset'''
|-
|-
| 0x1C
| 0x1C
| 4
| 4
| {{unknown|'''Unknown'''}}; always +4 than previous long
| '''SoundMacro Settings Table offset'''
|-
| 0x20
| 4
| '''Unknown Table D offset''' ''(usually 0, indicating table is not present)''
|-
| 0x24
| 4
| '''Unknown Table E offset''' ''(usually 0, indicating table is not present)''
|-
|-
| 0x20
| 0x20
| colspan=2 {{unknown|WIP}}
| colspan=2 {{unknown|End of proj header}}
|}
|}


The first table terminates with 0xFFFFFFFF. Then there's 2 bytes that represent the number of soundmacros, followed by two bytes of 0x00s for padding.
After the header are a number of data tables.
 
==== SoundMacro ID Table ====
 
This is a table of shorts; there's no count value, so it's terminated with a value of 0xFFFF. It's a list of SoundMacro IDs present in the file. Occasionally there's gaps in the list; these gaps are signified by the top bit, 0x8000, being set on the size value preceding the gap.
 
==== Sample ID Table ====
 
This functions the same way as the SoundMacro ID table, but it contains a list sample IDs instead.
 
==== SoundMacro Settings ====


This table begins with a 16-bit count value, then 16 bits of padding. Each entry in the table is 10 bytes.


{|class="wikitable"
{|class="wikitable"
Line 761: Line 780:
| 0x2
| 0x2
| 2
| 2
| '''Pool SoundMacro ID'''; this is the ID used by the soundmacros in the Pool chunk
| '''SoundMacro ID'''
|-
|-
| 0x4
| 0x4
| 1
| 1
| '''Max number of voices'''; The maximum of voices allowed for this soundeffect.
| '''Max number of voices'''
|-
|-
| 0x5
| 0x5
Line 781: Line 800:
| 0x8
| 0x8
| 2
| 2
| '''Definite Key'''; The default pitch (usually 0x3C00...the second byte may possibly be the MIDI channel)
| '''Definite Key'''; The default pitch (usually 0x3C00... the second byte may possibly be the MIDI channel)
|}
|}


Anonymous user

Navigation menu