Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //------------------------------------------------
- //--- 010 Editor v8.0.1 Binary Template
- //
- // File:
- // Authors:
- // Version:
- // Purpose:
- // Category:
- // File Mask:
- // ID Bytes:
- // History:
- //------------------------------------------------
- LittleEndian();
- typedef struct {
- char magic[4];
- uint32 unk1;
- uint32 unk2;
- uint32 unk3;
- uint32 smpl_ent_cnt;
- uint32 attr_ent_cnt;
- uint32 adsr_ent_cnt;
- uint32 bank_ent_cnt;
- uint32 seq_ent_cnt;
- uint32 size; // excluding header
- } header_t;
- typedef struct {
- uint16 reserved; // reserved for SPU address (?)
- uint16 size; // sample size divided by 8
- } smpl_ent_t;
- typedef struct {
- byte unk1;
- byte unk2;
- byte unk3;
- byte unk4;
- byte unk5;
- byte unk6;
- byte unk7;
- byte unk8;
- } attr_ent_t;
- typedef struct {
- byte unk1;
- byte unk2;
- byte unk3;
- byte unk4;
- byte unk5;
- byte unk6;
- byte unk7;
- byte unk8;
- } adsr_ent_t;
- typedef uint16 bank_off_t;
- typedef uint16 seq_off_t;
- header_t header;
- smpl_ent_t smpl_table[header.smpl_ent_cnt];
- attr_ent_t attr_table[header.attr_ent_cnt];
- adsr_ent_t adsr_table[header.adsr_ent_cnt];
- bank_off_t bank_offsets[header.bank_ent_cnt];
- seq_off_t seq_offsets[header.seq_ent_cnt];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement