AGSC (File Format): Difference between revisions
Jump to navigation
Jump to search
→Tables
>Aruki m (→Table B: Small correction from Nisto) |
imported>Jackoalan (→Tables) |
||
Line 750: | Line 750: | ||
| 0x6 | | 0x6 | ||
| 2 | | 2 | ||
| '''Padding''' | |||
|- | |- | ||
| | | 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 | ||
|- | |- | ||
| | | 0x1 | ||
| 1 | | 1 | ||
| '''Attack time (0-65280 milliseconds)'''; multiply value by 256 | | '''Attack time (0-65280 milliseconds)'''; multiply value by 256 | ||
|- | |- | ||
| | | 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 | ||
|- | |- | ||
| | | 0x3 | ||
| 1 | | 1 | ||
| '''Decay time (0-65280 milliseconds)'''; multiply value by 256 | | '''Decay time (0-65280 milliseconds)'''; multiply value by 256 | ||
|- | |- | ||
| | | 0x4 | ||
| 1 | | 1 | ||
| '''Sustain (percentage)'''; multiply value by 0.0244 | | '''Sustain (percentage)'''; multiply value by 0.0244 | ||
|- | |- | ||
| | | 0x5 | ||
| 1 | | 1 | ||
| '''Sustain (percentage)'''; multiply value by 6.25 | | '''Sustain (percentage)'''; multiply value by 6.25 | ||
|- | |- | ||
| | | 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 | ||
|- | |- | ||
| | | 0x7 | ||
| 1 | | 1 | ||
| '''Release time (0-65280 milliseconds)'''; multiply value by 256 | | '''Release time (0-65280 milliseconds)'''; multiply value by 256 | ||
|- | |- | ||
| | | 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. |