Updated zapd_audio_support on zelda64

This commit is contained in:
Kevin Alexis Contreras
2022-06-13 11:41:43 -05:00
29 changed files with 1957 additions and 224 deletions

View File

@@ -18,11 +18,6 @@
#define _AudiotableSegmentRomStart "Audiotable"
#define _icon_item_gameover_staticSegmentRomStart 0
#define _icon_item_gameover_staticSegmentRomEnd 0
#define _icon_item_staticSegmentRomStart 0
#define _icon_item_staticSegmentRomEnd 0
#define _map_i_staticSegmentRomStart 0

View File

@@ -32,7 +32,7 @@
#if defined(_WIN64) || defined(__x86_64__)
#define _SOH64
#define AUDIO_HEAP_SIZE 0x70000
#define AUDIO_HEAP_SIZE 0xF0000
#else
#define AUDIO_HEAP_SIZE 0x38000
#endif

View File

@@ -18,6 +18,10 @@
#define AIBUF_LEN 0x580
#define CALC_RESAMPLE_FREQ(sampleRate) ((float)sampleRate / (s32)gAudioContext.audioBufferParameters.frequency)
extern bool gUseLegacySD;
typedef enum {
/* 0 */ ADSR_STATE_DISABLED,
/* 1 */ ADSR_STATE_INITIAL,
@@ -136,6 +140,8 @@ typedef struct
/* 0x04 */ u8* sampleAddr;
/* 0x08 */ AdpcmLoop* loop;
/* 0x0C */ AdpcmBook* book;
u32 sampleRateMagicValue; // For wav samples only...
s32 sampleRate; // For wav samples only...
} SoundFontSample; // size = 0x10
typedef struct {
@@ -1062,6 +1068,16 @@ typedef enum {
/* -1 */ OCARINA_NOTE_INVALID = 0xFF
} OcarinaNoteIdx;
typedef struct {
char* seqData;
int32_t seqDataSize;
uint8_t seqNumber;
uint8_t medium;
uint8_t cachePolicy;
int32_t numFonts;
uint8_t fonts[16];
} SequenceData;
#ifdef __cplusplus
extern "C" {
#endif