AGSC (File Format): Difference between revisions

Jump to navigation Jump to search
>Aruki
m (→‎Table B: Small correction from Nisto)
imported>Jackoalan
Line 750: Line 750:
| 0x6
| 0x6
| 2
| 2
| {{unknown|'''Unknown'''}}; (always 0)
| '''Padding'''
|-
|-
| 0x8
| Varies
| colspan=2 {{Unknown|ADSR/Curve data}}
|}
 
===== ADSR =====
 
{| class="wikitable"
! Offset
! Size
! Description
|-
| 0x0
| 1
| 1
| '''Attack time (0-255 milliseconds)'''; no multiplication is done to the value
| '''Attack time (0-255 milliseconds)'''; no multiplication is done to the value
|-
|-
| 0x9
| 0x1
| 1
| 1
| '''Attack time (0-65280 milliseconds)'''; multiply value by 256
| '''Attack time (0-65280 milliseconds)'''; multiply value by 256
|-
|-
| 0xA
| 0x2
| 1
| 1
| '''Decay time (0-255 milliseconds)''';  no multiplication is done to the value
| '''Decay time (0-255 milliseconds)''';  no multiplication is done to the value
|-
|-
| 0xB
| 0x3
| 1
| 1
| '''Decay time (0-65280 milliseconds)'''; multiply value by 256
| '''Decay time (0-65280 milliseconds)'''; multiply value by 256
|-
|-
| 0xC
| 0x4
| 1
| 1
| '''Sustain (percentage)'''; multiply value by 0.0244
| '''Sustain (percentage)'''; multiply value by 0.0244
|-
|-
| 0xD
| 0x5
| 1
| 1
| '''Sustain (percentage)'''; multiply value by 6.25
| '''Sustain (percentage)'''; multiply value by 6.25
|-
|-
| 0xE
| 0x6
| 1
| 1
| '''Release time (0-255 milliseconds)''';  no multiplication is done to the value
| '''Release time (0-255 milliseconds)''';  no multiplication is done to the value
|-
|-
| 0xF
| 0x7
| 1
| 1
| '''Release time (0-65280 milliseconds)'''; multiply value by 256
| '''Release time (0-65280 milliseconds)'''; multiply value by 256
|-
|-
| 0x10
| 0x8
| colspan=2 {{unknown|End of entry}}
| colspan=2 {{unknown|End of entry}}
|}
|}


===== Curves =====
To express a curve, the table data is simply a 128-element table of <code>uint8_t</code> values


The entire Pool chunk is terminated by a value of 0xFFFF.
The entire Pool chunk is terminated by a value of 0xFFFF.
Anonymous user

Navigation menu