AGSC (File Format): Difference between revisions
Jump to navigation
Jump to search
→ADSR
>Aruki m (→Metroid Prime) |
imported>Jackoalan (→ADSR) |
||
Line 794: | Line 794: | ||
When the size of the table data is exactly 8, it may represent ADSR envelopes with this structure: | When the size of the table data is exactly 8, it may represent ADSR envelopes with this structure: | ||
'''Note:''' All fields of the envelope are ''little endian''. | |||
{| class="wikitable" | {| class="wikitable" | ||
Line 801: | Line 803: | ||
|- | |- | ||
| 0x0 | | 0x0 | ||
| | | 2 | ||
| '''Attack time | | '''Attack time'''; in milliseconds | ||
|- | |- | ||
| 0x2 | | 0x2 | ||
| | | 2 | ||
| '''Decay time | | '''Decay time'''; in milliseconds | ||
|- | |- | ||
| 0x4 | | 0x4 | ||
| | | 2 | ||
| '''Sustain | | '''Sustain'''; percentage mapped between [0x0,0x1000] | ||
|- | |- | ||
| 0x6 | | 0x6 | ||
| | | 2 | ||
| '''Release time | | '''Release time'''; in milliseconds | ||
|- | |- | ||
| 0x8 | | 0x8 |