Advertisement
dragonbane

oot-music.h

Jan 20th, 2024 (edited)
923
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.06 KB | None | 0 0
  1. #ifndef __OOTMUSIC_H__
  2. #define __OOTMUSIC_H__
  3.  
  4. //Defines
  5. typedef unsigned int uint;
  6. typedef unsigned char uint8_t;
  7. typedef unsigned short uint16_t;
  8. typedef unsigned char bool;
  9.  
  10. /********
  11. Sound vector
  12. ********/
  13.  
  14. typedef struct sound {
  15.   char* file;
  16.   uint16_t temp_addr;
  17.   int offset;
  18.   int size;
  19.   uint8_t* data;
  20. } sound;
  21.  
  22. typedef struct sound_Vector {
  23.   sound* data;
  24.   int len;
  25.   int size;
  26. } sound_Vector;
  27.  
  28.  
  29. /********
  30. Sequence
  31. ********/
  32.  
  33. typedef struct Sequence {
  34.   char* name; //Might not need
  35.   uint8_t* seq_file;
  36.   int seq_file_length;
  37.   char* cosmetic_name; //Might not need
  38.   int replaces;
  39.   int vanilla_id;
  40.   int type; //Might not need
  41.   int instrument_set;
  42.   bool new_instrument_set;
  43.   sound_Vector zsounds;
  44.   uint8_t* zbank_file;
  45.   int zbank_file_length;
  46.   char* bankmeta; //Might not need
  47. } Sequence;
  48.  
  49. //Functions
  50. int randomize_music(uint8_t* rom_original, uint8_t* rom_modified, Sequence* sequences, int sequences_length, int* disabled_target_sequences, int disabled_target_sequences_length, char custom_sequences);
  51.  
  52. #endif
  53.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement