Mario Kart 64
Loading...
Searching...
No Matches
data.h
Go to the documentation of this file.
1#ifndef AUDIO_DATA_H
2#define AUDIO_DATA_H
3
4#include "internal.h"
5
6#define AUDIO_LOCK_UNINITIALIZED 0
7#define AUDIO_LOCK_NOT_LOADING 0x76557364
8#define AUDIO_LOCK_LOADING 0x19710515
9
10#define NUMAIBUFFERS 3
11#ifdef VERSION_EU
12#define AIBUFFER_LEN (0xaa * 16)
13#else
14#define AIBUFFER_LEN (0xa0 * 16)
15#endif
16
17// number of DMAs performed during this frame
19
20extern s16 sSawtoothWaves[256];
21extern s16 sTriangleWaves[256];
22extern s16 sSineWaves[256];
23extern s16 sSquareWaves[256];
24extern s16 sUnknownWave6[256];
25extern s16 gUnknownWave7[256];
26extern s16* gWaveSamples[6];
27extern u32 fill[2];
29extern f32 gNoteFrequencies[128];
32extern struct AdsrEnvelope gDefaultEnvelope[];
33extern u32 fill2;
34extern struct NoteSubEu gZeroNoteSub;
35extern struct NoteSubEu gDefaultNoteSub;
36extern u16 gHeadsetPanQuantization[0x10];
38extern f32 gHeadsetPanVolume[128];
39extern f32 gStereoPanVolume[128];
40extern f32 gDefaultPanVolume[128];
41extern u32 gAudioRandom;
42
43extern s16 gTatumsPerBeat; // D_800EA5CC
44extern volatile s32 gAudioLoadLock; // D_800EA5DC
45
46extern s32 gAudioTaskIndex;
48extern Acmd* gAudioCmdBuffers[2]; // probably wrong
49extern Acmd* gAudioCmd; // D_803B70D0
50extern struct SPTask* gAudioTask; // D_803B70D4
51extern struct SPTask gAudioTasks[2]; // D_803B70D8
52extern f32 D_803B7178;
53extern s32 gRefreshRate;
54extern s16* gAiBuffers[]; // D_803B7180
55extern s16 gAiBufferLengths[]; // osAiSetNextBuffer nbytes
56extern u16 D_803B7192; // unconfirmed
59extern u64 gAudioGlobalsEndMarker; // unconfirmed
60extern u8 gAudioHeap[]; // unconfirmed
61
62extern struct ReverbSettingsEU sReverbSettings[];
66extern s32 gAudioHeapSize;
68extern s32 D_800EA5D8;
69extern volatile s32 gAudioLoadLock;
70
71#endif
u16 D_803B7192
Definition data.c:325
u8 gDefaultShortNoteDurationTable[16]
Definition data.c:222
s32 gAudioHeapSize
Definition audio_session_presets.c:35
f32 gNoteFrequencies[128]
Definition data.c:181
s32 gAudioInitPoolSize
Definition audio_session_presets.c:36
u64 gAudioGlobalsEndMarker
Definition data.c:328
struct AdsrEnvelope gDefaultEnvelope[]
Definition data.c:226
s16 * gWaveSamples[6]
Definition data.c:138
s32 gAudioErrorFlags
Definition data.c:327
s16 gUnknownData_800F6290[]
Definition data.c:242
s16 gUnknownWave7[256]
Definition data.c:116
u16 gHeadsetPanQuantization[0x10]
Definition data.c:238
u8 gDefaultShortNoteVelocityTable[16]
Definition data.c:217
s16 sUnknownWave6[256]
Definition data.c:94
s32 gCurrAiBufferIndex
Definition data.c:316
s16 gAiBufferLengths[]
Definition data.c:324
f32 D_803B7178
Definition data.c:321
s8 gUnusedCount800EA5C8
Definition audio_session_presets.c:33
u32 gAudioRandom
Definition data.h:57
s32 gCurrAudioFrameDmaCount
Definition load.c:57
s16 sSquareWaves[256]
Definition data.c:73
u32 fill2
Definition data.c:233
f32 gStereoPanVolume[128]
Definition data.c:276
struct NoteSubEu gDefaultNoteSub
Definition data.c:236
struct AudioSessionSettingsEU gAudioSessionPresets[]
Definition audio_session_presets.c:13
s16 sSawtoothWaves[256]
Definition data.c:8
struct SPTask * gAudioTask
Definition data.c:319
s16 sTriangleWaves[256]
Definition data.c:30
f32 gDefaultPanVolume[128]
Definition data.c:296
u8 gAudioHeap[]
Definition audio_heap.c:8
s16 * gAiBuffers[]
Definition data.c:323
u32 fill[2]
Definition data.c:141
s32 gRefreshRate
Definition data.c:322
Acmd * gAudioCmdBuffers[2]
Definition data.c:317
f32 gHeadsetPanVolume[128]
Definition data.c:251
f32 gPitchBendFrequencyScale[256]
Definition data.c:146
s32 D_800EA5D8
Definition audio_session_presets.c:37
s32 gAudioTaskIndex
Definition data.c:315
struct NoteSubEu gZeroNoteSub
Definition data.c:235
volatile s32 gAudioLoadLock
Definition data.h:69
struct ReverbSettingsEU sReverbSettings[]
Definition audio_session_presets.c:8
s16 gTatumsPerBeat
Definition data.h:65
Acmd * gAudioCmd
Definition data.c:318
s16 sSineWaves[256]
Definition data.c:52
struct SPTask gAudioTasks[2]
Definition data.c:320
unsigned long long int u64
Definition llconv.c:2
Definition internal.h:113
Definition internal.h:502
Definition internal.h:408
Definition internal.h:496
Definition common_structs.h:43
signed int s32
Definition ultratypes.h:15
unsigned int u32
Definition ultratypes.h:16
signed char s8
Definition ultratypes.h:11
signed short int s16
Definition ultratypes.h:13
float f32
Definition ultratypes.h:34
unsigned short int u16
Definition ultratypes.h:14
unsigned char u8
Definition ultratypes.h:12