1#ifndef AUDIO_EXTERNAL_H
2#define AUDIO_EXTERNAL_H
7#define ADSR_STATE_DISABLED 0
8#define ADSR_STATE_INITIAL 1
9#define ADSR_STATE_START_LOOP 2
10#define ADSR_STATE_LOOP 3
11#define ADSR_STATE_FADE 4
12#define ADSR_STATE_HANG 5
13#define ADSR_STATE_DECAY 6
14#define ADSR_STATE_RELEASE 7
15#define ADSR_STATE_SUSTAIN 8
17#define ADSR_ACTION_RELEASE 0x10
18#define ADSR_ACTION_DECAY 0x20
19#define ADSR_ACTION_HANG 0x40
24#define ADSR_RESTART -3
29#define SEQUENCE_ARGS(priority, seqId) ((priority << 8) | seqId)
31#define SOUND_MODE_STEREO 0
32#define SOUND_MODE_MONO 3
33#define SOUND_MODE_HEADSET 1
35#define SEQ_PLAYER_LEVEL 0
36#define SEQ_PLAYER_ENV 1
37#define SEQ_PLAYER_SFX 2
39#define SOUND_BANK_UNK0 0
40#define SOUND_BANK_UNK1 1
41#define SOUND_BANK_UNK2 2
42#define SOUND_BANK_UNK3 3
43#define SOUND_BANK_UNK4 4
44#define SOUND_BANK_UNK5 5
45#define SOUND_BANK_COUNT 6
218void func_800C3724(
void);
219void func_800C2A2C(
u32);
234void func_800C4398(
void);
236void func_800C4888(
u8);
237void func_800C4FE4(
u8);
388extern u8 D_800E9F90[];
s8 D_801657E5
Definition code_80057C60.c:152
f32 Vec3f[3]
Definition common_structs.h:6
s16 Vec3s[3]
Definition common_structs.h:11
s32 gAudioErrorFlags
Definition data.c:327
void func_800C70A8(u8 playerId)
Definition external.c:2148
void func_800C5968(u8 arg0)
Definition external.c:1694
u8 D_800E9F2C[NUM_PLAYERS]
Definition external.c:65
f32 D_800EA130[]
Definition external.c:89
void func_800C5578(Vec3f *arg0, u32 soundBits)
Definition external.c:1615
void func_800C5CB8(void)
Definition external.c:1776
f32 D_800E9EE4[]
Definition external.c:60
void func_800CA0A0()
Definition external.c:3174
Vec3f gVelocityCamera[4]
Definition external.c:23
u8 D_8018FB91
Definition external.c:21
void func_800CA30C(u8 arg0)
Definition external.c:3241
f32 D_800E9E64[]
Definition external.c:52
s32 D_800E9E14[]
Definition external.c:48
void func_800CA49C(u8 arg0)
Definition external.c:3269
void func_800CA0CC()
Definition external.c:3182
u8 D_800EA1F0[]
Definition external.c:117
void func_800C9D0C(u8 playerId)
Definition external.c:3110
void func_800CB2C4()
Definition external.c:3546
void func_800CAD40(UNUSED s32 arg0)
Definition external.c:3416
void func_800C5384(u8 arg0, Vec3f *arg1)
Definition external.c:1571
void func_800C56F0(u32 soundBits)
Definition external.c:1646
u8 D_800E9DA0
Definition external.c:41
u8 D_800E9F24[]
Definition external.c:64
void func_800C4084(u16 bankMask)
Definition external.c:1154
void func_800C29B4(u8 arg0, u16 arg1)
Definition external.c:658
s32 D_800E9E84[]
Definition external.c:54
void func_800C8770(u8 playerId)
Definition external.c:2677
void func_800CA388(u8 arg0)
Definition external.c:3250
void func_800CA0B8()
Definition external.c:3178
u8 sSoundBankFreeListFront[SOUND_BANK_COUNT]
Definition external.c:30
void func_800CA2E4(u8 arg0, s8 arg1)
Definition external.c:3237
void func_800CA288(u8 arg0, s8 arg1)
Definition external.c:3229
s16 D_8018FC10[4][2]
Definition external.c:26
f32 D_800E9ED4[]
Definition external.c:59
u8 func_800C357C(s32 arg0)
Definition external.c:880
void func_800C59C4(void)
Definition external.c:1708
u8 D_800EA0EC[]
Definition external.c:80
void func_800C9060(u8 playerId, u32 soundBits)
Definition external.c:2862
void func_800C5C40(void)
Definition external.c:1762
u8 D_80192C38
Definition external.c:33
void func_800C6108(u8 playerId)
Definition external.c:1860
void func_800CAACC(u8 playerId)
Definition external.c:3371
void func_800C90F4(u8 playerId, u32 soundBits)
Definition external.c:2875
void func_800CADD0(u8 arg0, f32 arg1)
Definition external.c:3426
void func_800C40F0(u8 arg0)
Definition external.c:1167
u8 D_800E9F74[]
Definition external.c:68
u8 D_800EA244
Definition external.c:123
void func_800C5278(u8 bankId)
Definition external.c:1549
void func_800C13F0(void)
Definition external.c:150
void func_800C8AE4(void)
Definition external.c:2743
Camera * gCopyCamera[4]
Definition external.c:22
u16 D_800EA174
Definition external.c:98
u8 D_800EA1A0[][6]
Definition external.c:104
f32 D_800E9EB4[]
Definition external.c:57
struct_D_801930D0_entry D_801930D0[3]
Definition external.c:39
u8 D_800EA1E8
Definition external.c:115
void play_sound(u32 soundBits, Vec3f *position, u8 cameraId, f32 *arg3, f32 *arg4, s8 *arg5)
Definition external.c:1175
u8 D_800EA0F0
Definition external.c:81
void func_800C3F70(void)
Definition external.c:1113
void func_800C3478(void)
Definition external.c:867
struct ChannelVolumeScaleFade D_80192C48[SOUND_BANK_COUNT]
Definition external.c:35
s8 func_800C15D0(u8 bank, u8 soundId, u8 channel)
Definition external.c:201
void func_800CA0E4(void)
Definition external.c:3186
void func_800C94A4(u8 playerId)
Definition external.c:2927
void func_800C35E8(u8 arg0)
Definition external.c:912
u8 D_800EA1DC
Definition external.c:112
u8 D_800EA1C0
Definition external.c:107
u8 D_800EA1E4
Definition external.c:114
u32 D_80192CD0[256]
Definition external.c:38
s32 D_800E9EA4[]
Definition external.c:56
void func_800C683C(u8 cameraId)
Definition external.c:1992
s32 D_800E9E24[]
Definition external.c:49
f32 D_800EA150
Definition external.c:90
void func_800C1DA4(Camera *arg0, Vec3s rot, struct Unk_8018EFD8 *arg2)
Definition external.c:372
s8 D_8018EF10
Definition external.c:16
u8 D_800EA1EC
Definition external.c:116
void func_800C64A0(u8 playerId)
Definition external.c:1925
void func_800C5E38(u8 playerId)
Definition external.c:1811
void func_800CA118(u8 arg0)
Definition external.c:3191
void func_800CA24C(u8 arg0)
Definition external.c:3221
void fade_channel_volume_scale(u8 player, u8 targetScale, u16 fadeDuration)
Definition external.c:1682
struct SoundCharacteristics sSoundBanks[SOUND_BANK_COUNT][20]
Definition external.c:28
u8 D_800EA170[]
Definition external.c:97
void func_800C9EF4(Vec3f arg0, u32 soundBits)
Definition external.c:3134
struct Unk_8018EFD8 * func_800C1C88(u8 arg0, Vec3f position, f32 *velocity, f32 *arg3, u8 arg4, u32 soundBits)
Definition external.c:340
s8 D_800EA16C
Definition external.c:96
f32 func_800C1480(u8 bank, u8 soundId)
Definition external.c:163
struct Unk_800E9F7C D_800E9F7C[]
Definition external.c:70
u8 D_800EA108
Definition external.c:85
f32 D_800E9F34[]
Definition external.c:66
f32 D_800E9DD4[]
Definition external.c:45
void func_800C5BD0(void)
Definition external.c:1754
ubool8 sSoundBankDisabled[SOUND_BANK_COUNT]
Definition external.c:34
u8 D_800EA104
Definition external.c:84
void func_800C2474(void)
Definition external.c:547
void func_800CAFC0(u8 arg0)
Definition external.c:3474
u8 D_800EA10C[]
Definition external.c:86
void func_800C54B8(u8 arg0, Vec3f *arg1)
Definition external.c:1595
void func_800C9D80(Vec3f position, Vec3f velocity, u32 soundBits)
Definition external.c:3115
void sound_init(void)
Definition external.c:1722
void func_800C1F8C(void)
Definition external.c:419
u8 sNumProcessedSoundRequests
Definition external.c:106
void func_800C5848(void)
Definition external.c:1674
u8 sSoundBankUsedListBack[SOUND_BANK_COUNT]
Definition external.c:29
f32 func_800C1934(u8 bank, u8 soundId)
Definition external.c:285
u16 D_800EA180
Definition external.c:101
u16 D_800EA184
Definition external.c:102
void func_800C76C0(u8 playerId)
Definition external.c:2354
void func_800C5D04(u8 playerId)
Definition external.c:1783
s8 D_800EA168
Definition external.c:95
void func_800CA008(u8 arg0, u8 arg1)
Definition external.c:3158
void func_800CA270()
Definition external.c:3225
UnkStruct8018EF18 D_8018EF18[16]
Definition external.c:17
void func_800C8C7C(u8 arg0)
Definition external.c:2786
u8 D_800EA154[]
Definition external.c:91
void func_800CA59C(u8 playerId)
Definition external.c:3289
void func_800C92CC(u8 playerId, u32 soundBits)
Definition external.c:2905
u8 D_8018FC08
Definition external.c:25
u16 D_800EA1C4
Definition external.c:108
f32 D_800E9DF4[]
Definition external.c:47
u8 D_800EA0F4
Definition external.c:82
void func_800CB134()
Definition external.c:3502
void func_800C8920(void)
Definition external.c:2710
u16 func_800C3508(u8 player)
Definition external.c:873
void func_800CAB4C(u8 arg0)
Definition external.c:3377
u8 D_80192AB8[SOUND_BANK_COUNT][8][8]
Definition external.c:32
void func_800C41CC(u8 arg0, struct SoundCharacteristics *arg1)
Definition external.c:1192
void func_800CA330(u8 arg0)
Definition external.c:3245
void func_800C847C(u8 playerId)
Definition external.c:2634
Vec3f gCameraLastPos[4]
Definition external.c:24
void audio_reset_session_eu(OSMesg presetId)
Definition external.c:153
u16 D_800EA160
Definition external.c:93
void func_800C86D8(u8 playerId)
Definition external.c:2671
struct Sound sSoundRequests[0x100]
Definition external.c:27
void func_800C8EF8(u16 arg0)
Definition external.c:2837
u8 sNumSoundsInBank[SOUND_BANK_COUNT]
Definition external.c:31
u16 D_800EA15C
Definition external.c:92
void func_800CA2B8(u8 arg0)
Definition external.c:3233
void func_800CA984(u8 arg0)
Definition external.c:3356
void delete_sound_from_bank(u8 bankId, u8 soundId)
Definition external.c:1331
void func_800C400C(void)
Definition external.c:1136
void func_800CAC60(UNUSED s32 arg0)
Definition external.c:3405
f32 D_800E9F54[]
Definition external.c:67
f32 D_800EA178
Definition external.c:99
void func_800C9250(u8 arg0)
Definition external.c:2900
u8 sSoundRequestCount
Definition external.c:105
struct_D_80192CA8_entry D_80192CA8[3][5]
Definition external.c:36
void func_800C3448(u32 arg0)
Definition external.c:862
f32 D_800E9DC4[]
Definition external.c:44
void func_800C19D0(u8 arg0, u8 arg1, u8 arg2)
Definition external.c:295
void func_800C550C(Vec3f *arg0)
Definition external.c:1603
f32 D_800EA120[]
Definition external.c:88
f32 D_800E9F04[]
Definition external.c:62
u8 D_800EA164
Definition external.c:94
void func_800C98B8(Vec3f position, Vec3f velocity, u32 soundBits)
Definition external.c:3027
void func_800CAC08()
Definition external.c:3397
u8 D_80192CC6[3]
Definition external.c:37
u8 D_800EA1F4[]
Definition external.c:118
f32 D_800E9E54[]
Definition external.c:51
void func_800CA414(u16 arg0, u16 arg1)
Definition external.c:3259
f32 D_800E9F14[]
Definition external.c:63
void func_800C9018(u8 arg0, u32 soundBits)
Definition external.c:2858
Vec3f D_800EA1C8
Definition external.c:109
void func_800C89E4(void)
Definition external.c:2720
void func_800C6758(u8 playerId)
Definition external.c:1976
void func_800C36C4(u8 arg0, u8 arg1, u8 arg2, u8 arg3)
Definition external.c:928
f32 D_800EA110[]
Definition external.c:87
f32 D_800E9EF4[]
Definition external.c:61
u8 D_8018FB90
Definition external.c:20
void func_800C2274(u8 player)
Definition external.c:493
struct Unk_800EA06C D_800EA06C[]
Definition external.c:76
u8 D_800E9F78[]
Definition external.c:69
f32 D_800EA17C
Definition external.c:100
f32 D_800E9EC4[]
Definition external.c:58
s32 D_800E9E74[]
Definition external.c:53
u8 D_800EA188[][6]
Definition external.c:103
void func_800CB14C()
Definition external.c:3506
void func_800C99E0(Vec3f arg0, s32 soundBits)
Definition external.c:3042
void func_800C97C4(u8 arg0)
Definition external.c:3019
void func_800C3608(u8 arg0, u8 arg1)
Definition external.c:916
s32 D_800E9E34[]
Definition external.c:50
Vec3f * func_800C21E8(Vec3f pos, u32 soundBits)
Definition external.c:464
void func_800C8CCC()
Definition external.c:2790
f32 D_800E9DE4[]
Definition external.c:46
void func_800C8F80(u8 arg0, u32 soundBits)
Definition external.c:2846
void func_800C9A88(u8 playerId)
Definition external.c:3056
u32 D_800E9E94[]
Definition external.c:55
void func_800C8F44(u8 arg0)
Definition external.c:2842
s32 D_800E9DB4[]
Definition external.c:43
void func_800C9F90(u8 arg0)
Definition external.c:3146
void func_800CAEC4(u8 playerId, f32 arg1)
Definition external.c:3450
struct Unk_8018EFD8 D_8018EFD8[50]
Definition external.c:19
void play_sound2(s32 soundBits)
Definition external.c:2821
void func_800C8EAC(u16 arg0)
Definition external.c:2832
void func_800C1E2C(Camera *camera, Vec3f velocity, struct Unk_8018EFD8 *arg2)
Definition external.c:382
f32 D_800EA1D4
Definition external.c:110
#define SOUND_BANK_COUNT
Definition external.h:45
void func_800CBC24(void)
Definition port_eu.c:261
OSMesgQueue * D_800EA3B4
Definition port_eu.c:32
OSMesgQueue * D_800EA3B0
Definition port_eu.c:31
Definition external.h:176
f32 target
Definition external.h:178
f32 current
Definition external.h:177
u16 remainingFrames
Definition external.h:180
f32 velocity
Definition external.h:179
Definition external.h:101
u8 prev
Definition external.h:116
f32 distance
Definition external.h:111
u32 priority
Definition external.h:112
u8 next
Definition external.h:117
f32 * unk10
Definition external.h:108
f32 * unk04
Definition external.h:104
s8 * unk18
Definition external.h:110
u8 freshness
Definition external.h:115
f32 * unk08
Definition external.h:105
f32 * unk14
Definition external.h:109
Vec3f * unk00
Definition external.h:103
u8 soundStatus
Definition external.h:114
u8 cameraId
Definition external.h:106
u32 soundBits
Definition external.h:113
u8 unk2C
Definition external.h:118
f32 * unk0C
Definition external.h:53
Vec3f * position
Definition external.h:50
f32 * unk10
Definition external.h:54
u32 soundBits
Definition external.h:49
u8 cameraId
Definition external.h:51
s8 * unk14
Definition external.h:55
Definition external.h:184
f32 unk4
Definition external.h:186
u8 unk9
Definition external.h:188
u8 unk8
Definition external.h:187
f32 unk0
Definition external.h:185
f32 unk_28
Definition external.h:68
f32 unk_34
Definition external.h:71
f32 unk_0C
Definition external.h:60
f32 unk_30
Definition external.h:70
f32 unk_1C
Definition external.h:65
s8 unk_14
Definition external.h:62
f32 unk_20
Definition external.h:66
f32 unk_18
Definition external.h:64
f32 unk_10
Definition external.h:61
f32 unk_2C
Definition external.h:69
f32 unk_38
Definition external.h:72
f32 unk_24
Definition external.h:67
Vec3f pos
Definition external.h:59
Definition external.h:121
Vec3f unk00
Definition external.h:122
u8 unk0C
Definition external.h:123
f32 unk2C
Definition external.h:93
u8 cameraId
Definition external.h:89
u8 prev
Definition external.h:90
f32 * posZ
Definition external.h:81
f32 * velX
Definition external.h:83
u32 soundBits
Definition external.h:97
f32 * posX
Definition external.h:79
u8 next
Definition external.h:91
f32 * velY
Definition external.h:84
f32 * posY
Definition external.h:80
Vec3f unk18
Definition external.h:86
f32 * velZ
Definition external.h:85
f32 * unk24
Definition external.h:87
u8 unk30
Definition external.h:94
f32 unk34
Definition external.h:96
Definition external.h:191
u8 thing0
Definition external.h:192
u8 thing1
Definition external.h:193
Definition external.h:142
f32 unk_020
Definition external.h:157
u16 unk_018
Definition external.h:154
u8 unk_041
Definition external.h:163
f32 unk_008
Definition external.h:147
f32 unk_000
Definition external.h:145
u16 unk_24A
Definition external.h:170
u32 unk_014
Definition external.h:153
u16 unk_00C
Definition external.h:148
u16 unk_244
Definition external.h:167
u8 unk_012
Definition external.h:151
u8 unk_013
Definition external.h:152
u8 unk_011
Definition external.h:150
f32 unk_01C
Definition external.h:156
u8 unk_040
Definition external.h:162
u16 unk_01A
Definition external.h:155
u16 unk_02A
Definition external.h:160
u8 unk_042
Definition external.h:164
f32 unk_024
Definition external.h:158
f32 unk_004
Definition external.h:146
u16 unk_028
Definition external.h:159
u16 unk_248
Definition external.h:169
u16 unk_246
Definition external.h:168
u8 unk_043
Definition external.h:165
Definition external.h:127
u16 unk_1C
Definition external.h:138
f32 unk_10
Definition external.h:134
f32 unk_08
Definition external.h:131
f32 unk_00
Definition external.h:128
f32 unk_18
Definition external.h:137
f32 unk_04
Definition external.h:129
u16 unk_0C
Definition external.h:132
f32 unk_14
Definition external.h:135
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