Super Mario 64 Source
A Super Mario 64 decompilation, brought to you by a bunch of clever folks.
synthesis.h
Go to the documentation of this file.
1 #ifndef _AUDIO_SYNTHESIS_H
2 #define _AUDIO_SYNTHESIS_H
3 
4 #include "internal.h"
5 
6 #define MAX_UPDATES_PER_FRAME 4
7 
9 {
11  s16 chunkLen; // never read
15  s16 unk10[2];
16 }; // size = 0x14
17 
19 {
29  struct
30  {
33  } unk14;
34  void *unk1C;
35  void *unk20;
36  void *unk24; // never read
37  void *unk28;
39 }; // 0xCC <= size <= 0x100
40 extern struct Struct802211B0 D_802211B0;
41 
42 u64 *func_80313CD4(u64 *cmdBuf, s32 *writtenCmds, u16 *aiBuf, s32 bufLen);
43 void note_init_volume(struct Note *note);
44 void note_set_vel_pan_reverb(struct Note *note, f32 velocity, f32 pan, u8 reverb);
45 void note_set_frequency(struct Note *note, f32 frequency);
46 void note_enable(struct Note *note);
47 void note_disable(struct Note *note);
48 
49 #endif /* _AUDIO_SYNTHESIS_H */
u8 unk1
Definition: synthesis.h:21
void * unk28
Definition: synthesis.h:37
s16 * unk4
Definition: synthesis.h:12
void * unk1C
Definition: synthesis.h:34
void note_disable(struct Note *note)
Definition: synthesis.c:784
unsigned short int u16
Definition: ultratypes.h:14
u8 unk3
Definition: synthesis.h:23
s16 chunkLen
Definition: synthesis.h:11
s32 unk8
Definition: synthesis.h:26
signed short int s16
Definition: ultratypes.h:13
struct Struct802211B0 D_802211B0
Definition: synthesis.c:26
Definition: internal.h:337
void note_init_volume(struct Note *note)
Definition: synthesis.c:685
s32 unk10
Definition: synthesis.h:28
s16 * unk00
Definition: synthesis.h:31
unsigned long long int u64
Definition: ultratypes.h:18
s16 unk00
Definition: synthesis.h:10
u16 unk4
Definition: synthesis.h:24
void * unk20
Definition: synthesis.h:35
s16 * unk04
Definition: synthesis.h:32
float f32
Definition: ultratypes.h:29
s16 * unk8
Definition: synthesis.h:13
u16 unk6
Definition: synthesis.h:25
u8 unk2
Definition: synthesis.h:22
void note_set_vel_pan_reverb(struct Note *note, f32 velocity, f32 pan, u8 reverb)
Definition: synthesis.c:696
Definition: synthesis.h:18
unsigned char u8
Definition: ultratypes.h:12
s32 unkC
Definition: synthesis.h:14
Definition: synthesis.h:8
s16 unk10[2]
Definition: synthesis.h:15
signed int s32
Definition: ultratypes.h:15
void note_set_frequency(struct Note *note, f32 frequency)
Definition: synthesis.c:766
void * unk24
Definition: synthesis.h:36
s32 unkC
Definition: synthesis.h:27
u64 * func_80313CD4(u64 *cmdBuf, s32 *writtenCmds, u16 *aiBuf, s32 bufLen)
Definition: synthesis.c:107
u8 unk0
Definition: synthesis.h:20
#define MAX_UPDATES_PER_FRAME
Definition: synthesis.h:6
void note_enable(struct Note *note)
Definition: synthesis.c:770