Anonymous

Changes

From Final Fantasy Inside

FF7/PSX/Sound/INSTRx.DAT

1 byte added, 17:38, 7 May 2020
m
Fix code block formatting
== Record format ==
struct InstrumentIndex 
/* offsets */
uint32_t attack_offset // offset to attack part of instrument
// other - (linear decrease)
uint32_t pitch[12]; // predefined pitch set for instrument
};
Each index file takes 4 CDROM sectors, so rest unused data filled with zeroes. Attack and loop offsets isn't real file offsets, it's offsets to instruments in SPU internal memory (all instrument data from INSTRx.ALL files are copied by DMA to SPU memory in one chunk), so to translate INSTR.ALL you need tu subtract 0x0ff0 (not sure about INSTR2.DAT file, haven't investigate that yet). INSTR.DAT file resides in PSX RAM at address 0x80075f30 and when it's needed to load any instrument or to reset pitch for this instrument this table is used.
112
edits