AGSC (File Format): Difference between revisions
→Project
>Aruki m (→Pool) |
>Aruki |
||
Line 709: | Line 709: | ||
| 0x0 | | 0x0 | ||
| 4 | | 4 | ||
| ''' | | '''Proj chunk size''' | ||
|- | |- | ||
| 0x2 | | 0x2 | ||
Line 721: | Line 721: | ||
| 0x8 | | 0x8 | ||
| 4 | | 4 | ||
| '''SoundMacro ID table offset''' | |||
|- | |- | ||
| 0xC | | 0xC | ||
| 4 | | 4 | ||
| '''Sample ID table offset''' | |||
|- | |- | ||
| 0x10 | | 0x10 | ||
| 4 | | 4 | ||
| '''Unknown Table A offset''' | |||
|- | |- | ||
| 0x14 | | 0x14 | ||
| 4 | | 4 | ||
| '''Unknown Table B offset''' | |||
|- | |- | ||
| 0x18 | | 0x18 | ||
| 4 | | 4 | ||
| '''Unknown Table C offset''' | |||
|- | |- | ||
| 0x1C | | 0x1C | ||
| 4 | | 4 | ||
| | | '''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| | | colspan=2 {{unknown|End of proj header}} | ||
|} | |} | ||
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 | ||
| ''' | | '''SoundMacro ID''' | ||
|- | |- | ||
| 0x4 | | 0x4 | ||
| 1 | | 1 | ||
| '''Max number of voices''' | | '''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) | ||
|} | |} | ||