Advertisement
Guest User

karthwl.bt

a guest
Apr 20th, 2019
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.30 KB | None | 0 0
  1. //------------------------------------------------
  2. //--- 010 Editor v8.0.1 Binary Template
  3. //
  4. //      File:
  5. //   Authors:
  6. //   Version:
  7. //   Purpose:
  8. //  Category:
  9. // File Mask:
  10. //  ID Bytes:
  11. //   History:
  12. //------------------------------------------------
  13.  
  14. LittleEndian();
  15.  
  16. typedef struct {
  17.     char magic[4];
  18.     uint32 unk1;
  19.     uint32 unk2;
  20.     uint32 unk3;
  21.     uint32 smpl_ent_cnt;
  22.     uint32 attr_ent_cnt;
  23.     uint32 adsr_ent_cnt;
  24.     uint32 bank_ent_cnt;
  25.     uint32 seq_ent_cnt;
  26.     uint32 size; // excluding header
  27. } header_t;
  28.  
  29. typedef struct {
  30.     uint16 reserved; // reserved for SPU address (?)
  31.     uint16 size; // sample size divided by 8
  32. } smpl_ent_t;
  33.  
  34. typedef struct {
  35.     byte unk1;
  36.     byte unk2;
  37.     byte unk3;
  38.     byte unk4;
  39.     byte unk5;
  40.     byte unk6;
  41.     byte unk7;
  42.     byte unk8;
  43. } attr_ent_t;
  44.  
  45. typedef struct {
  46.     byte unk1;
  47.     byte unk2;
  48.     byte unk3;
  49.     byte unk4;
  50.     byte unk5;
  51.     byte unk6;
  52.     byte unk7;
  53.     byte unk8;
  54. } adsr_ent_t;
  55.  
  56. typedef uint16 bank_off_t;
  57.  
  58. typedef uint16 seq_off_t;
  59.  
  60. header_t header;
  61. smpl_ent_t smpl_table[header.smpl_ent_cnt];
  62. attr_ent_t attr_table[header.attr_ent_cnt];
  63. adsr_ent_t adsr_table[header.adsr_ent_cnt];
  64. bank_off_t bank_offsets[header.bank_ent_cnt];
  65. seq_off_t seq_offsets[header.seq_ent_cnt];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement