diff --git a/docs/tutorial/other_functions.md b/docs/tutorial/other_functions.md index f3381be803..1def96861e 100644 --- a/docs/tutorial/other_functions.md +++ b/docs/tutorial/other_functions.md @@ -502,7 +502,7 @@ void EnJj_Update(EnJj *this, PlayState *play) { } else { this->actionFunc(this); if (this->skelAnime.curFrame == 41.0f) { - Audio_PlayActorSound2((Actor *) this, (u16)0x28B6U); + Audio_PlayActorSfx2((Actor *) this, (u16)0x28B6U); } } func_80A87B1C(this); @@ -526,7 +526,7 @@ void EnJj_Update(Actor *thisx, PlayState *play) { } else { this->actionFunc(this, play); if (this->skelAnime.curFrame == 41.0f) { - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EV_JABJAB_GROAN); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EV_JABJAB_GROAN); } } func_80A87B1C(this); @@ -687,7 +687,7 @@ void func_80A87D94(EnJj *this, PlayState *play) { } } if ((phi_v1 & 1) != 0) { - Audio_PlayActorSound2((Actor *) this, (u16)0x206DU); + Audio_PlayActorSfx2((Actor *) this, (u16)0x206DU); temp_v0_2 = this->unk_308; if ((s32) temp_v0_2 >= -0x1450) { this->unk_308 = temp_v0_2 - 0x66; @@ -763,7 +763,7 @@ void func_80A87D94(EnJj *this, PlayState *play) { break; } if ((phi_v1 & 1) != 0) { - Audio_PlayActorSound2((Actor *) this, (u16)0x206DU); + Audio_PlayActorSfx2((Actor *) this, (u16)0x206DU); temp_v0_2 = this->unk_308; if ((s32) temp_v0_2 >= -0x1450) { this->unk_308 = temp_v0_2 - 0x66; @@ -771,9 +771,9 @@ void func_80A87D94(EnJj *this, PlayState *play) { } } ``` -(notice that this time we need a `default` to deal with the innermost if contents). If you try to replace `0x206D` in the `Audio_PlayActorSound2`, you will find there is no such sfxId in the list: this is because some sound effects have an extra offset of `0x800` to do with setting flags. Adding `0x800` to the sfxId shows that this sound effect is `NA_SE_EV_JABJAB_BREATHE`. To correct this to the id in the function, we have a macro `SFX_FLAG`, and it should therefore be +(notice that this time we need a `default` to deal with the innermost if contents). If you try to replace `0x206D` in the `Audio_PlayActorSfx2`, you will find there is no such sfxId in the list: this is because some sound effects have an extra offset of `0x800` to do with setting flags. Adding `0x800` to the sfxId shows that this sound effect is `NA_SE_EV_JABJAB_BREATHE`. To correct this to the id in the function, we have a macro `SFX_FLAG`, and it should therefore be ```C -Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EV_JABJAB_BREATHE - SFX_FLAG); +Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EV_JABJAB_BREATHE - SFX_FLAG); ``` As usual, most of the remaining temps look fake. The only one that does not is possibly `phi_v1`. However, the way in which they are used here makes it hard to tell if they are fake, and if so, how to replace them. I encourage you to try this yourself, with the aid of the diff script; the final, matching result, with other cleanup, is hidden below @@ -814,7 +814,7 @@ void func_80A87D94(EnJj* this, PlayState* play) { break; } if ((this->unk_30A & 1) != 0) { - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EV_JABJAB_BREATHE - SFX_FLAG); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EV_JABJAB_BREATHE - SFX_FLAG); if (this->unk_308 >= -5200) { this->unk_308 -= 102; } diff --git a/include/functions.h b/include/functions.h index 691fcbbe71..86462b887f 100644 --- a/include/functions.h +++ b/include/functions.h @@ -320,7 +320,7 @@ void EffectSsExtra_Spawn(PlayState* play, Vec3f* pos, Vec3f* velocity, Vec3f* ac void EffectSsFCircle_Spawn(PlayState* play, Actor* actor, Vec3f* pos, s16 radius, s16 height); void EffectSsDeadDb_Spawn(PlayState* play, Vec3f* pos, Vec3f* velocity, Vec3f* accel, s16 scale, s16 scaleStep, s16 primR, s16 primG, s16 primB, s16 primA, s16 envR, s16 envG, s16 envB, s16 unused, - s32 arg14, s16 playSound); + s32 arg14, s16 playSfx); void EffectSsDeadDd_Spawn(PlayState* play, Vec3f* pos, Vec3f* velocity, Vec3f* accel, s16 scale, s16 scaleStep, s16 primR, s16 primG, s16 primB, s16 alpha, s16 envR, s16 envG, s16 envB, s16 alphaStep, s32 life); @@ -443,7 +443,7 @@ void func_8002F71C(PlayState* play, Actor* actor, f32 arg2, s16 arg3, f32 arg4); void func_8002F758(PlayState* play, Actor* actor, f32 arg2, s16 arg3, f32 arg4, u32 arg5); void func_8002F7A0(PlayState* play, Actor* actor, f32 arg2, s16 arg3, f32 arg4); void func_8002F7DC(Actor* actor, u16 sfxId); -void Audio_PlayActorSound2(Actor* actor, u16 sfxId); +void Audio_PlayActorSfx2(Actor* actor, u16 sfxId); void func_8002F850(PlayState* play, Actor* actor); void func_8002F8F0(Actor* actor, u16 sfxId); void func_8002F91C(Actor* actor, u16 sfxId); @@ -795,7 +795,7 @@ void CollisionCheck_SpawnRedBlood(PlayState* play, Vec3f* v); void CollisionCheck_SpawnWaterDroplets(PlayState* play, Vec3f* v); void CollisionCheck_SpawnShieldParticles(PlayState* play, Vec3f* v); void CollisionCheck_SpawnShieldParticlesMetal(PlayState* play, Vec3f* v); -void CollisionCheck_SpawnShieldParticlesMetalSound(PlayState* play, Vec3f* v, Vec3f* pos); +void CollisionCheck_SpawnShieldParticlesMetalSfx(PlayState* play, Vec3f* v, Vec3f* pos); void CollisionCheck_SpawnShieldParticlesMetal2(PlayState* play, Vec3f* v); void CollisionCheck_SpawnShieldParticlesWood(PlayState* play, Vec3f* v, Vec3f* actorPos); s32 CollisionCheck_CylSideVsLineSeg(f32 radius, f32 height, f32 offset, Vec3f* actorPos, Vec3f* itemPos, @@ -825,9 +825,9 @@ void Cutscene_HandleConditionalTriggers(PlayState* play); void Cutscene_SetSegment(PlayState* play, void* segment); void* MemCpy(void* dest, const void* src, s32 len); void GetItem_Draw(PlayState* play, s16 drawId); -void SoundSource_InitAll(PlayState* play); -void SoundSource_UpdateAll(PlayState* play); -void SoundSource_PlaySfxAtFixedWorldPos(PlayState* play, Vec3f* worldPos, s32 duration, u16 sfxId); +void SfxSource_InitAll(PlayState* play); +void SfxSource_UpdateAll(PlayState* play); +void SfxSource_PlaySfxAtFixedWorldPos(PlayState* play, Vec3f* worldPos, s32 duration, u16 sfxId); u16 ElfMessage_GetSariaText(PlayState* play); u16 ElfMessage_GetCUpText(PlayState* play); u16 Text_GetFaceReaction(PlayState* play, u32 reactionSet); @@ -1901,10 +1901,10 @@ void AudioOcarina_PlayLongScarecrowAfterCredits(void); void AudioDebug_Draw(GfxPrint* printer); void AudioDebug_ScrPrt(const char* str, u16 num); void func_800F3054(void); -void Audio_SetSoundProperties(u8 bankId, u8 entryIdx, u8 channelIdx); +void Audio_SetSfxProperties(u8 bankId, u8 entryIdx, u8 channelIdx); void Audio_PlayCutsceneEffectsSequence(u8 csEffectType); void func_800F4010(Vec3f* pos, u16 sfxId, f32); -void Audio_PlaySoundRandom(Vec3f* pos, u16 baseSfxId, u8 randLim); +void Audio_PlaySfxRandom(Vec3f* pos, u16 baseSfxId, u8 randLim); void func_800F4138(Vec3f* pos, u16 sfxId, f32); void func_800F4190(Vec3f* pos, u16 sfxId); void func_800F436C(Vec3f* pos, u16 sfxId, f32 arg2); @@ -1912,16 +1912,16 @@ void func_800F4414(Vec3f* pos, u16 sfxId, f32); void func_800F44EC(s8 arg0, s8 arg1); void func_800F4524(Vec3f* pos, u16 sfxId, s8 arg2); void func_800F4254(Vec3f* pos, u8 level); -void Audio_PlaySoundRiver(Vec3f* pos, f32 freqScale); -void Audio_PlaySoundWaterfall(Vec3f* pos, f32 freqScale); +void Audio_PlaySfxRiver(Vec3f* pos, f32 freqScale); +void Audio_PlaySfxWaterfall(Vec3f* pos, f32 freqScale); void func_800F47BC(void); void func_800F47FC(void); void func_800F483C(u8 targetVol, u8 volFadeTimer); void Audio_SetGanonsTowerBgmVolumeLevel(u8 ganonsTowerLevel); void Audio_LowerMainBgmVolume(u8 volume); -void Audio_PlaySoundIncreasinglyTransposed(Vec3f* pos, s16 sfxId, u8* semitones); +void Audio_PlaySfxIncreasinglyTransposed(Vec3f* pos, s16 sfxId, u8* semitones); void Audio_ResetIncreasingTranspose(void); -void Audio_PlaySoundTransposed(Vec3f* pos, u16 sfxId, s8 semitone); +void Audio_PlaySfxTransposed(Vec3f* pos, u16 sfxId, s8 semitone); void func_800F4C58(Vec3f* pos, u16 sfxId, u8); void func_800F4E30(Vec3f* pos, f32); void Audio_ClearSariaBgm(void); @@ -1953,7 +1953,7 @@ void func_800F6700(s8 audioSetting); void Audio_SetBaseFilter(u8); void Audio_SetExtraFilter(u8); void Audio_SetCutsceneFlag(s8 flag); -void Audio_PlaySoundIfNotInCutscene(u16 sfxId); +void Audio_PlaySfxIfNotInCutscene(u16 sfxId); void func_800F6964(u16); void func_800F6AB0(u16); // ? Audio_DisableAllSeq(?); @@ -1966,13 +1966,13 @@ void Audio_Init(void); void Audio_InitSound(void); void func_800F7170(void); void func_800F71BC(s32 arg0); -void Audio_SetSoundBanksMute(u16 muteMask); +void Audio_SetSfxBanksMute(u16 muteMask); void Audio_QueueSeqCmdMute(u8 channelIdx); void Audio_ClearBGMMute(u8 channelIdx); -void Audio_PlaySoundGeneral(u16 sfxId, Vec3f* pos, u8 token, f32* freqScale, f32* vol, s8* reverbAdd); -void Audio_ProcessSoundRequest(void); -void Audio_ChooseActiveSounds(u8 bankId); -void Audio_PlayActiveSounds(u8 bankId); +void Audio_PlaySfxGeneral(u16 sfxId, Vec3f* pos, u8 token, f32* freqScale, f32* vol, s8* reverbAdd); +void Audio_ProcessSfxRequest(void); +void Audio_ChooseActiveSfx(u8 bankId); +void Audio_PlayActiveSfx(u8 bankId); void Audio_StopSfxByBank(u8 bankId); void func_800F8884(u8 bankId, Vec3f* pos); void Audio_StopSfxByPosAndBank(u8 bankId, Vec3f* pos); @@ -1982,10 +1982,10 @@ void Audio_QueueSeqCmd(u32 cmd); void Audio_StopSfxByPosAndId(Vec3f* pos, u16 sfxId); void Audio_StopSfxByTokenAndId(u8 token, u16 sfxId); void Audio_StopSfxById(u32 sfxId); -void Audio_ProcessSoundRequests(void); +void Audio_ProcessSfxRequests(void); void func_800F8F88(void); u8 Audio_IsSfxPlaying(u32 sfxId); -void Audio_ResetSounds(void); +void Audio_ResetSfx(void); void func_800F9474(u8, u16); void func_800F94FC(u32); void Audio_ProcessSeqCmd(u32); diff --git a/include/sfx.h b/include/sfx.h index 3027cb52e6..373cbc0d9b 100644 --- a/include/sfx.h +++ b/include/sfx.h @@ -9,7 +9,7 @@ typedef enum { /* 4 */ BANK_SYSTEM, /* 5 */ BANK_OCARINA, /* 6 */ BANK_VOICE -} SoundBankType; +} SfxBankType; typedef enum { /* 0 */ SFX_STATE_EMPTY, @@ -39,7 +39,7 @@ typedef struct { /* 0x2D */ u8 next; /* 0x2E */ u8 channelIdx; /* 0x2F */ u8 unk_2F; -} SoundBankEntry; // size = 0x30 +} SfxBankEntry; // size = 0x30 /* * SFX IDs @@ -89,9 +89,9 @@ typedef enum { typedef struct { u32 priority; // lower is more prioritized u8 entryIndex; -} ActiveSound; +} ActiveSfx; -// SoundParams bit-packing +// SfxParams bit-packing #define SFX_PARAM_01_SHIFT 0 #define SFX_PARAM_01_MASK (3 << SFX_PARAM_01_SHIFT) @@ -116,6 +116,6 @@ typedef struct { typedef struct { u8 importance; u16 params; -} SoundParams; +} SfxParams; #endif diff --git a/include/variables.h b/include/variables.h index ed6b0ec9c2..b7c2ea48b8 100644 --- a/include/variables.h +++ b/include/variables.h @@ -129,7 +129,7 @@ extern f32 gDefaultPanVolume[128]; extern s16 gLowPassFilterData[16 * 8]; extern s16 gHighPassFilterData[15 * 8]; extern s32 gAudioContextInitalized; -extern u8 gIsLargeSoundBank[7]; +extern u8 gIsLargeSfxBank[7]; extern u8 gChannelsPerBank[4][7]; extern u8 gUsedChannelsPerBank[4][7]; extern u8 gMorphaTransposeTable[16]; @@ -137,13 +137,13 @@ extern u8* gFrogsSongPtr; extern OcarinaNote* gScarecrowLongSongPtr; extern u8* gScarecrowSpawnSongPtr; extern OcarinaSongButtons gOcarinaSongButtons[]; -extern SoundParams* gSoundParams[7]; +extern SfxParams* gSfxParams[7]; extern char D_80133390[]; extern char D_80133398[]; -extern u8 gSoundRequestWriteIndex; -extern u8 gSoundRequestReadIndex; -extern SoundBankEntry* gSoundBanks[7]; -extern u8 gSoundBankSizes[]; +extern u8 gSfxRequestWriteIndex; +extern u8 gSfxRequestReadIndex; +extern SfxBankEntry* gSfxBanks[7]; +extern u8 gSfxBankSizes[]; extern u8 gSfxChannelLayout; extern u16 D_801333D0; extern Vec3f gSfxDefaultPos; @@ -208,15 +208,15 @@ extern volatile OSTime gRSPGFXTotalTime; extern volatile OSTime gRSPOtherTotalTime; extern volatile OSTime gRDPTotalTime; -extern SoundBankEntry D_8016BAD0[9]; -extern SoundBankEntry D_8016BC80[12]; -extern SoundBankEntry D_8016BEC0[22]; -extern SoundBankEntry D_8016C2E0[20]; -extern SoundBankEntry D_8016C6A0[8]; -extern SoundBankEntry D_8016C820[3]; -extern SoundBankEntry D_8016C8B0[5]; -extern ActiveSound gActiveSounds[7][MAX_CHANNELS_PER_BANK]; // total size = 0xA8 -extern u8 gSoundBankMuted[]; +extern SfxBankEntry D_8016BAD0[9]; +extern SfxBankEntry D_8016BC80[12]; +extern SfxBankEntry D_8016BEC0[22]; +extern SfxBankEntry D_8016C2E0[20]; +extern SfxBankEntry D_8016C6A0[8]; +extern SfxBankEntry D_8016C820[3]; +extern SfxBankEntry D_8016C8B0[5]; +extern ActiveSfx gActiveSfx[7][MAX_CHANNELS_PER_BANK]; // total size = 0xA8 +extern u8 gSfxBankMuted[]; extern u16 gAudioSfxSwapSource[10]; extern u16 gAudioSfxSwapTarget[10]; extern u8 gAudioSfxSwapMode[10]; diff --git a/include/z64.h b/include/z64.h index 7617371630..b6103fd34f 100644 --- a/include/z64.h +++ b/include/z64.h @@ -365,7 +365,7 @@ typedef struct { /* 0x00 */ u16 countdown; /* 0x04 */ Vec3f worldPos; /* 0x10 */ Vec3f projectedPos; -} SoundSource; // size = 0x1C +} SfxSource; // size = 0x1C typedef enum { /* 0x00 */ SKYBOX_NONE, @@ -1151,7 +1151,7 @@ typedef struct PlayState { /* 0x007C0 */ CollisionContext colCtx; /* 0x01C24 */ ActorContext actorCtx; /* 0x01D64 */ CutsceneContext csCtx; // "demo_play" - /* 0x01DB4 */ SoundSource soundSources[16]; + /* 0x01DB4 */ SfxSource sfxSources[16]; /* 0x01F74 */ SramContext sramCtx; /* 0x01F78 */ SkyboxContext skyboxCtx; /* 0x020D8 */ MessageContext msgCtx; // "message" diff --git a/include/z64actor.h b/include/z64actor.h index 620aa099a3..43626f8331 100644 --- a/include/z64actor.h +++ b/include/z64actor.h @@ -189,7 +189,7 @@ typedef struct Actor { /* 0x01C */ s16 params; // Configurable variable set by the actor's spawn data; original name: "args_data" /* 0x01E */ s8 objBankIndex; // Object bank index of the actor's object dependency; original name: "bank" /* 0x01F */ s8 targetMode; // Controls how far the actor can be targeted from and how far it can stay locked on - /* 0x020 */ u16 sfx; // SFX ID to play. Sound plays when value is set, then is cleared the following update cycle + /* 0x020 */ u16 sfx; // SFX ID to play. Sfx plays when value is set, then is cleared the following update cycle /* 0x024 */ PosRot world; // Position/rotation in the world /* 0x038 */ PosRot focus; // Target reticle focuses on this position. For player this represents head pos and rot /* 0x04C */ f32 targetArrowOffset; // Height offset of the target arrow relative to `focus` position diff --git a/include/z64collision_check.h b/include/z64collision_check.h index 8faa3a3951..383bbbc009 100644 --- a/include/z64collision_check.h +++ b/include/z64collision_check.h @@ -332,7 +332,7 @@ typedef enum { #define BUMP_HOOKABLE (1 << 2) // Can be hooked if actor has hookability flags set. #define BUMP_NO_AT_INFO (1 << 3) // Does not give its info to the AT collider that hit it. #define BUMP_NO_DAMAGE (1 << 4) // Does not take damage. -#define BUMP_NO_SWORD_SFX (1 << 5) // Does not have a sound when hit by player-attached AT colliders. +#define BUMP_NO_SWORD_SFX (1 << 5) // Does not have a sound effect when hit by player-attached AT colliders. #define BUMP_NO_HITMARK (1 << 6) // Skips hit effects. #define BUMP_DRAW_HITMARK (1 << 7) // Draw hitmark for AC collision this frame. diff --git a/spec b/spec index 728d152007..f30fb13312 100644 --- a/spec +++ b/spec @@ -318,7 +318,7 @@ beginseg include "build/src/code/z_demo.o" include "build/src/code/code_80069420.o" include "build/src/code/z_draw.o" - include "build/src/code/z_sound_source.o" + include "build/src/code/z_sfx_source.o" include "build/src/code/z_elf_message.o" include "build/src/code/z_face_reaction.o" include "build/src/code/code_8006C3A0.o" @@ -423,7 +423,7 @@ beginseg include "build/src/code/audio_effects.o" include "build/src/code/audio_seqplayer.o" include "build/src/code/code_800EC960.o" - include "build/src/code/audio_sound_params.o" + include "build/src/code/audio_sfx_params.o" include "build/src/code/code_800F7260.o" include "build/src/code/code_800F9280.o" include "build/src/code/audio_external_data.o" diff --git a/src/code/audio_external_data.c b/src/code/audio_external_data.c index 25aacdd8aa..3dcf0fd1de 100644 --- a/src/code/audio_external_data.c +++ b/src/code/audio_external_data.c @@ -1,12 +1,12 @@ #include "ultra64.h" #include "global.h" -// sSoundRequests ring buffer endpoints. read index <= write index, wrapping around mod 256. -u8 gSoundRequestWriteIndex = 0; -u8 gSoundRequestReadIndex = 0; +// sSfxRequests ring buffer endpoints. read index <= write index, wrapping around mod 256. +u8 gSfxRequestWriteIndex = 0; +u8 gSfxRequestReadIndex = 0; /** - * Array of pointers to arrays of SoundBankEntry of sizes: 9, 12, 22, 20, 8, 3, 5 + * Array of pointers to arrays of SfxBankEntry of sizes: 9, 12, 22, 20, 8, 3, 5 * * 0 : Player Bank size 9 * 1 : Item Bank size 12 @@ -16,11 +16,11 @@ u8 gSoundRequestReadIndex = 0; * 5 : Ocarina Bank size 3 * 6 : Voice Bank size 5 */ -SoundBankEntry* gSoundBanks[7] = { +SfxBankEntry* gSfxBanks[7] = { D_8016BAD0, D_8016BC80, D_8016BEC0, D_8016C2E0, D_8016C6A0, D_8016C820, D_8016C8B0, }; -u8 gSoundBankSizes[ARRAY_COUNT(gSoundBanks)] = { +u8 gSfxBankSizes[ARRAY_COUNT(gSfxBanks)] = { ARRAY_COUNT(D_8016BAD0), ARRAY_COUNT(D_8016BC80), ARRAY_COUNT(D_8016BEC0), ARRAY_COUNT(D_8016C2E0), ARRAY_COUNT(D_8016C6A0), ARRAY_COUNT(D_8016C820), ARRAY_COUNT(D_8016C8B0), }; diff --git a/src/code/audio_sound_params.c b/src/code/audio_sfx_params.c similarity index 73% rename from src/code/audio_sound_params.c rename to src/code/audio_sfx_params.c index e97cab3572..6269dffa49 100644 --- a/src/code/audio_sound_params.c +++ b/src/code/audio_sfx_params.c @@ -5,37 +5,37 @@ { importance, ((((distParam) << SFX_PARAM_01_SHIFT) & SFX_PARAM_01_MASK) | \ (((randParam) << SFX_PARAM_67_SHIFT) & SFX_PARAM_67_MASK) | (flags)) }, -SoundParams sEnemyBankParams[] = { +SfxParams sEnemyBankParams[] = { #include "tables/sfx/enemybank_table.h" }; -SoundParams sPlayerBankParams[] = { +SfxParams sPlayerBankParams[] = { #include "tables/sfx/playerbank_table.h" }; -SoundParams sItemBankParams[] = { +SfxParams sItemBankParams[] = { #include "tables/sfx/itembank_table.h" }; -SoundParams sEnvBankParams[] = { +SfxParams sEnvBankParams[] = { #include "tables/sfx/environmentbank_table.h" }; -SoundParams sSystemBankParams[] = { +SfxParams sSystemBankParams[] = { #include "tables/sfx/systembank_table.h" }; -SoundParams sOcarinaBankParams[] = { +SfxParams sOcarinaBankParams[] = { #include "tables/sfx/ocarinabank_table.h" }; -SoundParams sVoiceBankParams[] = { +SfxParams sVoiceBankParams[] = { #include "tables/sfx/voicebank_table.h" }; #undef DEFINE_SFX -SoundParams* gSoundParams[7] = { +SfxParams* gSfxParams[7] = { sPlayerBankParams, sItemBankParams, sEnvBankParams, sEnemyBankParams, sSystemBankParams, sOcarinaBankParams, sVoiceBankParams, }; diff --git a/src/code/code_800EC960.c b/src/code/code_800EC960.c index 94e1bd4178..876d4f7cbd 100644 --- a/src/code/code_800EC960.c +++ b/src/code/code_800EC960.c @@ -93,7 +93,7 @@ typedef struct { s8 y; } OcarinaStick; -u8 gIsLargeSoundBank[7] = { 0, 0, 0, 1, 0, 0, 0 }; +u8 gIsLargeSfxBank[7] = { 0, 0, 0, 1, 0, 0, 0 }; // Only the first row of these is supported by sequence 0. (gSfxChannelLayout is always 0.) u8 gChannelsPerBank[4][7] = { @@ -1739,8 +1739,8 @@ void AudioOcarina_PlayControllerInput(u8 unused) { Audio_QueueCmdS8(0x6 << 24 | SEQ_PLAYER_SFX << 16 | SFX_CHANNEL_OCARINA << 8 | 7, sOcarinaInstrumentId - 1); // Sets pitch to io port 5 Audio_QueueCmdS8(0x6 << 24 | SEQ_PLAYER_SFX << 16 | SFX_CHANNEL_OCARINA << 8 | 5, sCurOcarinaPitch); - Audio_PlaySoundGeneral(NA_SE_OC_OCARINA, &gSfxDefaultPos, 4, &sCurOcarinaBendFreq, &sRelativeOcarinaVolume, - &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_OC_OCARINA, &gSfxDefaultPos, 4, &sCurOcarinaBendFreq, &sRelativeOcarinaVolume, + &gSfxDefaultReverb); } else if ((sPrevOcarinaPitch != OCARINA_PITCH_NONE) && (sCurOcarinaPitch == OCARINA_PITCH_NONE)) { // Stops ocarina sound when transitioning from playing to not playing a note Audio_StopSfxById(NA_SE_OC_OCARINA); @@ -1778,7 +1778,7 @@ void AudioOcarina_SetInstrument(u8 ocarinaInstrumentId) { AudioOcarina_PlayControllerInput(false); Audio_StopSfxById(NA_SE_OC_OCARINA); - Audio_SetSoundBanksMute(0); + Audio_SetSfxBanksMute(0); sPlaybackState = 0; sPlaybackStaffPos = 0; sIsOcarinaInputEnabled = false; @@ -1912,8 +1912,8 @@ void AudioOcarina_PlaybackSong(void) { // Sets sPlaybackPitch to channelIdx io port 5 Audio_QueueCmdS8(0x6 << 24 | SEQ_PLAYER_SFX << 16 | SFX_CHANNEL_OCARINA << 8 | 5, sPlaybackPitch & 0x3F); - Audio_PlaySoundGeneral(NA_SE_OC_OCARINA, &gSfxDefaultPos, 4, &sRelativeNotePlaybackBend, - &sRelativeNotePlaybackVolume, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_OC_OCARINA, &gSfxDefaultPos, 4, &sRelativeNotePlaybackBend, + &sRelativeNotePlaybackVolume, &gSfxDefaultReverb); } else { Audio_StopSfxById(NA_SE_OC_OCARINA); } @@ -2276,7 +2276,7 @@ void AudioOcarina_PlayLongScarecrowAfterCredits(void) { } break; case 1: - Audio_SetSoundBanksMute(0); + Audio_SetSfxBanksMute(0); AudioOcarina_SetInstrument(sScarecrowAfterCreditsIntrumentId); AudioOcarina_SetPlaybackSong(OCARINA_SONG_SCARECROW_LONG + 1, 1); sScarecrowAfterCreditsIntrumentId++; @@ -2339,7 +2339,7 @@ char sAudioDebugPageNames[15][23] = { }; u16 sAudioSndContWork[11] = { 0 }; u16 sAudioSndContWorkLims[11] = { 128, 128, 7, 512, 4, 2, 16, 32, 2, 2, 2 }; -char sSoundBankNames[7][11] = { "PLAYER", "ITEM", "ENVIROMENT", "ENEMY", "SYSTEM", "OCARINA", "VOICE" }; +char sSfxBankNames[7][11] = { "PLAYER", "ITEM", "ENVIROMENT", "ENEMY", "SYSTEM", "OCARINA", "VOICE" }; char sSoundModeNames[5][10] = { "W-STEREO", "HEADPHONE", "3D SOUND", "MONO", "" }; s8 sAudioIntInfoX = 0; s8 sAudioIntInfoY = 0; @@ -2480,17 +2480,17 @@ void AudioDebug_Draw(GfxPrint* printer) { GfxPrint_Printf(printer, "PUSH CONT-4 A-BTN"); ind = (s8)sAudioSndContWork[2]; - i = gSoundBanks[ind][0].next; + i = gSfxBanks[ind][0].next; j = 0; SETCOL(255, 255, 255); GfxPrint_SetPos(printer, 3, 6); - GfxPrint_Printf(printer, "SE HANDLE:%s", sSoundBankNames[ind]); + GfxPrint_Printf(printer, "SE HANDLE:%s", sSfxBankNames[ind]); while (i != 0xFF) { GfxPrint_SetPos(printer, 3, 7 + j++); - GfxPrint_Printf(printer, "%02x %04x %02x %08x", i, gSoundBanks[ind][i].sfxId, gSoundBanks[ind][i].state, - gSoundBanks[ind][i].priority); - i = gSoundBanks[ind][i].next; + GfxPrint_Printf(printer, "%02x %04x %02x %08x", i, gSfxBanks[ind][i].sfxId, gSfxBanks[ind][i].state, + gSfxBanks[ind][i].priority); + i = gSfxBanks[ind][i].next; } break; @@ -2507,7 +2507,7 @@ void AudioDebug_Draw(GfxPrint* printer) { GfxPrint_Printf(printer, "Seq 1 : %2x", sAudioSndContWork[1]); GfxPrint_SetPos(printer, 3, 6); - GfxPrint_Printf(printer, "SE HD : %2x %s", sAudioSndContWork[2], sSoundBankNames[sAudioSndContWork[2]]); + GfxPrint_Printf(printer, "SE HD : %2x %s", sAudioSndContWork[2], sSfxBankNames[sAudioSndContWork[2]]); GfxPrint_SetPos(printer, 3, 7); GfxPrint_Printf(printer, "SE No. :%3x", sAudioSndContWork[3]); @@ -2543,11 +2543,11 @@ void AudioDebug_Draw(GfxPrint* printer) { SETCOL(255, 255, 255); } GfxPrint_SetPos(printer, 2 + sAudioIntInfoX, 4 + ind + sAudioIntInfoY); - GfxPrint_Printf(printer, "%s <%d>", sSoundBankNames[k], sAudioIntInfoBankPage[k]); + GfxPrint_Printf(printer, "%s <%d>", sSfxBankNames[k], sAudioIntInfoBankPage[k]); for (k2 = 0; k2 < gChannelsPerBank[gSfxChannelLayout][k]; k2++) { -#define entryIndex (gActiveSounds[k][k2].entryIndex) -#define entry (&gSoundBanks[k][entryIndex]) +#define entryIndex (gActiveSfx[k][k2].entryIndex) +#define entry (&gSfxBanks[k][entryIndex]) #define chan (gAudioContext.seqPlayers[SEQ_PLAYER_SFX].channels[entry->channelIdx]) GfxPrint_SetPos(printer, 2 + sAudioIntInfoX, 5 + ind + sAudioIntInfoY); if (sAudioIntInfoBankPage[k] == 1) { @@ -2613,25 +2613,25 @@ void AudioDebug_Draw(GfxPrint* printer) { GfxPrint_Printf(printer, "Color : %d", sAudioScrPrtWork[2]); GfxPrint_SetPos(printer, 3, 7); - GfxPrint_Printf(printer, "%s : %d", sSoundBankNames[0], sAudioScrPrtWork[3]); + GfxPrint_Printf(printer, "%s : %d", sSfxBankNames[0], sAudioScrPrtWork[3]); GfxPrint_SetPos(printer, 3, 8); - GfxPrint_Printf(printer, "%s : %d", sSoundBankNames[1], sAudioScrPrtWork[4]); + GfxPrint_Printf(printer, "%s : %d", sSfxBankNames[1], sAudioScrPrtWork[4]); GfxPrint_SetPos(printer, 3, 9); GfxPrint_Printf(printer, "ENVRONM : %d", sAudioScrPrtWork[5]); GfxPrint_SetPos(printer, 3, 10); - GfxPrint_Printf(printer, "%s : %d", sSoundBankNames[3], sAudioScrPrtWork[6]); + GfxPrint_Printf(printer, "%s : %d", sSfxBankNames[3], sAudioScrPrtWork[6]); GfxPrint_SetPos(printer, 3, 11); - GfxPrint_Printf(printer, "%s : %d", sSoundBankNames[4], sAudioScrPrtWork[7]); + GfxPrint_Printf(printer, "%s : %d", sSfxBankNames[4], sAudioScrPrtWork[7]); GfxPrint_SetPos(printer, 3, 12); - GfxPrint_Printf(printer, "%s : %d", sSoundBankNames[5], sAudioScrPrtWork[8]); + GfxPrint_Printf(printer, "%s : %d", sSfxBankNames[5], sAudioScrPrtWork[8]); GfxPrint_SetPos(printer, 3, 13); - GfxPrint_Printf(printer, "%s : %d", sSoundBankNames[6], sAudioScrPrtWork[9]); + GfxPrint_Printf(printer, "%s : %d", sSfxBankNames[6], sAudioScrPrtWork[9]); GfxPrint_SetPos(printer, 3, 14); GfxPrint_Printf(printer, "SEQ ENT : %d", sAudioScrPrtWork[10]); @@ -3000,22 +3000,22 @@ void AudioDebug_Draw(GfxPrint* printer) { SETCOL(255, 255, 255); GfxPrint_SetPos(printer, 3, 4); GfxPrint_Printf(printer, "SE HD : %02x %s", sAudioSfxParamChgWork[0], - sSoundBankNames[sAudioSfxParamChgWork[0]]); + sSfxBankNames[sAudioSfxParamChgWork[0]]); GfxPrint_SetPos(printer, 3, 5); GfxPrint_Printf(printer, "SE No. : %02x", sAudioSfxParamChgWork[1]); GfxPrint_SetPos(printer, 20, 6); GfxPrint_Printf(printer, " : %04x", - gSoundParams[sAudioSfxParamChgWork[0]][sAudioSfxParamChgWork[1]].params); + gSfxParams[sAudioSfxParamChgWork[0]][sAudioSfxParamChgWork[1]].params); GfxPrint_SetPos(printer, 3, 6); GfxPrint_Printf( printer, "SE SW %s", - AudioDebug_ToStringBinary(gSoundParams[sAudioSfxParamChgWork[0]][sAudioSfxParamChgWork[1]].params, 16)); + AudioDebug_ToStringBinary(gSfxParams[sAudioSfxParamChgWork[0]][sAudioSfxParamChgWork[1]].params, 16)); SETCOL(127, 255, 127); - digitStr[0] = (char)('0' + ((gSoundParams[sAudioSfxParamChgWork[0]][sAudioSfxParamChgWork[1]].params >> + digitStr[0] = (char)('0' + ((gSfxParams[sAudioSfxParamChgWork[0]][sAudioSfxParamChgWork[1]].params >> (15 - sAudioSfxParamChgBitSel)) & 1)); GfxPrint_SetPos(printer, 12 + sAudioSfxParamChgBitSel, 6); @@ -3024,7 +3024,7 @@ void AudioDebug_Draw(GfxPrint* printer) { SETCOL(255, 255, 255); GfxPrint_SetPos(printer, 3, 7); GfxPrint_Printf(printer, "SE PR : %02x", - gSoundParams[sAudioSfxParamChgWork[0]][sAudioSfxParamChgWork[1]].importance); + gSfxParams[sAudioSfxParamChgWork[0]][sAudioSfxParamChgWork[1]].importance); break; case PAGE_FREE_AREA: @@ -3161,9 +3161,9 @@ void AudioDebug_ProcessInput_SndCont(void) { break; case 2: case 3: - Audio_PlaySoundGeneral(((sAudioSndContWork[2] << 12) & 0xFFFF) + sAudioSndContWork[3] + SFX_FLAG, - &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultReverb); + Audio_PlaySfxGeneral(((sAudioSndContWork[2] << 12) & 0xFFFF) + sAudioSndContWork[3] + SFX_FLAG, + &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultReverb); break; case 4: func_800F6700(sAudioSndContWork[sAudioSndContSel]); @@ -3185,7 +3185,7 @@ void AudioDebug_ProcessInput_SndCont(void) { case 9: break; case 10: - Audio_SetSoundBanksMute(sAudioSndContWork[sAudioSndContSel] * 0x7F); + Audio_SetSfxBanksMute(sAudioSndContWork[sAudioSndContSel] * 0x7F); break; } } @@ -3537,7 +3537,7 @@ void AudioDebug_ProcessInput_SfxParamChg(void) { sAudioSfxParamChgWork[sAudioSfxParamChgSel] &= 0x1FF; } } else if (sAudioSfxParamChgSel == 3) { - gSoundParams[sAudioSfxParamChgWork[0]][sAudioSfxParamChgWork[1]].importance -= step; + gSfxParams[sAudioSfxParamChgWork[0]][sAudioSfxParamChgWork[1]].importance -= step; } else { sAudioSfxParamChgBitSel = (sAudioSfxParamChgBitSel - 1) & 0xF; } @@ -3556,7 +3556,7 @@ void AudioDebug_ProcessInput_SfxParamChg(void) { sAudioSfxParamChgWork[sAudioSfxParamChgSel] &= 0x1FF; } } else if (sAudioSfxParamChgSel == 3) { - gSoundParams[sAudioSfxParamChgWork[0]][sAudioSfxParamChgWork[1]].importance += step; + gSfxParams[sAudioSfxParamChgWork[0]][sAudioSfxParamChgWork[1]].importance += step; } else { sAudioSfxParamChgBitSel = (sAudioSfxParamChgBitSel + 1) & 0xF; } @@ -3564,8 +3564,8 @@ void AudioDebug_ProcessInput_SfxParamChg(void) { if (CHECK_BTN_ANY(sDebugPadPress, BTN_A)) { sfx = (u16)(sAudioSfxParamChgWork[0] << 12) + sAudioSfxParamChgWork[1] + SFX_FLAG; - Audio_PlaySoundGeneral(sfx, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultReverb); + Audio_PlaySfxGeneral(sfx, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultReverb); } if (CHECK_BTN_ANY(sDebugPadPress, BTN_B)) { @@ -3574,7 +3574,7 @@ void AudioDebug_ProcessInput_SfxParamChg(void) { if (CHECK_BTN_ANY(sDebugPadPress, BTN_CDOWN)) { if (sAudioSfxParamChgSel == 2) { - gSoundParams[sAudioSfxParamChgWork[0]][sAudioSfxParamChgWork[1]].params ^= + gSfxParams[sAudioSfxParamChgWork[0]][sAudioSfxParamChgWork[1]].params ^= (1 << (0xF - sAudioSfxParamChgBitSel)); } } @@ -3615,7 +3615,7 @@ void AudioDebug_ProcessInput(void) { } if (sAudioSfxMuted) { - Audio_SetSoundBanksMute(0x6F); + Audio_SetSfxBanksMute(0x6F); } if (CHECK_BTN_ANY(sDebugPadPress, BTN_L)) { @@ -3654,7 +3654,7 @@ void AudioDebug_ProcessInput(void) { if (CHECK_BTN_ANY(sDebugPadPress, BTN_B)) { sAudioSfxMuted ^= 1; if (!sAudioSfxMuted) { - Audio_SetSoundBanksMute(0); + Audio_SetSfxBanksMute(0); } } break; @@ -3712,7 +3712,7 @@ void func_800F3054(void) { if (gAudioSpecId == 7) { Audio_ClearSariaBgm(); } - Audio_ProcessSoundRequests(); + Audio_ProcessSfxRequests(); Audio_ProcessSeqCmds(); func_800F8F88(); func_800FA3DC(); @@ -3734,8 +3734,8 @@ void func_800F314C(s8 arg0) { Audio_QueueCmdS32(0x82 << 24 | SEQ_PLAYER_BGM_MAIN << 16 | (((u8)arg0 & 0xFF) << 8), 1); } -f32 Audio_ComputeSoundVolume(u8 bankId, u8 entryIdx) { - SoundBankEntry* bankEntry = &gSoundBanks[bankId][entryIdx]; +f32 Audio_ComputeSfxVolume(u8 bankId, u8 entryIdx) { + SfxBankEntry* bankEntry = &gSfxBanks[bankId][entryIdx]; f32 minDist; f32 baseDist; f32 ret; @@ -3779,10 +3779,10 @@ f32 Audio_ComputeSoundVolume(u8 bankId, u8 entryIdx) { return ret; } -s8 Audio_ComputeSoundReverb(u8 bankId, u8 entryIdx, u8 channelIdx) { +s8 Audio_ComputeSfxReverb(u8 bankId, u8 entryIdx, u8 channelIdx) { s8 distAdd = 0; s32 scriptAdd = 0; - SoundBankEntry* entry = &gSoundBanks[bankId][entryIdx]; + SfxBankEntry* entry = &gSfxBanks[bankId][entryIdx]; s32 reverb; if (!(entry->sfxParams & SFX_FLAG_12)) { @@ -3812,7 +3812,7 @@ s8 Audio_ComputeSoundReverb(u8 bankId, u8 entryIdx, u8 channelIdx) { return reverb; } -s8 Audio_ComputeSoundPanSigned(f32 x, f32 z, u8 token) { +s8 Audio_ComputeSfxPanSigned(f32 x, f32 z, u8 token) { f32 absX; f32 absZ; f32 pan; @@ -3855,9 +3855,9 @@ s8 Audio_ComputeSoundPanSigned(f32 x, f32 z, u8 token) { return (s8)((pan * 127.0f) + 0.5f); } -f32 Audio_ComputeSoundFreqScale(u8 bankId, u8 entryIdx) { +f32 Audio_ComputeSfxFreqScale(u8 bankId, u8 entryIdx) { s32 phi_v0 = 0; - SoundBankEntry* entry = &gSoundBanks[bankId][entryIdx]; + SfxBankEntry* entry = &gSfxBanks[bankId][entryIdx]; f32 unk1C; f32 freq = 1.0f; @@ -3908,7 +3908,7 @@ f32 Audio_ComputeSoundFreqScale(u8 bankId, u8 entryIdx) { return freq; } -u8 func_800F37B8(f32 behindScreenZ, SoundBankEntry* arg1, s8 arg2) { +u8 func_800F37B8(f32 behindScreenZ, SfxBankEntry* arg1, s8 arg2) { s8 phi_v0; u8 phi_v1; f32 phi_f0; @@ -3968,7 +3968,7 @@ s8 func_800F3990(f32 arg0, u16 sfxParams) { return ret | 1; } -void Audio_SetSoundProperties(u8 bankId, u8 entryIdx, u8 channelIdx) { +void Audio_SetSfxProperties(u8 bankId, u8 entryIdx, u8 channelIdx) { f32 vol = 1.0f; s8 volS8; s8 reverb = 0; @@ -3979,7 +3979,7 @@ void Audio_SetSoundProperties(u8 bankId, u8 entryIdx, u8 channelIdx) { s8 sp38 = 0; f32 behindScreenZ; u8 baseFilter = 0; - SoundBankEntry* entry = &gSoundBanks[bankId][entryIdx]; + SfxBankEntry* entry = &gSfxBanks[bankId][entryIdx]; switch (bankId) { case BANK_PLAYER: @@ -3993,10 +3993,10 @@ void Audio_SetSoundProperties(u8 bankId, u8 entryIdx, u8 channelIdx) { FALLTHROUGH; case BANK_OCARINA: entry->dist = sqrtf(entry->dist); - vol = Audio_ComputeSoundVolume(bankId, entryIdx) * *entry->vol; - reverb = Audio_ComputeSoundReverb(bankId, entryIdx, channelIdx); - panSigned = Audio_ComputeSoundPanSigned(*entry->posX, *entry->posZ, entry->token); - freqScale = Audio_ComputeSoundFreqScale(bankId, entryIdx) * *entry->freqScale; + vol = Audio_ComputeSfxVolume(bankId, entryIdx) * *entry->vol; + reverb = Audio_ComputeSfxReverb(bankId, entryIdx, channelIdx); + panSigned = Audio_ComputeSfxPanSigned(*entry->posX, *entry->posZ, entry->token); + freqScale = Audio_ComputeSfxFreqScale(bankId, entryIdx) * *entry->freqScale; if (sSoundMode == SOUNDMODE_SURROUND) { behindScreenZ = sBehindScreenZ[(entry->sfxParams & SFX_FLAG_10) >> SFX_FLAG_10_SHIFT]; @@ -4092,7 +4092,7 @@ void Audio_ResetSfxChannelState(void) { } void Audio_PlayCutsceneEffectsSequence(u8 csEffectType) { - if (gSoundBankMuted[0] != 1) { + if (gSfxBankMuted[0] != 1) { Audio_StartSeq(SEQ_PLAYER_BGM_SUB, 0, NA_BGM_CUTSCENE_EFFECTS); Audio_SeqCmd8(SEQ_PLAYER_BGM_SUB, 0, 0, csEffectType); } @@ -4120,7 +4120,7 @@ void func_800F4010(Vec3f* pos, u16 sfxId, f32 arg2) { D_80131C8C = arg2; sp24 = func_800F3F84(arg2); - Audio_PlaySoundGeneral(sfxId, pos, 4, &D_8016B7B0, &D_8016B7A8, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(sfxId, pos, 4, &D_8016B7B0, &D_8016B7A8, &gSfxDefaultReverb); if ((sfxId & 0xF0) == 0xB0) { phi_f0 = 0.3f; @@ -4138,23 +4138,23 @@ void func_800F4010(Vec3f* pos, u16 sfxId, f32 arg2) { sfxId2 = NA_SE_PL_METALEFFECT_KID; } D_8016B7AC = (sp24 * 0.7) + 0.3; - Audio_PlaySoundGeneral(sfxId2, pos, 4, &D_8016B7B0, &D_8016B7AC, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(sfxId2, pos, 4, &D_8016B7B0, &D_8016B7AC, &gSfxDefaultReverb); } } void func_800F4138(Vec3f* pos, u16 sfxId, f32 arg2) { func_800F3F84(arg2); - Audio_PlaySoundGeneral(sfxId, pos, 4, &D_8016B7B0, &D_8016B7A8, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(sfxId, pos, 4, &D_8016B7B0, &D_8016B7A8, &gSfxDefaultReverb); } void func_800F4190(Vec3f* pos, u16 sfxId) { - Audio_PlaySoundGeneral(sfxId, pos, 4, &D_801305B0, &gSfxDefaultFreqAndVolScale, &D_801305B4); + Audio_PlaySfxGeneral(sfxId, pos, 4, &D_801305B0, &gSfxDefaultFreqAndVolScale, &D_801305B4); } -void Audio_PlaySoundRandom(Vec3f* pos, u16 baseSfxId, u8 randLim) { +void Audio_PlaySfxRandom(Vec3f* pos, u16 baseSfxId, u8 randLim) { u8 offset = Audio_NextRandom() % randLim; - Audio_PlaySoundGeneral(baseSfxId + offset, pos, 4, &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultReverb); + Audio_PlaySfxGeneral(baseSfxId + offset, pos, 4, &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultReverb); } void func_800F4254(Vec3f* pos, u8 level) { @@ -4163,12 +4163,12 @@ void func_800F4254(Vec3f* pos, u8 level) { D_801305F4 = D_801305E4[level]; switch (level) { case 1: - Audio_PlaySoundGeneral(NA_SE_PL_SWORD_CHARGE, pos, 4, &D_801305F4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_PL_SWORD_CHARGE, pos, 4, &D_801305F4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultReverb); break; case 2: - Audio_PlaySoundGeneral(NA_SE_PL_SWORD_CHARGE, pos, 4, &D_801305F4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_PL_SWORD_CHARGE, pos, 4, &D_801305F4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultReverb); break; } @@ -4176,8 +4176,8 @@ void func_800F4254(Vec3f* pos, u8 level) { } if (level != 0) { - Audio_PlaySoundGeneral(NA_SE_IT_SWORD_CHARGE - SFX_FLAG, pos, 4, &D_801305F4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_IT_SWORD_CHARGE - SFX_FLAG, pos, 4, &D_801305F4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultReverb); } } @@ -4189,14 +4189,14 @@ void func_800F436C(Vec3f* pos, u16 sfxId, f32 arg2) { } if (D_8016B7D8 > 0.5f) { - Audio_PlaySoundGeneral(sfxId, pos, 4, &D_8016B7D8, &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(sfxId, pos, 4, &D_8016B7D8, &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } } void func_800F4414(Vec3f* pos, u16 sfxId, f32 arg2) { D_801305B8--; if (D_801305B8 == 0) { - Audio_PlaySoundGeneral(sfxId, pos, 4, &D_8016B7D8, &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(sfxId, pos, 4, &D_8016B7D8, &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); if (arg2 > 2.0f) { arg2 = 2.0f; @@ -4213,12 +4213,12 @@ void func_800F44EC(s8 arg0, s8 arg1) { void func_800F4524(Vec3f* pos, u16 sfxId, s8 arg2) { D_8016B7DC = arg2; - Audio_PlaySoundGeneral(sfxId, pos, 4, &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, &D_8016B7DC); + Audio_PlaySfxGeneral(sfxId, pos, 4, &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, &D_8016B7DC); } void func_800F4578(Vec3f* pos, u16 sfxId, f32 arg2) { D_8016B7E0 = arg2; - Audio_PlaySoundGeneral(sfxId, pos, 4, &gSfxDefaultFreqAndVolScale, &D_8016B7E0, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(sfxId, pos, 4, &gSfxDefaultFreqAndVolScale, &D_8016B7E0, &gSfxDefaultReverb); } void func_800F45D0(f32 arg0) { @@ -4226,7 +4226,7 @@ void func_800F45D0(f32 arg0) { func_800F436C(&gSfxDefaultPos, 0, (0.15f * arg0) + 1.4f); } -void Audio_PlaySoundRiver(Vec3f* pos, f32 freqScale) { +void Audio_PlaySfxRiver(Vec3f* pos, f32 freqScale) { if (!Audio_IsSfxPlaying(NA_SE_EV_RIVER_STREAM - SFX_FLAG)) { sRiverFreqScaleLerp.value = freqScale; } else if (freqScale != sRiverFreqScaleLerp.value) { @@ -4234,11 +4234,11 @@ void Audio_PlaySoundRiver(Vec3f* pos, f32 freqScale) { sRiverFreqScaleLerp.remainingFrames = 40; sRiverFreqScaleLerp.step = (sRiverFreqScaleLerp.target - sRiverFreqScaleLerp.value) / 40; } - Audio_PlaySoundGeneral(NA_SE_EV_RIVER_STREAM - SFX_FLAG, pos, 4, &sRiverFreqScaleLerp.value, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EV_RIVER_STREAM - SFX_FLAG, pos, 4, &sRiverFreqScaleLerp.value, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } -void Audio_PlaySoundWaterfall(Vec3f* pos, f32 freqScale) { +void Audio_PlaySfxWaterfall(Vec3f* pos, f32 freqScale) { if (!Audio_IsSfxPlaying(NA_SE_EV_WATER_WALL_BIG - SFX_FLAG)) { sWaterfallFreqScaleLerp.value = freqScale; } else if (freqScale != sWaterfallFreqScaleLerp.value) { @@ -4246,8 +4246,8 @@ void Audio_PlaySoundWaterfall(Vec3f* pos, f32 freqScale) { sWaterfallFreqScaleLerp.remainingFrames = 40; sWaterfallFreqScaleLerp.step = (sWaterfallFreqScaleLerp.target - sWaterfallFreqScaleLerp.value) / 40; } - Audio_PlaySoundGeneral(NA_SE_EV_WATER_WALL_BIG - SFX_FLAG, pos, 4, &sWaterfallFreqScaleLerp.value, - &sWaterfallFreqScaleLerp.value, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EV_WATER_WALL_BIG - SFX_FLAG, pos, 4, &sWaterfallFreqScaleLerp.value, + &sWaterfallFreqScaleLerp.value, &gSfxDefaultReverb); } void Audio_StepFreqLerp(FreqLerp* lerp) { @@ -4389,9 +4389,9 @@ void Audio_UpdateRiverSoundVolumes(void) { } } -void Audio_PlaySoundIncreasinglyTransposed(Vec3f* pos, s16 sfxId, u8* semitones) { - Audio_PlaySoundGeneral(sfxId, pos, 4, &gPitchFrequencies[semitones[sAudioIncreasingTranspose] + 39], - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); +void Audio_PlaySfxIncreasinglyTransposed(Vec3f* pos, s16 sfxId, u8* semitones) { + Audio_PlaySfxGeneral(sfxId, pos, 4, &gPitchFrequencies[semitones[sAudioIncreasingTranspose] + 39], + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); if (sAudioIncreasingTranspose < 15) { sAudioIncreasingTranspose++; @@ -4402,9 +4402,9 @@ void Audio_ResetIncreasingTranspose(void) { sAudioIncreasingTranspose = 0; } -void Audio_PlaySoundTransposed(Vec3f* pos, u16 sfxId, s8 semitone) { - Audio_PlaySoundGeneral(sfxId, pos, 4, &gPitchFrequencies[semitone + 39], &gSfxDefaultFreqAndVolScale, - &gSfxDefaultReverb); +void Audio_PlaySfxTransposed(Vec3f* pos, u16 sfxId, s8 semitone) { + Audio_PlaySfxGeneral(sfxId, pos, 4, &gPitchFrequencies[semitone + 39], &gSfxDefaultFreqAndVolScale, + &gSfxDefaultReverb); } void func_800F4C58(Vec3f* pos, u16 sfxId, u8 arg2) { @@ -4418,14 +4418,14 @@ void func_800F4C58(Vec3f* pos, u16 sfxId, u8 arg2) { } for (i = 0; i < gChannelsPerBank[gSfxChannelLayout][bankId]; i++) { - if ((gActiveSounds[bankId][i].entryIndex != 0xFF) && - (sfxId == gSoundBanks[bankId][gActiveSounds[bankId][i].entryIndex].sfxId)) { + if ((gActiveSfx[bankId][i].entryIndex != 0xFF) && + (sfxId == gSfxBanks[bankId][gActiveSfx[bankId][i].entryIndex].sfxId)) { Audio_QueueCmdS8( _SHIFTL(0x6, 24, 8) | _SHIFTL(SEQ_PLAYER_SFX, 16, 8) | _SHIFTL(phi_s1, 8, 8) | _SHIFTL(6, 0, 8), arg2); } phi_s1++; } - Audio_PlaySoundGeneral(sfxId, pos, 4, &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(sfxId, pos, 4, &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } void func_800F4E30(Vec3f* pos, f32 arg1) { @@ -4958,12 +4958,12 @@ void func_800F6268(f32 dist, u16 arg1) { void func_800F64E0(u8 arg0) { D_80130608 = arg0; if (arg0 != 0) { - Audio_PlaySoundGeneral(NA_SE_SY_WIN_OPEN, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_WIN_OPEN, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); Audio_QueueCmdS32(0xF1000000, 0); } else { - Audio_PlaySoundGeneral(NA_SE_SY_WIN_CLOSE, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_WIN_CLOSE, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); Audio_QueueCmdS32(0xF2000000, 0); } } @@ -5044,8 +5044,8 @@ void Audio_SetBaseFilter(u8 filter) { if (filter == 0) { Audio_StopSfxById(NA_SE_PL_IN_BUBBLE); } else if (sAudioBaseFilter == 0) { - Audio_PlaySoundGeneral(NA_SE_PL_IN_BUBBLE, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_PL_IN_BUBBLE, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } } sAudioBaseFilter = filter; @@ -5071,15 +5071,15 @@ void Audio_SetCutsceneFlag(s8 flag) { sAudioCutsceneFlag = flag; } -void Audio_PlaySoundGeneralIfNotInCutscene(u16 sfxId, Vec3f* pos, u8 arg2, f32* freqScale, f32* arg4, s8* reverbAdd) { +void Audio_PlaySfxGeneralIfNotInCutscene(u16 sfxId, Vec3f* pos, u8 arg2, f32* freqScale, f32* arg4, s8* reverbAdd) { if (!sAudioCutsceneFlag) { - Audio_PlaySoundGeneral(sfxId, pos, arg2, freqScale, arg4, reverbAdd); + Audio_PlaySfxGeneral(sfxId, pos, arg2, freqScale, arg4, reverbAdd); } } -void Audio_PlaySoundIfNotInCutscene(u16 sfxId) { - Audio_PlaySoundGeneralIfNotInCutscene(sfxId, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); +void Audio_PlaySfxIfNotInCutscene(u16 sfxId) { + Audio_PlaySfxGeneralIfNotInCutscene(sfxId, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } void func_800F6964(u16 arg0) { @@ -5272,7 +5272,7 @@ void Audio_InitSound(void) { AudioOcarina_ResetStaffs(); Audio_ResetSfxChannelState(); func_800FAEB4(); - Audio_ResetSounds(); + Audio_ResetSfx(); func_800F9280(SEQ_PLAYER_SFX, 0, 0x70, 10); } @@ -5289,7 +5289,7 @@ void func_800F71BC(s32 arg0) { AudioOcarina_ResetStaffs(); Audio_ResetSfxChannelState(); func_800FADF8(); - Audio_ResetSounds(); + Audio_ResetSfx(); } void func_800F7208(void) { diff --git a/src/code/code_800F7260.c b/src/code/code_800F7260.c index d86bef6b2a..c8f24736f8 100644 --- a/src/code/code_800F7260.c +++ b/src/code/code_800F7260.c @@ -9,7 +9,7 @@ typedef struct { /* 0x0C */ f32* freqScale; /* 0x10 */ f32* vol; /* 0x14 */ s8* reverbAdd; -} SoundRequest; // size = 0x18 +} SfxRequest; // size = 0x18 typedef struct { /* 0x00 */ f32 value; @@ -18,33 +18,33 @@ typedef struct { /* 0x0C */ u16 remainingFrames; } UnusedBankLerp; // size = 0x10 -SoundBankEntry D_8016BAD0[9]; -SoundBankEntry D_8016BC80[12]; -SoundBankEntry D_8016BEC0[22]; -SoundBankEntry D_8016C2E0[20]; -SoundBankEntry D_8016C6A0[8]; -SoundBankEntry D_8016C820[3]; -SoundBankEntry D_8016C8B0[5]; -SoundRequest sSoundRequests[0x100]; -u8 sSoundBankListEnd[7]; -u8 sSoundBankFreeListStart[7]; -u8 sSoundBankUnused[7]; -ActiveSound gActiveSounds[7][3]; +SfxBankEntry D_8016BAD0[9]; +SfxBankEntry D_8016BC80[12]; +SfxBankEntry D_8016BEC0[22]; +SfxBankEntry D_8016C2E0[20]; +SfxBankEntry D_8016C6A0[8]; +SfxBankEntry D_8016C820[3]; +SfxBankEntry D_8016C8B0[5]; +SfxRequest sSfxRequests[0x100]; +u8 sSfxBankListEnd[7]; +u8 sSfxBankFreeListStart[7]; +u8 sSfxBankUnused[7]; +ActiveSfx gActiveSfx[7][3]; u8 sCurSfxPlayerChannelIdx; -u8 gSoundBankMuted[7]; +u8 gSfxBankMuted[7]; UnusedBankLerp sUnusedBankLerp[7]; u16 gAudioSfxSwapSource[10]; u16 gAudioSfxSwapTarget[10]; u8 gAudioSfxSwapMode[10]; -void Audio_SetSoundBanksMute(u16 muteMask) { +void Audio_SetSfxBanksMute(u16 muteMask) { u8 bankId; - for (bankId = 0; bankId < ARRAY_COUNT(gSoundBanks); bankId++) { + for (bankId = 0; bankId < ARRAY_COUNT(gSfxBanks); bankId++) { if (muteMask & 1) { - gSoundBankMuted[bankId] = true; + gSfxBankMuted[bankId] = true; } else { - gSoundBankMuted[bankId] = false; + gSfxBankMuted[bankId] = false; } muteMask = muteMask >> 1; } @@ -64,12 +64,12 @@ void Audio_ClearBGMMute(u8 channelIdx) { } } -void Audio_PlaySoundGeneral(u16 sfxId, Vec3f* pos, u8 token, f32* freqScale, f32* vol, s8* reverbAdd) { +void Audio_PlaySfxGeneral(u16 sfxId, Vec3f* pos, u8 token, f32* freqScale, f32* vol, s8* reverbAdd) { u8 i; - SoundRequest* req; + SfxRequest* req; - if (!gSoundBankMuted[SFX_BANK_SHIFT(sfxId)]) { - req = &sSoundRequests[gSoundRequestWriteIndex]; + if (!gSfxBankMuted[SFX_BANK_SHIFT(sfxId)]) { + req = &sSfxRequests[gSfxRequestWriteIndex]; if (!gAudioSfxSwapOff) { for (i = 0; i < 10; i++) { if (sfxId == gAudioSfxSwapSource[i]) { @@ -82,8 +82,8 @@ void Audio_PlaySoundGeneral(u16 sfxId, Vec3f* pos, u8 token, f32* freqScale, f32 req->freqScale = freqScale; req->vol = vol; req->reverbAdd = reverbAdd; - gSoundRequestWriteIndex++; - req = &sSoundRequests[gSoundRequestWriteIndex]; + gSfxRequestWriteIndex++; + req = &sSfxRequests[gSfxRequestWriteIndex]; } i = 10; // "break;" } @@ -95,18 +95,18 @@ void Audio_PlaySoundGeneral(u16 sfxId, Vec3f* pos, u8 token, f32* freqScale, f32 req->freqScale = freqScale; req->vol = vol; req->reverbAdd = reverbAdd; - gSoundRequestWriteIndex++; + gSfxRequestWriteIndex++; } } -void Audio_RemoveMatchingSoundRequests(u8 aspect, SoundBankEntry* cmp) { - SoundRequest* req; +void Audio_RemoveMatchingSfxRequests(u8 aspect, SfxBankEntry* cmp) { + SfxRequest* req; s32 remove; - u8 i = gSoundRequestReadIndex; + u8 i = gSfxRequestReadIndex; - for (; i != gSoundRequestWriteIndex; i++) { + for (; i != gSfxRequestWriteIndex; i++) { remove = false; - req = &sSoundRequests[i]; + req = &sSfxRequests[i]; switch (aspect) { case 0: if (SFX_BANK_MASK(req->sfxId) == SFX_BANK_MASK(cmp->sfxId)) { @@ -145,18 +145,18 @@ void Audio_RemoveMatchingSoundRequests(u8 aspect, SoundBankEntry* cmp) { } } -void Audio_ProcessSoundRequest(void) { +void Audio_ProcessSfxRequest(void) { u16 sfxId; u8 count; u8 index; - SoundRequest* req; - SoundBankEntry* entry; - SoundParams* soundParams; + SfxRequest* req; + SfxBankEntry* entry; + SfxParams* sfxParams; s32 bankId; u8 evictImportance; u8 evictIndex; - req = &sSoundRequests[gSoundRequestReadIndex]; + req = &sSfxRequests[gSfxRequestReadIndex]; evictIndex = 0x80; if (req->sfxId == 0) { return; @@ -167,29 +167,29 @@ void Audio_ProcessSoundRequest(void) { bankId = SFX_BANK(req->sfxId); } count = 0; - index = gSoundBanks[bankId][0].next; + index = gSfxBanks[bankId][0].next; while (index != 0xFF && index != 0) { - if (gSoundBanks[bankId][index].posX == &req->pos->x) { - if ((gSoundParams[SFX_BANK_SHIFT(req->sfxId)][SFX_INDEX(req->sfxId)].params & SFX_FLAG_5) && - gSoundParams[SFX_BANK_SHIFT(req->sfxId)][SFX_INDEX(req->sfxId)].importance == - gSoundBanks[bankId][index].sfxImportance) { + if (gSfxBanks[bankId][index].posX == &req->pos->x) { + if ((gSfxParams[SFX_BANK_SHIFT(req->sfxId)][SFX_INDEX(req->sfxId)].params & SFX_FLAG_5) && + gSfxParams[SFX_BANK_SHIFT(req->sfxId)][SFX_INDEX(req->sfxId)].importance == + gSfxBanks[bankId][index].sfxImportance) { return; } - if (gSoundBanks[bankId][index].sfxId == req->sfxId) { + if (gSfxBanks[bankId][index].sfxId == req->sfxId) { count = gUsedChannelsPerBank[gSfxChannelLayout][bankId]; } else { if (count == 0) { evictIndex = index; - sfxId = gSoundBanks[bankId][index].sfxId & 0xFFFF; - evictImportance = gSoundParams[SFX_BANK_SHIFT(sfxId)][SFX_INDEX(sfxId)].importance; - } else if (gSoundBanks[bankId][index].sfxImportance < evictImportance) { + sfxId = gSfxBanks[bankId][index].sfxId & 0xFFFF; + evictImportance = gSfxParams[SFX_BANK_SHIFT(sfxId)][SFX_INDEX(sfxId)].importance; + } else if (gSfxBanks[bankId][index].sfxImportance < evictImportance) { evictIndex = index; - sfxId = gSoundBanks[bankId][index].sfxId & 0xFFFF; - evictImportance = gSoundParams[SFX_BANK_SHIFT(sfxId)][SFX_INDEX(sfxId)].importance; + sfxId = gSfxBanks[bankId][index].sfxId & 0xFFFF; + evictImportance = gSfxParams[SFX_BANK_SHIFT(sfxId)][SFX_INDEX(sfxId)].importance; } count++; if (count == gUsedChannelsPerBank[gSfxChannelLayout][bankId]) { - if (gSoundParams[SFX_BANK_SHIFT(req->sfxId)][SFX_INDEX(req->sfxId)].importance >= evictImportance) { + if (gSfxParams[SFX_BANK_SHIFT(req->sfxId)][SFX_INDEX(req->sfxId)].importance >= evictImportance) { index = evictIndex; } else { index = 0; @@ -197,34 +197,34 @@ void Audio_ProcessSoundRequest(void) { } } if (count == gUsedChannelsPerBank[gSfxChannelLayout][bankId]) { - soundParams = &gSoundParams[SFX_BANK_SHIFT(req->sfxId)][SFX_INDEX(req->sfxId)]; - if ((req->sfxId & 0xC00) || (soundParams->params & SFX_FLAG_2) || (index == evictIndex)) { - if ((gSoundBanks[bankId][index].sfxParams & SFX_FLAG_3) && - gSoundBanks[bankId][index].state != SFX_STATE_QUEUED) { - Audio_ClearBGMMute(gSoundBanks[bankId][index].channelIdx); + sfxParams = &gSfxParams[SFX_BANK_SHIFT(req->sfxId)][SFX_INDEX(req->sfxId)]; + if ((req->sfxId & 0xC00) || (sfxParams->params & SFX_FLAG_2) || (index == evictIndex)) { + if ((gSfxBanks[bankId][index].sfxParams & SFX_FLAG_3) && + gSfxBanks[bankId][index].state != SFX_STATE_QUEUED) { + Audio_ClearBGMMute(gSfxBanks[bankId][index].channelIdx); } - gSoundBanks[bankId][index].token = req->token; - gSoundBanks[bankId][index].sfxId = req->sfxId; - gSoundBanks[bankId][index].state = SFX_STATE_QUEUED; - gSoundBanks[bankId][index].freshness = 2; - gSoundBanks[bankId][index].freqScale = req->freqScale; - gSoundBanks[bankId][index].vol = req->vol; - gSoundBanks[bankId][index].reverbAdd = req->reverbAdd; - gSoundBanks[bankId][index].sfxParams = soundParams->params; - gSoundBanks[bankId][index].sfxImportance = soundParams->importance; - } else if (gSoundBanks[bankId][index].state == SFX_STATE_PLAYING_2) { - gSoundBanks[bankId][index].state = SFX_STATE_PLAYING_1; + gSfxBanks[bankId][index].token = req->token; + gSfxBanks[bankId][index].sfxId = req->sfxId; + gSfxBanks[bankId][index].state = SFX_STATE_QUEUED; + gSfxBanks[bankId][index].freshness = 2; + gSfxBanks[bankId][index].freqScale = req->freqScale; + gSfxBanks[bankId][index].vol = req->vol; + gSfxBanks[bankId][index].reverbAdd = req->reverbAdd; + gSfxBanks[bankId][index].sfxParams = sfxParams->params; + gSfxBanks[bankId][index].sfxImportance = sfxParams->importance; + } else if (gSfxBanks[bankId][index].state == SFX_STATE_PLAYING_2) { + gSfxBanks[bankId][index].state = SFX_STATE_PLAYING_1; } index = 0; } } if (index != 0) { - index = gSoundBanks[bankId][index].next; + index = gSfxBanks[bankId][index].next; } } - if (gSoundBanks[bankId][sSoundBankFreeListStart[bankId]].next != 0xFF && index != 0) { - index = sSoundBankFreeListStart[bankId]; - entry = &gSoundBanks[bankId][index]; + if (gSfxBanks[bankId][sSfxBankFreeListStart[bankId]].next != 0xFF && index != 0) { + index = sSfxBankFreeListStart[bankId]; + entry = &gSfxBanks[bankId][index]; entry->posX = &req->pos->x; entry->posY = &req->pos->y; entry->posZ = &req->pos->z; @@ -232,85 +232,85 @@ void Audio_ProcessSoundRequest(void) { entry->freqScale = req->freqScale; entry->vol = req->vol; entry->reverbAdd = req->reverbAdd; - soundParams = &gSoundParams[SFX_BANK_SHIFT(req->sfxId)][SFX_INDEX(req->sfxId)]; - entry->sfxParams = soundParams->params; - entry->sfxImportance = soundParams->importance; + sfxParams = &gSfxParams[SFX_BANK_SHIFT(req->sfxId)][SFX_INDEX(req->sfxId)]; + entry->sfxParams = sfxParams->params; + entry->sfxImportance = sfxParams->importance; entry->sfxId = req->sfxId; entry->state = SFX_STATE_QUEUED; entry->freshness = 2; - entry->prev = sSoundBankListEnd[bankId]; - gSoundBanks[bankId][sSoundBankListEnd[bankId]].next = sSoundBankFreeListStart[bankId]; - sSoundBankListEnd[bankId] = sSoundBankFreeListStart[bankId]; - sSoundBankFreeListStart[bankId] = gSoundBanks[bankId][sSoundBankFreeListStart[bankId]].next; - gSoundBanks[bankId][sSoundBankFreeListStart[bankId]].prev = 0xFF; + entry->prev = sSfxBankListEnd[bankId]; + gSfxBanks[bankId][sSfxBankListEnd[bankId]].next = sSfxBankFreeListStart[bankId]; + sSfxBankListEnd[bankId] = sSfxBankFreeListStart[bankId]; + sSfxBankFreeListStart[bankId] = gSfxBanks[bankId][sSfxBankFreeListStart[bankId]].next; + gSfxBanks[bankId][sSfxBankFreeListStart[bankId]].prev = 0xFF; entry->next = 0xFF; } } -void Audio_RemoveSoundBankEntry(u8 bankId, u8 entryIndex) { - SoundBankEntry* entry = &gSoundBanks[bankId][entryIndex]; +void Audio_RemoveSfxBankEntry(u8 bankId, u8 entryIndex) { + SfxBankEntry* entry = &gSfxBanks[bankId][entryIndex]; u8 i; if (entry->sfxParams & SFX_FLAG_3) { Audio_ClearBGMMute(entry->channelIdx); } - if (entryIndex == sSoundBankListEnd[bankId]) { - sSoundBankListEnd[bankId] = entry->prev; + if (entryIndex == sSfxBankListEnd[bankId]) { + sSfxBankListEnd[bankId] = entry->prev; } else { - gSoundBanks[bankId][entry->next].prev = entry->prev; + gSfxBanks[bankId][entry->next].prev = entry->prev; } - gSoundBanks[bankId][entry->prev].next = entry->next; - entry->next = sSoundBankFreeListStart[bankId]; + gSfxBanks[bankId][entry->prev].next = entry->next; + entry->next = sSfxBankFreeListStart[bankId]; entry->prev = 0xFF; - gSoundBanks[bankId][sSoundBankFreeListStart[bankId]].prev = entryIndex; - sSoundBankFreeListStart[bankId] = entryIndex; + gSfxBanks[bankId][sSfxBankFreeListStart[bankId]].prev = entryIndex; + sSfxBankFreeListStart[bankId] = entryIndex; entry->state = SFX_STATE_EMPTY; for (i = 0; i < gChannelsPerBank[gSfxChannelLayout][bankId]; i++) { - if (gActiveSounds[bankId][i].entryIndex == entryIndex) { - gActiveSounds[bankId][i].entryIndex = 0xFF; + if (gActiveSfx[bankId][i].entryIndex == entryIndex) { + gActiveSfx[bankId][i].entryIndex = 0xFF; i = gChannelsPerBank[gSfxChannelLayout][bankId]; } } } -void Audio_ChooseActiveSounds(u8 bankId) { - u8 numChosenSounds; +void Audio_ChooseActiveSfx(u8 bankId) { + u8 numChosenSfx; u8 numChannels; u8 entryIndex; u8 i; u8 j; u8 k; u8 sfxImportance; - u8 needNewSound; + u8 needNewSfx; u8 chosenEntryIndex; u16 temp3; f32 tempf1; - SoundBankEntry* entry; - ActiveSound chosenSounds[MAX_CHANNELS_PER_BANK]; - ActiveSound* activeSound; + SfxBankEntry* entry; + ActiveSfx chosenSfx[MAX_CHANNELS_PER_BANK]; + ActiveSfx* activeSfx; s32 pad; - numChosenSounds = 0; + numChosenSfx = 0; for (i = 0; i < MAX_CHANNELS_PER_BANK; i++) { - chosenSounds[i].priority = 0x7FFFFFFF; - chosenSounds[i].entryIndex = 0xFF; + chosenSfx[i].priority = 0x7FFFFFFF; + chosenSfx[i].entryIndex = 0xFF; } - entryIndex = gSoundBanks[bankId][0].next; + entryIndex = gSfxBanks[bankId][0].next; k = 0; while (entryIndex != 0xFF) { - if ((gSoundBanks[bankId][entryIndex].state == SFX_STATE_QUEUED) && - (gSoundBanks[bankId][entryIndex].sfxId & 0xC00)) { - gSoundBanks[bankId][entryIndex].freshness--; - } else if (!(gSoundBanks[bankId][entryIndex].sfxId & 0xC00) && - (gSoundBanks[bankId][entryIndex].state == SFX_STATE_PLAYING_2)) { - Audio_QueueCmdS8((gSoundBanks[bankId][entryIndex].channelIdx << 8) | 0x6020000, 0); - Audio_RemoveSoundBankEntry(bankId, entryIndex); + if ((gSfxBanks[bankId][entryIndex].state == SFX_STATE_QUEUED) && + (gSfxBanks[bankId][entryIndex].sfxId & 0xC00)) { + gSfxBanks[bankId][entryIndex].freshness--; + } else if (!(gSfxBanks[bankId][entryIndex].sfxId & 0xC00) && + (gSfxBanks[bankId][entryIndex].state == SFX_STATE_PLAYING_2)) { + Audio_QueueCmdS8((gSfxBanks[bankId][entryIndex].channelIdx << 8) | 0x6020000, 0); + Audio_RemoveSfxBankEntry(bankId, entryIndex); } - if (gSoundBanks[bankId][entryIndex].freshness == 0) { - Audio_RemoveSoundBankEntry(bankId, entryIndex); - } else if (gSoundBanks[bankId][entryIndex].state != SFX_STATE_EMPTY) { - entry = &gSoundBanks[bankId][entryIndex]; + if (gSfxBanks[bankId][entryIndex].freshness == 0) { + Audio_RemoveSfxBankEntry(bankId, entryIndex); + } else if (gSfxBanks[bankId][entryIndex].state != SFX_STATE_EMPTY) { + entry = &gSfxBanks[bankId][entryIndex]; if (&gSfxDefaultPos.x == entry[0].posX) { entry->dist = 0.0f; @@ -338,33 +338,33 @@ void Audio_ChooseActiveSounds(u8 bankId) { if (entry->state == SFX_STATE_PLAYING_1) { Audio_QueueCmdS8((entry->channelIdx << 8) | 0x6020000, 0); if (entry->sfxId & 0xC00) { - Audio_RemoveSoundBankEntry(bankId, entryIndex); + Audio_RemoveSfxBankEntry(bankId, entryIndex); entryIndex = k; } } } else { numChannels = gChannelsPerBank[gSfxChannelLayout][bankId]; for (i = 0; i < numChannels; i++) { - if (chosenSounds[i].priority >= entry->priority) { - if (numChosenSounds < gChannelsPerBank[gSfxChannelLayout][bankId]) { - numChosenSounds++; + if (chosenSfx[i].priority >= entry->priority) { + if (numChosenSfx < gChannelsPerBank[gSfxChannelLayout][bankId]) { + numChosenSfx++; } for (j = numChannels - 1; j > i; j--) { - chosenSounds[j].priority = chosenSounds[j - 1].priority; - chosenSounds[j].entryIndex = chosenSounds[j - 1].entryIndex; + chosenSfx[j].priority = chosenSfx[j - 1].priority; + chosenSfx[j].entryIndex = chosenSfx[j - 1].entryIndex; } - chosenSounds[i].priority = entry->priority; - chosenSounds[i].entryIndex = entryIndex; + chosenSfx[i].priority = entry->priority; + chosenSfx[i].entryIndex = entryIndex; i = numChannels; // "break;" } } } k = entryIndex; } - entryIndex = gSoundBanks[bankId][k].next; + entryIndex = gSfxBanks[bankId][k].next; } - for (i = 0; i < numChosenSounds; i++) { - entry = &gSoundBanks[bankId][chosenSounds[i].entryIndex]; + for (i = 0; i < numChosenSfx; i++) { + entry = &gSfxBanks[bankId][chosenSfx[i].entryIndex]; if (entry->state == SFX_STATE_QUEUED) { entry->state = SFX_STATE_READY; } else if (entry->state == SFX_STATE_PLAYING_1) { @@ -375,72 +375,72 @@ void Audio_ChooseActiveSounds(u8 bankId) { // Pick something to play for all channels. numChannels = gChannelsPerBank[gSfxChannelLayout][bankId]; for (i = 0; i < numChannels; i++) { - needNewSound = false; - activeSound = &gActiveSounds[bankId][i]; + needNewSfx = false; + activeSfx = &gActiveSfx[bankId][i]; - if (activeSound->entryIndex == 0xFF) { - needNewSound = true; + if (activeSfx->entryIndex == 0xFF) { + needNewSfx = true; } else { - entry = &gSoundBanks[bankId][activeSound[0].entryIndex]; + entry = &gSfxBanks[bankId][activeSfx[0].entryIndex]; if (entry->state == SFX_STATE_PLAYING_1) { if (entry->sfxId & 0xC00) { - Audio_RemoveSoundBankEntry(bankId, activeSound->entryIndex); + Audio_RemoveSfxBankEntry(bankId, activeSfx->entryIndex); } else { entry->state = SFX_STATE_QUEUED; } - needNewSound = true; + needNewSfx = true; } else if (entry->state == SFX_STATE_EMPTY) { - activeSound->entryIndex = 0xFF; - needNewSound = true; + activeSfx->entryIndex = 0xFF; + needNewSfx = true; } else { - // Sound is already playing as it should, nothing to do. + // Sfx is already playing as it should, nothing to do. for (j = 0; j < numChannels; j++) { - if (activeSound->entryIndex == chosenSounds[j].entryIndex) { - chosenSounds[j].entryIndex = 0xFF; + if (activeSfx->entryIndex == chosenSfx[j].entryIndex) { + chosenSfx[j].entryIndex = 0xFF; j = numChannels; } } - numChosenSounds--; + numChosenSfx--; } } - if (needNewSound == true) { + if (needNewSfx == true) { for (j = 0; j < numChannels; j++) { - chosenEntryIndex = chosenSounds[j].entryIndex; + chosenEntryIndex = chosenSfx[j].entryIndex; if ((chosenEntryIndex != 0xFF) && - (gSoundBanks[bankId][chosenEntryIndex].state != SFX_STATE_PLAYING_REFRESH)) { + (gSfxBanks[bankId][chosenEntryIndex].state != SFX_STATE_PLAYING_REFRESH)) { for (k = 0; k < numChannels; k++) { - if (chosenEntryIndex == gActiveSounds[bankId][k].entryIndex) { - needNewSound = false; + if (chosenEntryIndex == gActiveSfx[bankId][k].entryIndex) { + needNewSfx = false; k = numChannels; // "break;" } } - if (needNewSound == true) { - activeSound->entryIndex = chosenEntryIndex; - chosenSounds[j].entryIndex = 0xFF; + if (needNewSfx == true) { + activeSfx->entryIndex = chosenEntryIndex; + chosenSfx[j].entryIndex = 0xFF; j = numChannels + 1; - numChosenSounds--; + numChosenSfx--; } } } if (j == numChannels) { // nothing found - activeSound->entryIndex = 0xFF; + activeSfx->entryIndex = 0xFF; } } } } -void Audio_PlayActiveSounds(u8 bankId) { +void Audio_PlayActiveSfx(u8 bankId) { u8 entryIndex; SequenceChannel* channel; - SoundBankEntry* entry; + SfxBankEntry* entry; u8 i; for (i = 0; i < gChannelsPerBank[gSfxChannelLayout][bankId]; i++) { - entryIndex = gActiveSounds[bankId][i].entryIndex; + entryIndex = gActiveSfx[bankId][i].entryIndex; if (entryIndex != 0xFF) { - entry = &gSoundBanks[bankId][entryIndex]; + entry = &gSfxBanks[bankId][entryIndex]; channel = gAudioContext.seqPlayers[SEQ_PLAYER_SFX].channels[sCurSfxPlayerChannelIdx]; if (entry->state == SFX_STATE_READY) { entry->channelIdx = sCurSfxPlayerChannelIdx; @@ -463,11 +463,11 @@ void Audio_PlayActiveSounds(u8 bankId) { break; } } - Audio_SetSoundProperties(bankId, entryIndex, sCurSfxPlayerChannelIdx); + Audio_SetSfxProperties(bankId, entryIndex, sCurSfxPlayerChannelIdx); Audio_QueueCmdS8(0x6 << 24 | SEQ_PLAYER_SFX << 16 | ((sCurSfxPlayerChannelIdx & 0xFF) << 8), 1); Audio_QueueCmdS8(0x6 << 24 | SEQ_PLAYER_SFX << 16 | ((sCurSfxPlayerChannelIdx & 0xFF) << 8) | 4, entry->sfxId & 0xFF); - if (gIsLargeSoundBank[bankId]) { + if (gIsLargeSfxBank[bankId]) { Audio_QueueCmdS8(0x6 << 24 | SEQ_PLAYER_SFX << 16 | ((sCurSfxPlayerChannelIdx & 0xFF) << 8) | 5, (entry->sfxId & 0x100) >> 8); } @@ -477,9 +477,9 @@ void Audio_PlayActiveSounds(u8 bankId) { entry->state = SFX_STATE_PLAYING_2; } } else if ((u8)channel->soundScriptIO[1] == 0xFF) { - Audio_RemoveSoundBankEntry(bankId, entryIndex); + Audio_RemoveSfxBankEntry(bankId, entryIndex); } else if (entry->state == SFX_STATE_PLAYING_REFRESH) { - Audio_SetSoundProperties(bankId, entryIndex, sCurSfxPlayerChannelIdx); + Audio_SetSfxProperties(bankId, entryIndex, sCurSfxPlayerChannelIdx); if (entry->sfxId & 0xC00) { entry->state = SFX_STATE_PLAYING_1; } else { @@ -492,149 +492,149 @@ void Audio_PlayActiveSounds(u8 bankId) { } void Audio_StopSfxByBank(u8 bankId) { - SoundBankEntry* entry; + SfxBankEntry* entry; s32 pad; - SoundBankEntry cmp; - u8 entryIndex = gSoundBanks[bankId][0].next; + SfxBankEntry cmp; + u8 entryIndex = gSfxBanks[bankId][0].next; while (entryIndex != 0xFF) { - entry = &gSoundBanks[bankId][entryIndex]; + entry = &gSfxBanks[bankId][entryIndex]; if (entry->state >= SFX_STATE_PLAYING_REFRESH) { Audio_QueueCmdS8(0x6 << 24 | SEQ_PLAYER_SFX << 16 | ((entry->channelIdx & 0xFF) << 8), 0); } if (entry->state != SFX_STATE_EMPTY) { - Audio_RemoveSoundBankEntry(bankId, entryIndex); + Audio_RemoveSfxBankEntry(bankId, entryIndex); } - entryIndex = gSoundBanks[bankId][0].next; + entryIndex = gSfxBanks[bankId][0].next; } cmp.sfxId = bankId << 12; - Audio_RemoveMatchingSoundRequests(0, &cmp); + Audio_RemoveMatchingSfxRequests(0, &cmp); } void func_800F8884(u8 bankId, Vec3f* pos) { - SoundBankEntry* entry; - u8 entryIndex = gSoundBanks[bankId][0].next; + SfxBankEntry* entry; + u8 entryIndex = gSfxBanks[bankId][0].next; u8 prevEntryIndex = 0; while (entryIndex != 0xFF) { - entry = &gSoundBanks[bankId][entryIndex]; + entry = &gSfxBanks[bankId][entryIndex]; if (entry->posX == &pos->x) { if (entry->state >= SFX_STATE_PLAYING_REFRESH) { Audio_QueueCmdS8(0x6 << 24 | SEQ_PLAYER_SFX << 16 | ((entry->channelIdx & 0xFF) << 8), 0); } if (entry->state != SFX_STATE_EMPTY) { - Audio_RemoveSoundBankEntry(bankId, entryIndex); + Audio_RemoveSfxBankEntry(bankId, entryIndex); } } else { prevEntryIndex = entryIndex; } - entryIndex = gSoundBanks[bankId][prevEntryIndex].next; + entryIndex = gSfxBanks[bankId][prevEntryIndex].next; } } void Audio_StopSfxByPosAndBank(u8 bankId, Vec3f* pos) { - SoundBankEntry cmp; + SfxBankEntry cmp; func_800F8884(bankId, pos); cmp.sfxId = bankId << 12; cmp.posX = &pos->x; - Audio_RemoveMatchingSoundRequests(1, &cmp); + Audio_RemoveMatchingSfxRequests(1, &cmp); } void Audio_StopSfxByPos(Vec3f* pos) { u8 i; - SoundBankEntry cmp; + SfxBankEntry cmp; - for (i = 0; i < ARRAY_COUNT(gSoundBanks); i++) { + for (i = 0; i < ARRAY_COUNT(gSfxBanks); i++) { func_800F8884(i, pos); } cmp.posX = &pos->x; - Audio_RemoveMatchingSoundRequests(2, &cmp); + Audio_RemoveMatchingSfxRequests(2, &cmp); } void Audio_StopSfxByPosAndId(Vec3f* pos, u16 sfxId) { - SoundBankEntry* entry; - u8 entryIndex = gSoundBanks[SFX_BANK(sfxId)][0].next; + SfxBankEntry* entry; + u8 entryIndex = gSfxBanks[SFX_BANK(sfxId)][0].next; u8 prevEntryIndex = 0; - SoundBankEntry cmp; + SfxBankEntry cmp; while (entryIndex != 0xFF) { - entry = &gSoundBanks[SFX_BANK(sfxId)][entryIndex]; + entry = &gSfxBanks[SFX_BANK(sfxId)][entryIndex]; if (entry->posX == &pos->x && entry->sfxId == sfxId) { if (entry->state >= SFX_STATE_PLAYING_REFRESH) { Audio_QueueCmdS8(0x6 << 24 | SEQ_PLAYER_SFX << 16 | ((entry->channelIdx & 0xFF) << 8), 0); } if (entry->state != SFX_STATE_EMPTY) { - Audio_RemoveSoundBankEntry(SFX_BANK(sfxId), entryIndex); + Audio_RemoveSfxBankEntry(SFX_BANK(sfxId), entryIndex); } entryIndex = 0xFF; } else { prevEntryIndex = entryIndex; } if (entryIndex != 0xFF) { - entryIndex = gSoundBanks[SFX_BANK(sfxId)][prevEntryIndex].next; + entryIndex = gSfxBanks[SFX_BANK(sfxId)][prevEntryIndex].next; } } cmp.posX = &pos->x; cmp.sfxId = sfxId; - Audio_RemoveMatchingSoundRequests(3, &cmp); + Audio_RemoveMatchingSfxRequests(3, &cmp); } void Audio_StopSfxByTokenAndId(u8 token, u16 sfxId) { - SoundBankEntry* entry; - u8 entryIndex = gSoundBanks[SFX_BANK(sfxId)][0].next; + SfxBankEntry* entry; + u8 entryIndex = gSfxBanks[SFX_BANK(sfxId)][0].next; u8 prevEntryIndex = 0; - SoundBankEntry cmp; + SfxBankEntry cmp; while (entryIndex != 0xFF) { - entry = &gSoundBanks[SFX_BANK(sfxId)][entryIndex]; + entry = &gSfxBanks[SFX_BANK(sfxId)][entryIndex]; if (entry->token == token && entry->sfxId == sfxId) { if (entry->state >= SFX_STATE_PLAYING_REFRESH) { Audio_QueueCmdS8(0x6 << 24 | SEQ_PLAYER_SFX << 16 | ((entry->channelIdx & 0xFF) << 8), 0); } if (entry->state != SFX_STATE_EMPTY) { - Audio_RemoveSoundBankEntry(SFX_BANK(sfxId), entryIndex); + Audio_RemoveSfxBankEntry(SFX_BANK(sfxId), entryIndex); } } else { prevEntryIndex = entryIndex; } if (entryIndex != 0xFF) { - entryIndex = gSoundBanks[SFX_BANK(sfxId)][prevEntryIndex].next; + entryIndex = gSfxBanks[SFX_BANK(sfxId)][prevEntryIndex].next; } } cmp.token = token; cmp.sfxId = sfxId; - Audio_RemoveMatchingSoundRequests(4, &cmp); + Audio_RemoveMatchingSfxRequests(4, &cmp); } void Audio_StopSfxById(u32 sfxId) { - SoundBankEntry* entry; - u8 entryIndex = gSoundBanks[SFX_BANK(sfxId)][0].next; + SfxBankEntry* entry; + u8 entryIndex = gSfxBanks[SFX_BANK(sfxId)][0].next; u8 prevEntryIndex = 0; - SoundBankEntry cmp; + SfxBankEntry cmp; while (entryIndex != 0xFF) { - entry = &gSoundBanks[SFX_BANK(sfxId)][entryIndex]; + entry = &gSfxBanks[SFX_BANK(sfxId)][entryIndex]; if (entry->sfxId == sfxId) { if (entry->state >= SFX_STATE_PLAYING_REFRESH) { Audio_QueueCmdS8(0x6 << 24 | SEQ_PLAYER_SFX << 16 | ((entry->channelIdx & 0xFF) << 8), 0); } if (entry->state != SFX_STATE_EMPTY) { - Audio_RemoveSoundBankEntry(SFX_BANK(sfxId), entryIndex); + Audio_RemoveSfxBankEntry(SFX_BANK(sfxId), entryIndex); } } else { prevEntryIndex = entryIndex; } - entryIndex = gSoundBanks[SFX_BANK(sfxId)][prevEntryIndex].next; + entryIndex = gSfxBanks[SFX_BANK(sfxId)][prevEntryIndex].next; } cmp.sfxId = sfxId; - Audio_RemoveMatchingSoundRequests(5, &cmp); + Audio_RemoveMatchingSfxRequests(5, &cmp); } -void Audio_ProcessSoundRequests(void) { - while (gSoundRequestWriteIndex != gSoundRequestReadIndex) { - Audio_ProcessSoundRequest(); - gSoundRequestReadIndex++; +void Audio_ProcessSfxRequests(void) { + while (gSfxRequestWriteIndex != gSfxRequestReadIndex) { + Audio_ProcessSfxRequest(); + gSfxRequestReadIndex++; } } @@ -663,20 +663,20 @@ void func_800F8F88(void) { if (IS_SEQUENCE_CHANNEL_VALID(gAudioContext.seqPlayers[SEQ_PLAYER_SFX].channels[0])) { sCurSfxPlayerChannelIdx = 0; - for (bankId = 0; bankId < ARRAY_COUNT(gSoundBanks); bankId++) { - Audio_ChooseActiveSounds(bankId); - Audio_PlayActiveSounds(bankId); + for (bankId = 0; bankId < ARRAY_COUNT(gSfxBanks); bankId++) { + Audio_ChooseActiveSfx(bankId); + Audio_PlayActiveSfx(bankId); Audio_StepUnusedBankLerp(bankId); } } } u8 Audio_IsSfxPlaying(u32 sfxId) { - SoundBankEntry* entry; - u8 entryIndex = gSoundBanks[SFX_BANK(sfxId)][0].next; + SfxBankEntry* entry; + u8 entryIndex = gSfxBanks[SFX_BANK(sfxId)][0].next; while (entryIndex != 0xFF) { - entry = &gSoundBanks[SFX_BANK(sfxId)][entryIndex]; + entry = &gSfxBanks[SFX_BANK(sfxId)][entryIndex]; if (entry->sfxId == sfxId) { return true; } @@ -685,36 +685,36 @@ u8 Audio_IsSfxPlaying(u32 sfxId) { return false; } -void Audio_ResetSounds(void) { +void Audio_ResetSfx(void) { u8 bankId; u8 i; u8 entryIndex; - gSoundRequestWriteIndex = 0; - gSoundRequestReadIndex = 0; + gSfxRequestWriteIndex = 0; + gSfxRequestReadIndex = 0; D_801333D0 = 0; - for (bankId = 0; bankId < ARRAY_COUNT(gSoundBanks); bankId++) { - sSoundBankListEnd[bankId] = 0; - sSoundBankFreeListStart[bankId] = 1; - sSoundBankUnused[bankId] = 0; - gSoundBankMuted[bankId] = false; + for (bankId = 0; bankId < ARRAY_COUNT(gSfxBanks); bankId++) { + sSfxBankListEnd[bankId] = 0; + sSfxBankFreeListStart[bankId] = 1; + sSfxBankUnused[bankId] = 0; + gSfxBankMuted[bankId] = false; sUnusedBankLerp[bankId].value = 1.0f; sUnusedBankLerp[bankId].remainingFrames = 0; } - for (bankId = 0; bankId < ARRAY_COUNT(gSoundBanks); bankId++) { + for (bankId = 0; bankId < ARRAY_COUNT(gSfxBanks); bankId++) { for (i = 0; i < MAX_CHANNELS_PER_BANK; i++) { - gActiveSounds[bankId][i].entryIndex = 0xFF; + gActiveSfx[bankId][i].entryIndex = 0xFF; } } - for (bankId = 0; bankId < ARRAY_COUNT(gSoundBanks); bankId++) { - gSoundBanks[bankId][0].prev = 0xFF; - gSoundBanks[bankId][0].next = 0xFF; - for (i = 1; i < gSoundBankSizes[bankId] - 1; i++) { - gSoundBanks[bankId][i].prev = i - 1; - gSoundBanks[bankId][i].next = i + 1; + for (bankId = 0; bankId < ARRAY_COUNT(gSfxBanks); bankId++) { + gSfxBanks[bankId][0].prev = 0xFF; + gSfxBanks[bankId][0].next = 0xFF; + for (i = 1; i < gSfxBankSizes[bankId] - 1; i++) { + gSfxBanks[bankId][i].prev = i - 1; + gSfxBanks[bankId][i].next = i + 1; } - gSoundBanks[bankId][i].prev = i - 1; - gSoundBanks[bankId][i].next = 0xFF; + gSfxBanks[bankId][i].prev = i - 1; + gSfxBanks[bankId][i].next = 0xFF; } if (D_801333F8 == 0) { for (bankId = 0; bankId < 10; bankId++) { diff --git a/src/code/db_camera.c b/src/code/db_camera.c index 89451e0435..1ddb1a97cc 100644 --- a/src/code/db_camera.c +++ b/src/code/db_camera.c @@ -361,8 +361,8 @@ void func_800B44E0(DbCamera* dbCamera, Camera* cam) { if (dbCamera->sub.nPoints < 6) { if (sDbCamAnim.unk_0A != 0) { - Audio_PlaySoundGeneral(NA_SE_SY_ERROR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_ERROR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); sDbCamAnim.unk_0A = 0; } func_8006376C(0x11, 0x17, 3, D_8012CEE0[0]); @@ -376,8 +376,8 @@ void func_800B44E0(DbCamera* dbCamera, Camera* cam) { !func_800BB2B4(&sDbCamAnim.lookAtPos, &sDbCamAnim.roll, &sDbCamAnim.fov, dbCamera->sub.lookAt, &sDbCamAnim.keyframe, &sDbCamAnim.curFrame) && sDbCamAnim.unk_0A == 1) { - Audio_PlaySoundGeneral(NA_SE_SY_HP_RECOVER, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_HP_RECOVER, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); sDbCamAnim.unk_04++; if (dbCamera->sub.nFrames > 0 && dbCamera->sub.nFrames < sDbCamAnim.unk_04) { @@ -605,8 +605,8 @@ void DbCamera_Update(DbCamera* dbCamera, Camera* cam) { dbCamera->unk_40 = -1; dbCamera->sub.demoCtrlActionIdx = 0; sDbCamAnim.unk_0A = 0; - Audio_PlaySoundGeneral(NA_SE_SY_LOCK_ON, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_LOCK_ON, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } else if (dbCamera->unk_38 == -1) { dbCamera->unk_38 = 1; } else { @@ -926,25 +926,25 @@ void DbCamera_Update(DbCamera* dbCamera, Camera* cam) { dbCamera->unk_1C.z = 0.0f; dbCamera->unk_1C.y = 1.0f; } else if (dbCamera->sub.unk_08 == 2) { - Audio_PlaySoundGeneral(NA_SE_SY_CURSOR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_CURSOR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); dbCamera->sub.unk_08 = 0; func_800B41DC(dbCamera, dbCamera->sub.unkIdx, cam); } else { if (CHECK_BTN_ALL(sPlay->state.input[2].press.button, BTN_R) && CHECK_BTN_ALL(sPlay->state.input[2].cur.button, BTN_L)) { - Audio_PlaySoundGeneral(NA_SE_SY_CANCEL, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_CANCEL, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); dbCamera->sub.nPoints = dbCamera->sub.unkIdx + 1; func_800B4088(dbCamera, cam); } else if (CHECK_BTN_ALL(sPlay->state.input[2].press.button, BTN_R)) { if (dbCamera->sub.unkIdx == 0x80) { - Audio_PlaySoundGeneral(NA_SE_SY_ERROR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_ERROR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } else { - Audio_PlaySoundGeneral(NA_SE_IT_SWORD_PUTAWAY, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_IT_SWORD_PUTAWAY, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); func_800B42C0(dbCamera, cam); if (dbCamera->sub.unkIdx == (dbCamera->sub.nPoints - 1)) { dbCamera->sub.unkIdx++; @@ -997,8 +997,8 @@ void DbCamera_Update(DbCamera* dbCamera, Camera* cam) { } else { if (CHECK_BTN_ALL(sPlay->state.input[2].press.button, BTN_CRIGHT) && CHECK_BTN_ALL(sPlay->state.input[2].cur.button, BTN_L)) { - Audio_PlaySoundGeneral(NA_SE_SY_GET_RUPY, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_GET_RUPY, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); osSyncPrintf("@@@\n@@@\n@@@/* *** spline point data ** start here *** */\n@@@\n"); DbCamera_PrintPoints("Lookat", dbCamera->sub.nPoints, dbCamera->sub.lookAt); DbCamera_PrintPoints("Position", dbCamera->sub.nPoints, dbCamera->sub.position); @@ -1007,15 +1007,15 @@ void DbCamera_Update(DbCamera* dbCamera, Camera* cam) { osSyncPrintf("@@@static short Mode = %d;\n@@@\n", dbCamera->sub.mode); osSyncPrintf("@@@\n@@@\n@@@/* *** spline point data ** finish! *** */\n@@@\n"); } else if (CHECK_BTN_ALL(sPlay->state.input[2].press.button, BTN_CLEFT)) { - Audio_PlaySoundGeneral(NA_SE_SY_CURSOR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_CURSOR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); dbCamera->sub.unk_08 = (dbCamera->sub.unk_08 + 1) % 3; } if (CHECK_BTN_ALL(sPlay->state.input[2].press.button, BTN_CUP) && CHECK_BTN_ALL(sPlay->state.input[2].cur.button, BTN_L)) { - Audio_PlaySoundGeneral(NA_SE_IT_SWORD_IMPACT, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_IT_SWORD_IMPACT, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); if (dbCamera->sub.unkIdx > 0) { dbCamera->sub.unkIdx--; } else { @@ -1023,8 +1023,8 @@ void DbCamera_Update(DbCamera* dbCamera, Camera* cam) { } } else { if (CHECK_BTN_ALL(sPlay->state.input[2].press.button, BTN_CUP)) { - Audio_PlaySoundGeneral(NA_SE_IT_SWORD_IMPACT, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_IT_SWORD_IMPACT, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); if (dbCamera->sub.unkIdx > 0) { dbCamera->sub.unkIdx--; } else { @@ -1045,8 +1045,8 @@ void DbCamera_Update(DbCamera* dbCamera, Camera* cam) { } if (CHECK_BTN_ALL(sPlay->state.input[2].cur.button, BTN_L) && CHECK_BTN_ALL(sPlay->state.input[2].press.button, BTN_CDOWN)) { - Audio_PlaySoundGeneral(NA_SE_IT_SWORD_IMPACT, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_IT_SWORD_IMPACT, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); if (dbCamera->sub.unkIdx < (dbCamera->sub.nPoints - 1)) { dbCamera->sub.unkIdx++; } else { @@ -1054,8 +1054,8 @@ void DbCamera_Update(DbCamera* dbCamera, Camera* cam) { } } else { if (CHECK_BTN_ALL(sPlay->state.input[2].press.button, BTN_CDOWN)) { - Audio_PlaySoundGeneral(NA_SE_IT_SWORD_IMPACT, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_IT_SWORD_IMPACT, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); if (dbCamera->sub.unkIdx < (dbCamera->sub.nPoints - 1)) { dbCamera->sub.unkIdx++; } else { @@ -1124,8 +1124,8 @@ void DbCamera_Update(DbCamera* dbCamera, Camera* cam) { case 1: dbCamera->unk_3C = true; if (CHECK_BTN_ALL(sPlay->state.input[2].press.button, BTN_DUP)) { - Audio_PlaySoundGeneral(NA_SE_SY_ATTENTION_ON, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_ATTENTION_ON, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); if (dbCamera->sub.unk_0A == 0) { dbCamera->sub.unk_0A = 5; } else { @@ -1133,8 +1133,8 @@ void DbCamera_Update(DbCamera* dbCamera, Camera* cam) { } } if (CHECK_BTN_ALL(sPlay->state.input[2].press.button, BTN_DDOWN)) { - Audio_PlaySoundGeneral(NA_SE_SY_ATTENTION_ON, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_ATTENTION_ON, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); if (dbCamera->sub.unk_0A == 5) { dbCamera->sub.unk_0A = 0; } else { @@ -1142,8 +1142,8 @@ void DbCamera_Update(DbCamera* dbCamera, Camera* cam) { } } if (CHECK_BTN_ALL(sPlay->state.input[2].press.button, BTN_DLEFT)) { - Audio_PlaySoundGeneral(NA_SE_SY_ATTENTION_ON, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_ATTENTION_ON, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); switch (dbCamera->sub.unk_0A) { case 1: if (CHECK_BTN_ALL(sPlay->state.input[2].cur.button, BTN_L)) { @@ -1192,9 +1192,8 @@ void DbCamera_Update(DbCamera* dbCamera, Camera* cam) { if (CHECK_BTN_ALL(sPlay->state.input[2].cur.button, BTN_DLEFT)) { if ((D_8012D10C++ % 5) == 0) { - Audio_PlaySoundGeneral(NA_SE_SY_ATTENTION_ON, &gSfxDefaultPos, 4, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_ATTENTION_ON, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } switch (dbCamera->sub.unk_0A) { @@ -1231,8 +1230,8 @@ void DbCamera_Update(DbCamera* dbCamera, Camera* cam) { } if (CHECK_BTN_ALL(sPlay->state.input[2].press.button, BTN_DRIGHT)) { - Audio_PlaySoundGeneral(NA_SE_SY_ATTENTION_ON, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_ATTENTION_ON, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); switch (dbCamera->sub.unk_0A) { case 1: @@ -1281,9 +1280,8 @@ void DbCamera_Update(DbCamera* dbCamera, Camera* cam) { } if (CHECK_BTN_ALL(sPlay->state.input[2].cur.button, BTN_DRIGHT)) { if ((D_8012D10C++ % 5) == 0) { - Audio_PlaySoundGeneral(NA_SE_SY_ATTENTION_ON, &gSfxDefaultPos, 4, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_ATTENTION_ON, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } switch (dbCamera->sub.unk_0A) { @@ -1435,8 +1433,8 @@ void DbCamera_Update(DbCamera* dbCamera, Camera* cam) { dbCamera->fov = 60.0f; dbCamera->rollDegrees = dbCamera->roll * 1.40625f; if (CHECK_BTN_ALL(sPlay->state.input[2].press.button, BTN_CLEFT)) { - Audio_PlaySoundGeneral(NA_SE_SY_CURSOR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_CURSOR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); dbCamera->unk_78 = (dbCamera->unk_78 + 1) % 3; dbCamera->unk_38 = -1; } @@ -1717,8 +1715,8 @@ void DbCamera_DrawSlotLetters(char* str, s16 y, s16 x, s32 colorIndex) { void DbCamera_PrintAllCuts(Camera* cam) { s32 i; - Audio_PlaySoundGeneral(NA_SE_SY_GET_RUPY, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_GET_RUPY, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); osSyncPrintf("@@@\n@@@\n@@@/* ****** spline point data ** start here ***** */\n@@@\n"); for (i = 0; i < ARRAY_COUNT(sDbCameraCuts) - 1; i++) { @@ -1865,8 +1863,8 @@ s32 DbCamera_UpdateDemoControl(DbCamera* dbCamera, Camera* cam) { if ((1 << sCurFileIdx) & sMempakFiles) { if (CHECK_BTN_ALL(sPlay->state.input[2].press.button, BTN_DLEFT) || CHECK_BTN_ALL(sPlay->state.input[2].press.button, BTN_DRIGHT)) { - Audio_PlaySoundGeneral(NA_SE_SY_CURSOR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_CURSOR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); dbCamera->sub.demoCtrlToggleSwitch ^= 1; } D_8012CEE0[41][9] = sCurFileIdx + 'A'; @@ -1879,12 +1877,12 @@ s32 DbCamera_UpdateDemoControl(DbCamera* dbCamera, Camera* cam) { if (CHECK_BTN_ALL(sPlay->state.input[2].press.button, BTN_A)) { if (dbCamera->sub.demoCtrlToggleSwitch == 0) { - Audio_PlaySoundGeneral(NA_SE_SY_DECIDE, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_DECIDE, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); dbCamera->sub.demoCtrlMenu++; } else { - Audio_PlaySoundGeneral(NA_SE_SY_CANCEL, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_CANCEL, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); dbCamera->sub.demoCtrlMenu = 0; } } @@ -1900,8 +1898,8 @@ s32 DbCamera_UpdateDemoControl(DbCamera* dbCamera, Camera* cam) { } } if (CHECK_BTN_ALL(sPlay->state.input[2].press.button, BTN_B)) { - Audio_PlaySoundGeneral(NA_SE_SY_CANCEL, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_CANCEL, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); dbCamera->sub.demoCtrlMenu = 0; return 1; } @@ -1937,8 +1935,8 @@ s32 DbCamera_UpdateDemoControl(DbCamera* dbCamera, Camera* cam) { if (CHECK_BTN_ALL(sPlay->state.input[2].press.button, BTN_A) || CHECK_BTN_ALL(sPlay->state.input[2].press.button, BTN_B)) { - Audio_PlaySoundGeneral(NA_SE_SY_DECIDE, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_DECIDE, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); if (dbCamera->sub.demoCtrlMenu == DEMO_CTRL_MENU(ACTION_LOAD, MENU_SUCCESS)) { dbCamera->sub.demoCtrlActionIdx = ACTION_E; } @@ -1960,8 +1958,8 @@ s32 DbCamera_UpdateDemoControl(DbCamera* dbCamera, Camera* cam) { if (CHECK_BTN_ALL(sPlay->state.input[2].press.button, BTN_A) || CHECK_BTN_ALL(sPlay->state.input[2].press.button, BTN_B)) { - Audio_PlaySoundGeneral(NA_SE_SY_DECIDE, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_DECIDE, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); dbCamera->sub.demoCtrlMenu -= 9; } block_2: @@ -1995,8 +1993,8 @@ s32 DbCamera_UpdateDemoControl(DbCamera* dbCamera, Camera* cam) { sp74[i * 2 + 1] = '\0'; if (CHECK_BTN_ALL(sPlay->state.input[2].press.button, BTN_DRIGHT)) { - Audio_PlaySoundGeneral(NA_SE_SY_CURSOR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_CURSOR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); if (sCurFileIdx >= 4) { sCurFileIdx = 0; } else { @@ -2012,8 +2010,8 @@ s32 DbCamera_UpdateDemoControl(DbCamera* dbCamera, Camera* cam) { } } if (CHECK_BTN_ALL(sPlay->state.input[2].press.button, BTN_DLEFT)) { - Audio_PlaySoundGeneral(NA_SE_SY_CURSOR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_CURSOR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); if (sCurFileIdx <= 0) { sCurFileIdx = 4; } else { @@ -2055,25 +2053,25 @@ s32 DbCamera_UpdateDemoControl(DbCamera* dbCamera, Camera* cam) { func_8006376C(0x14, 0x1A, 5, D_8012CF70); if (CHECK_BTN_ALL(sPlay->state.input[2].press.button, BTN_DUP)) { - Audio_PlaySoundGeneral(NA_SE_SY_CURSOR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_CURSOR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); dbCamera->sub.demoCtrlActionIdx = (dbCamera->sub.demoCtrlActionIdx - 1) % 4u; } if (CHECK_BTN_ALL(sPlay->state.input[2].press.button, BTN_DDOWN)) { - Audio_PlaySoundGeneral(NA_SE_SY_CURSOR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_CURSOR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); dbCamera->sub.demoCtrlActionIdx = (dbCamera->sub.demoCtrlActionIdx + 1) % 4u; } if (CHECK_BTN_ALL(sPlay->state.input[2].press.button, BTN_A)) { - Audio_PlaySoundGeneral(NA_SE_SY_DECIDE, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_DECIDE, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); dbCamera->sub.demoCtrlToggleSwitch = 0; dbCamera->sub.demoCtrlMenu = DEMO_CTRL_MENU(dbCamera->sub.demoCtrlActionIdx, MENU_INFO); } if (CHECK_BTN_ALL(sPlay->state.input[2].press.button, BTN_B)) { - Audio_PlaySoundGeneral(NA_SE_SY_CANCEL, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_CANCEL, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); dbCamera->sub.demoCtrlActionIdx = ACTION_E; return 1; } @@ -2085,8 +2083,8 @@ s32 DbCamera_UpdateDemoControl(DbCamera* dbCamera, Camera* cam) { CHECK_BTN_ALL(sPlay->state.input[2].press.button, BTN_DUP) || CHECK_BTN_ALL(sPlay->state.input[2].press.button, BTN_DDOWN)) { - Audio_PlaySoundGeneral(NA_SE_SY_CANCEL, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_CANCEL, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); dbCamera->sub.demoCtrlActionIdx = ACTION_E; } return 2; @@ -2098,15 +2096,15 @@ s32 DbCamera_UpdateDemoControl(DbCamera* dbCamera, Camera* cam) { default: { if (CHECK_BTN_ALL(sPlay->state.input[2].press.button, BTN_DUP)) { - Audio_PlaySoundGeneral(NA_SE_SY_CURSOR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_CURSOR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); dbCamera->sub.demoCtrlMenu = DEMO_CTRL_MENU(ACTION_E, MENU_INFO); dbCamera->sub.demoCtrlActionIdx = (dbCamera->sub.demoCtrlActionIdx - 1) % 4u; sCurFileIdx = 0; } if (CHECK_BTN_ALL(sPlay->state.input[2].press.button, BTN_DDOWN)) { - Audio_PlaySoundGeneral(NA_SE_SY_CURSOR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_CURSOR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); dbCamera->sub.demoCtrlMenu = DEMO_CTRL_MENU(ACTION_E, MENU_INFO); dbCamera->sub.demoCtrlActionIdx = (dbCamera->sub.demoCtrlActionIdx + 1) % 4u; sCurFileIdx = 0; @@ -2145,8 +2143,8 @@ s32 DbCamera_UpdateDemoControl(DbCamera* dbCamera, Camera* cam) { if (func_800B91B0(cam, dbCamera) == 0) { Interface_ChangeAlpha(2); ShrinkWindow_SetVal(0); - Audio_PlaySoundGeneral(NA_SE_SY_GET_RUPY, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_GET_RUPY, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } OLib_Vec3fDiffToVecSphGeo(&sp5C, &dbCamera->eye, &dbCamera->at); DbCamera_CalcUpFromPitchYawRoll(&dbCamera->unk_1C, sp5C.pitch, sp5C.yaw, @@ -2164,8 +2162,8 @@ s32 DbCamera_UpdateDemoControl(DbCamera* dbCamera, Camera* cam) { sDbCamAnim.unk_0A = 1; sDbCamAnim.unk_0C = 0; D_8016110C = 0; - Audio_PlaySoundGeneral(NA_SE_SY_HP_RECOVER, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_HP_RECOVER, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } if (CHECK_BTN_ALL(sPlay->state.input[2].press.button, BTN_L)) { @@ -2181,15 +2179,15 @@ s32 DbCamera_UpdateDemoControl(DbCamera* dbCamera, Camera* cam) { if (sLastFileIdx != -1) { switch (sp74[sCurFileIdx]) { case '?': - Audio_PlaySoundGeneral(NA_SE_SY_DECIDE, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_DECIDE, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); sDbCameraCuts[idx1] = sDbCameraCuts[idx2]; sp74[sCurFileIdx] = '?'; // useless DbCamera_ResetCut(idx2, false); break; case '-': - Audio_PlaySoundGeneral(NA_SE_SY_DECIDE, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_DECIDE, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); sp64 = sDbCameraCuts[idx2]; if (sLastFileIdx < sCurFileIdx) { @@ -2211,8 +2209,8 @@ s32 DbCamera_UpdateDemoControl(DbCamera* dbCamera, Camera* cam) { } break; default: - Audio_PlaySoundGeneral(NA_SE_SY_ERROR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_ERROR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); break; } } @@ -2221,8 +2219,8 @@ s32 DbCamera_UpdateDemoControl(DbCamera* dbCamera, Camera* cam) { if (CHECK_BTN_ALL(sPlay->state.input[2].press.button, BTN_A)) { if (sp74[sCurFileIdx] == '?') { - Audio_PlaySoundGeneral(NA_SE_SY_DECIDE, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_DECIDE, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); sp74[sCurFileIdx] = DbCamera_InitCut(idx1, &dbCamera->sub); if (sp74[sCurFileIdx] == '?') { func_8006376C(0xF, 0x18, 7, D_8012CF48); @@ -2232,8 +2230,8 @@ s32 DbCamera_UpdateDemoControl(DbCamera* dbCamera, Camera* cam) { if (CHECK_BTN_ALL(sPlay->state.input[2].press.button, BTN_B)) { if (sp74[sCurFileIdx] != '?' && sp74[sCurFileIdx] != '-') { - Audio_PlaySoundGeneral(NA_SE_SY_CANCEL, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_CANCEL, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); sp74[sCurFileIdx] = '?'; DbCamera_ResetCut(idx1, true); } @@ -2241,8 +2239,8 @@ s32 DbCamera_UpdateDemoControl(DbCamera* dbCamera, Camera* cam) { if (CHECK_BTN_ALL(sPlay->state.input[2].press.button, BTN_R)) { if (sp74[sCurFileIdx] != '?' && sp74[sCurFileIdx] != '-') { - Audio_PlaySoundGeneral(NA_SE_SY_DECIDE, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_DECIDE, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); for (i = 0; i < sDbCameraCuts[idx1].nPoints; i++) { dbCamera->sub.lookAt[i] = sDbCameraCuts[idx1].lookAt[i]; @@ -2264,8 +2262,8 @@ s32 DbCamera_UpdateDemoControl(DbCamera* dbCamera, Camera* cam) { } if (CHECK_BTN_ALL(sPlay->state.input[2].press.button, BTN_DRIGHT)) { - Audio_PlaySoundGeneral(NA_SE_SY_CURSOR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_CURSOR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); if (sCurFileIdx == 0x1E) { sCurFileIdx = 0; } else { @@ -2273,8 +2271,8 @@ s32 DbCamera_UpdateDemoControl(DbCamera* dbCamera, Camera* cam) { } } if (CHECK_BTN_ALL(sPlay->state.input[2].press.button, BTN_DLEFT)) { - Audio_PlaySoundGeneral(NA_SE_SY_CURSOR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_CURSOR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); sCurFileIdx = (sCurFileIdx == 0) ? 0x1E : sCurFileIdx - 1; } @@ -2288,8 +2286,8 @@ s32 DbCamera_UpdateDemoControl(DbCamera* dbCamera, Camera* cam) { DbCamera_PrintAllCuts(cam); } else if (CHECK_BTN_ALL(sPlay->state.input[2].cur.button, BTN_L) && CHECK_BTN_ALL(sPlay->state.input[2].press.button, BTN_CLEFT)) { - Audio_PlaySoundGeneral(NA_SE_SY_GET_RUPY, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_GET_RUPY, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); for (i = 0; i < ARRAY_COUNT(sDbCameraCuts) - 1; i++) { if (sDbCameraCuts[i].nPoints != 0) { osSyncPrintf("\n@@@ /* CUT [%d]\t*/", i); @@ -2305,8 +2303,8 @@ s32 DbCamera_UpdateDemoControl(DbCamera* dbCamera, Camera* cam) { Interface_ChangeAlpha(50); ShrinkWindow_SetVal(0x20); D_8016110C = 0; - Audio_PlaySoundGeneral(NA_SE_SY_HP_RECOVER, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_HP_RECOVER, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } func_8006376C(4, 7, 5, D_8012CF50[0]); diff --git a/src/code/z_actor.c b/src/code/z_actor.c index 4b594b06ba..762514dcdc 100644 --- a/src/code/z_actor.c +++ b/src/code/z_actor.c @@ -1688,11 +1688,11 @@ void func_8002F7A0(PlayState* play, Actor* actor, f32 arg2, s16 arg3, f32 arg4) } void func_8002F7DC(Actor* actor, u16 sfxId) { - Audio_PlaySoundGeneral(sfxId, &actor->projectedPos, 4, &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultReverb); + Audio_PlaySfxGeneral(sfxId, &actor->projectedPos, 4, &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultReverb); } -void Audio_PlayActorSound2(Actor* actor, u16 sfxId) { +void Audio_PlayActorSfx2(Actor* actor, u16 sfxId) { func_80078914(&actor->projectedPos, sfxId); } @@ -1753,7 +1753,7 @@ s32 func_8002F9EC(PlayState* play, Actor* actor, CollisionPoly* poly, s32 bgId, if (func_80041D4C(&play->colCtx, poly, bgId) == 8) { play->roomCtx.unk_74[0] = 1; CollisionCheck_BlueBlood(play, NULL, pos); - Audio_PlayActorSound2(actor, NA_SE_IT_WALL_HIT_BUYO); + Audio_PlayActorSfx2(actor, NA_SE_IT_WALL_HIT_BUYO); return true; } @@ -2235,8 +2235,8 @@ void Actor_Draw(PlayState* play, Actor* actor) { void func_80030ED8(Actor* actor) { if (actor->flags & ACTOR_FLAG_19) { - Audio_PlaySoundGeneral(actor->sfx, &actor->projectedPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(actor->sfx, &actor->projectedPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } else if (actor->flags & ACTOR_FLAG_20) { func_80078884(actor->sfx); } else if (actor->flags & ACTOR_FLAG_21) { @@ -3033,7 +3033,7 @@ Actor* Actor_Find(ActorContext* actorCtx, s32 actorId, s32 actorCategory) { */ void Enemy_StartFinishingBlow(PlayState* play, Actor* actor) { play->actorCtx.freezeFlashTimer = 5; - SoundSource_PlaySfxAtFixedWorldPos(play, &actor->world.pos, 20, NA_SE_EN_LAST_DAMAGE); + SfxSource_PlaySfxAtFixedWorldPos(play, &actor->world.pos, 20, NA_SE_EN_LAST_DAMAGE); } s16 func_80032CB4(s16* arg0, s16 arg1, s16 arg2, s16 arg3) { @@ -3617,7 +3617,7 @@ void func_8003424C(PlayState* play, Vec3f* arg1) { void Actor_SetColorFilter(Actor* actor, s16 colorFlag, s16 colorIntensityMax, s16 xluFlag, s16 duration) { if ((colorFlag == 0x8000) && !(colorIntensityMax & 0x8000)) { - Audio_PlayActorSound2(actor, NA_SE_EN_LIGHT_ARROW_HIT); + Audio_PlayActorSfx2(actor, NA_SE_EN_LIGHT_ARROW_HIT); } actor->colorFilterParams = colorFlag | xluFlag | ((colorIntensityMax & 0xF8) << 5) | duration; @@ -4984,8 +4984,8 @@ void func_80036E50(u16 textId, s16 arg1) { Flags_SetInfTable(INFTABLE_0C); return; case 0x1033: - Audio_PlaySoundGeneral(NA_SE_SY_CORRECT_CHIME, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_CORRECT_CHIME, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); Flags_SetEventChkInf(EVENTCHKINF_04); Flags_SetInfTable(INFTABLE_0E); return; @@ -5448,8 +5448,8 @@ s32 func_80037CB8(PlayState* play, Actor* actor, s16 arg2) { case TEXT_STATE_CHOICE: case TEXT_STATE_EVENT: if (Message_ShouldAdvance(play) && func_80037C94(play, actor, arg2)) { - Audio_PlaySoundGeneral(NA_SE_SY_CANCEL, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_CANCEL, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); msgCtx->msgMode = MSGMODE_TEXT_CLOSING; ret = true; } diff --git a/src/code/z_collision_check.c b/src/code/z_collision_check.c index dc889c7942..8ef0fbed06 100644 --- a/src/code/z_collision_check.c +++ b/src/code/z_collision_check.c @@ -1564,36 +1564,36 @@ void CollisionCheck_HitSolid(PlayState* play, ColliderInfo* info, Collider* coll if (flags == TOUCH_SFX_NORMAL && collider->colType != COLTYPE_METAL) { EffectSsHitMark_SpawnFixedScale(play, EFFECT_HITMARK_WHITE, hitPos); if (collider->actor == NULL) { - Audio_PlaySoundGeneral(NA_SE_IT_SHIELD_BOUND, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_IT_SHIELD_BOUND, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } else { - Audio_PlaySoundGeneral(NA_SE_IT_SHIELD_BOUND, &collider->actor->projectedPos, 4, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_IT_SHIELD_BOUND, &collider->actor->projectedPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } } else if (flags == TOUCH_SFX_NORMAL) { // collider->colType == COLTYPE_METAL EffectSsHitMark_SpawnFixedScale(play, EFFECT_HITMARK_METAL, hitPos); if (collider->actor == NULL) { CollisionCheck_SpawnShieldParticlesMetal(play, hitPos); } else { - CollisionCheck_SpawnShieldParticlesMetalSound(play, hitPos, &collider->actor->projectedPos); + CollisionCheck_SpawnShieldParticlesMetalSfx(play, hitPos, &collider->actor->projectedPos); } } else if (flags == TOUCH_SFX_HARD) { EffectSsHitMark_SpawnFixedScale(play, EFFECT_HITMARK_WHITE, hitPos); if (collider->actor == NULL) { - Audio_PlaySoundGeneral(NA_SE_IT_SHIELD_BOUND, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_IT_SHIELD_BOUND, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } else { - Audio_PlaySoundGeneral(NA_SE_IT_SHIELD_BOUND, &collider->actor->projectedPos, 4, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_IT_SHIELD_BOUND, &collider->actor->projectedPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } } else if (flags == TOUCH_SFX_WOOD) { EffectSsHitMark_SpawnFixedScale(play, EFFECT_HITMARK_DUST, hitPos); if (collider->actor == NULL) { - Audio_PlaySoundGeneral(NA_SE_IT_REFLECTION_WOOD, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_IT_REFLECTION_WOOD, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } else { - Audio_PlaySoundGeneral(NA_SE_IT_REFLECTION_WOOD, &collider->actor->projectedPos, 4, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_IT_REFLECTION_WOOD, &collider->actor->projectedPos, 4, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } } } @@ -1604,17 +1604,17 @@ void CollisionCheck_HitSolid(PlayState* play, ColliderInfo* info, Collider* coll s32 CollisionCheck_SwordHitAudio(Collider* at, ColliderInfo* acInfo) { if (at->actor != NULL && at->actor->category == ACTORCAT_PLAYER) { if (acInfo->elemType == ELEMTYPE_UNK0) { - Audio_PlaySoundGeneral(NA_SE_IT_SWORD_STRIKE, &at->actor->projectedPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_IT_SWORD_STRIKE, &at->actor->projectedPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } else if (acInfo->elemType == ELEMTYPE_UNK1) { - Audio_PlaySoundGeneral(NA_SE_IT_SWORD_STRIKE_HARD, &at->actor->projectedPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_IT_SWORD_STRIKE_HARD, &at->actor->projectedPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } else if (acInfo->elemType == ELEMTYPE_UNK2) { - Audio_PlaySoundGeneral(NA_SE_PL_WALK_GROUND - SFX_FLAG, &at->actor->projectedPos, 4, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_PL_WALK_GROUND - SFX_FLAG, &at->actor->projectedPos, 4, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } else if (acInfo->elemType == ELEMTYPE_UNK3) { - Audio_PlaySoundGeneral(NA_SE_PL_WALK_GROUND - SFX_FLAG, &at->actor->projectedPos, 4, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_PL_WALK_GROUND - SFX_FLAG, &at->actor->projectedPos, 4, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } } return true; @@ -1651,8 +1651,8 @@ void CollisionCheck_HitEffects(PlayState* play, Collider* at, ColliderInfo* atIn } else if (sHitInfo[ac->colType].effect == HIT_WOOD) { if (at->actor == NULL) { CollisionCheck_SpawnShieldParticles(play, hitPos); - Audio_PlaySoundGeneral(NA_SE_IT_REFLECTION_WOOD, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_IT_REFLECTION_WOOD, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } else { CollisionCheck_SpawnShieldParticlesWood(play, hitPos, &at->actor->projectedPos); } @@ -1665,11 +1665,11 @@ void CollisionCheck_HitEffects(PlayState* play, Collider* at, ColliderInfo* atIn } else { EffectSsHitMark_SpawnFixedScale(play, EFFECT_HITMARK_WHITE, hitPos); if (ac->actor == NULL) { - Audio_PlaySoundGeneral(NA_SE_IT_SHIELD_BOUND, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_IT_SHIELD_BOUND, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } else { - Audio_PlaySoundGeneral(NA_SE_IT_SHIELD_BOUND, &ac->actor->projectedPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_IT_SHIELD_BOUND, &ac->actor->projectedPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } } } @@ -3391,32 +3391,32 @@ void CollisionCheck_SpawnShieldParticles(PlayState* play, Vec3f* v) { } /** - * Spawns streaks of light and makes a metallic sound + * Spawns streaks of light and plays a metallic sound effect */ void CollisionCheck_SpawnShieldParticlesMetal(PlayState* play, Vec3f* v) { CollisionCheck_SpawnShieldParticles(play, v); - Audio_PlaySoundGeneral(NA_SE_IT_SHIELD_REFLECT_SW, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_IT_SHIELD_REFLECT_SW, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } /** - * Spawns streaks of light and makes a metallic sound at the specified position + * Spawns streaks of light and plays a metallic sound effect at the specified position */ -void CollisionCheck_SpawnShieldParticlesMetalSound(PlayState* play, Vec3f* v, Vec3f* pos) { +void CollisionCheck_SpawnShieldParticlesMetalSfx(PlayState* play, Vec3f* v, Vec3f* pos) { CollisionCheck_SpawnShieldParticles(play, v); - Audio_PlaySoundGeneral(NA_SE_IT_SHIELD_REFLECT_SW, pos, 4, &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_IT_SHIELD_REFLECT_SW, pos, 4, &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultReverb); } /** - * Spawns streaks of light and makes a metallic sound + * Spawns streaks of light and plays a metallic sound effect */ void CollisionCheck_SpawnShieldParticlesMetal2(PlayState* play, Vec3f* v) { CollisionCheck_SpawnShieldParticlesMetal(play, v); } /** - * Spawns streaks of light and makes a wooden sound + * Spawns streaks of light and plays a wooden sound effect */ void CollisionCheck_SpawnShieldParticlesWood(PlayState* play, Vec3f* v, Vec3f* actorPos) { static EffectShieldParticleInit woodInit = { @@ -3445,8 +3445,8 @@ void CollisionCheck_SpawnShieldParticlesWood(PlayState* play, Vec3f* v, Vec3f* a woodInit.lightPoint.z = woodInit.position.z; Effect_Add(play, &effectIndex, EFFECT_SHIELD_PARTICLE, 0, 1, &woodInit); - Audio_PlaySoundGeneral(NA_SE_IT_REFLECTION_WOOD, actorPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_IT_REFLECTION_WOOD, actorPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } /** diff --git a/src/code/z_demo.c b/src/code/z_demo.c index 04fde14899..794cade65b 100644 --- a/src/code/z_demo.c +++ b/src/code/z_demo.c @@ -495,8 +495,8 @@ void Cutscene_Command_Terminator(PlayState* play, CutsceneContext* csCtx, CsCmdB CHECK_BTN_ALL(play->state.input[0].press.button, BTN_B) || CHECK_BTN_ALL(play->state.input[0].press.button, BTN_START)) && (gSaveContext.fileNum != 0xFEDC) && (play->transitionTrigger == TRANS_TRIGGER_OFF)) { - Audio_PlaySoundGeneral(NA_SE_SY_PIECE_OF_HEART, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_PIECE_OF_HEART, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); temp = 1; } @@ -827,7 +827,7 @@ void Cutscene_Command_Terminator(PlayState* play, CutsceneContext* csCtx, CsCmdB break; case 54: gSaveContext.gameMode = GAMEMODE_END_CREDITS; - Audio_SetSoundBanksMute(0x6F); + Audio_SetSfxBanksMute(0x6F); play->linkAgeOnLoad = LINK_AGE_CHILD; play->nextEntranceIndex = ENTR_SPOT09_0; gSaveContext.cutsceneIndex = 0xFFF2; @@ -1208,7 +1208,7 @@ void Cutscene_Command_Terminator(PlayState* play, CutsceneContext* csCtx, CsCmdB break; case 117: gSaveContext.gameMode = GAMEMODE_END_CREDITS; - Audio_SetSoundBanksMute(0x6F); + Audio_SetSfxBanksMute(0x6F); play->linkAgeOnLoad = LINK_AGE_ADULT; play->nextEntranceIndex = ENTR_SPOT00_0; gSaveContext.cutsceneIndex = 0xFFF7; @@ -1249,13 +1249,13 @@ void Cutscene_Command_TransitionFX(PlayState* play, CutsceneContext* csCtx, CsCm if (cmd->base == 1) { play->envCtx.screenFillColor[3] = 255.0f * temp; if ((temp == 0.0f) && (gSaveContext.entranceIndex == ENTR_KENJYANOMA_0)) { - Audio_PlaySoundGeneral(NA_SE_SY_WHITE_OUT_S, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_WHITE_OUT_S, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } else if ((temp == 0.0f) && ((gSaveContext.entranceIndex == ENTR_TOKINOMA_0) || (gSaveContext.entranceIndex == ENTR_SPOT15_0) || (gSaveContext.entranceIndex == ENTR_YOUSEI_IZUMI_YOKO_0))) { - Audio_PlaySoundGeneral(NA_SE_EV_WHITE_OUT, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EV_WHITE_OUT, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } else if ((temp == 0.0f) && (play->sceneNum == SCENE_GANONTIKA)) { func_800788CC(NA_SE_EV_WHITE_OUT); } diff --git a/src/code/z_effect_soft_sprite_old_init.c b/src/code/z_effect_soft_sprite_old_init.c index 37ee824502..1df651bf2b 100644 --- a/src/code/z_effect_soft_sprite_old_init.c +++ b/src/code/z_effect_soft_sprite_old_init.c @@ -888,7 +888,7 @@ void EffectSsEnIce_SpawnFlyingVec3f(PlayState* play, Actor* actor, Vec3f* pos, s initParams.scale = scale; if (actor != NULL) { - Audio_PlayActorSound2(actor, NA_SE_PL_FREEZE_S); + Audio_PlayActorSfx2(actor, NA_SE_PL_FREEZE_S); } EffectSs_Spawn(play, EFFECT_SS_EN_ICE, 80, &initParams); @@ -914,7 +914,7 @@ void EffectSsEnIce_SpawnFlyingVec3s(PlayState* play, Actor* actor, Vec3s* pos, s initParams.scale = scale; if (actor != NULL) { - Audio_PlayActorSound2(actor, NA_SE_PL_FREEZE_S); + Audio_PlayActorSfx2(actor, NA_SE_PL_FREEZE_S); } EffectSs_Spawn(play, EFFECT_SS_EN_ICE, 80, &initParams); @@ -993,7 +993,7 @@ void EffectSsEnFire_SpawnVec3f(PlayState* play, Actor* actor, Vec3f* pos, s16 sc initParams.bodyPart = bodyPart; if (actor != NULL) { - Audio_PlayActorSound2(actor, NA_SE_EV_FLAME_IGNITION); + Audio_PlayActorSfx2(actor, NA_SE_EV_FLAME_IGNITION); } EffectSs_Spawn(play, EFFECT_SS_EN_FIRE, 128, &initParams); @@ -1014,7 +1014,7 @@ void EffectSsEnFire_SpawnVec3s(PlayState* play, Actor* actor, Vec3s* pos, s16 sc initParams.bodyPart = bodyPart; if (actor != NULL) { - Audio_PlayActorSound2(actor, NA_SE_EV_FLAME_IGNITION); + Audio_PlayActorSfx2(actor, NA_SE_EV_FLAME_IGNITION); } EffectSs_Spawn(play, EFFECT_SS_EN_FIRE, 128, &initParams); @@ -1051,7 +1051,7 @@ void EffectSsFCircle_Spawn(PlayState* play, Actor* actor, Vec3f* pos, s16 radius void EffectSsDeadDb_Spawn(PlayState* play, Vec3f* pos, Vec3f* velocity, Vec3f* accel, s16 scale, s16 scaleStep, s16 primR, s16 primG, s16 primB, s16 primA, s16 envR, s16 envG, s16 envB, s16 unused, - s32 arg14, s16 playSound) { + s32 arg14, s16 playSfx) { EffectSsDeadDbInitParams initParams; Math_Vec3f_Copy(&initParams.pos, pos); @@ -1068,7 +1068,7 @@ void EffectSsDeadDb_Spawn(PlayState* play, Vec3f* pos, Vec3f* velocity, Vec3f* a initParams.envColor.b = envB; initParams.unused = unused; initParams.unk_34 = arg14; - initParams.playSound = playSound; + initParams.playSfx = playSfx; EffectSs_Spawn(play, EFFECT_SS_DEAD_DB, 120, &initParams); } diff --git a/src/code/z_en_a_keep.c b/src/code/z_en_a_keep.c index 190619c12f..ade2467f73 100644 --- a/src/code/z_en_a_keep.c +++ b/src/code/z_en_a_keep.c @@ -302,7 +302,7 @@ void EnAObj_Block(EnAObj* this, PlayState* play) { Math_SmoothStepToF(&this->dyna.actor.speedXZ, 0.0f, 1.0f, 1.0f, 0.0f); if (this->dyna.actor.speedXZ != 0.0f) { - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EV_ROCK_SLIDE - SFX_FLAG); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EV_ROCK_SLIDE - SFX_FLAG); } this->dyna.unk_154 = 0.0f; diff --git a/src/code/z_en_item00.c b/src/code/z_en_item00.c index 01304c5fda..046bf0aaec 100644 --- a/src/code/z_en_item00.c +++ b/src/code/z_en_item00.c @@ -715,8 +715,8 @@ void EnItem00_Update(Actor* thisx, PlayState* play) { } if ((*params <= ITEM00_RUPEE_RED) || (*params == ITEM00_RUPEE_ORANGE)) { - Audio_PlaySoundGeneral(NA_SE_SY_GET_RUPY, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_GET_RUPY, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } else if (getItemId != GI_NONE) { if (Actor_HasParent(&this->actor, play)) { Flags_SetCollectible(play, this->collectibleFlag); @@ -724,8 +724,8 @@ void EnItem00_Update(Actor* thisx, PlayState* play) { } return; } else { - Audio_PlaySoundGeneral(NA_SE_SY_GET_ITEM, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_GET_ITEM, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } Flags_SetCollectible(play, this->collectibleFlag); diff --git a/src/code/z_fbdemo_circle.c b/src/code/z_fbdemo_circle.c index 4057d71d18..e7dacb84d4 100644 --- a/src/code/z_fbdemo_circle.c +++ b/src/code/z_fbdemo_circle.c @@ -81,8 +81,8 @@ void TransitionCircle_Start(void* thisx) { } else { this->texY = 0x1F4; if (this->appearanceType == TCA_RIPPLE) { - Audio_PlaySoundGeneral(NA_SE_OC_SECRET_WARP_OUT, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_OC_SECRET_WARP_OUT, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } } guPerspective(&this->projection, &this->normal, 60.0f, (4.0f / 3.0f), 10.0f, 12800.0f, 1.0f); @@ -107,8 +107,8 @@ void TransitionCircle_Update(void* thisx, s32 updateRate) { if (this->direction != 0) { if (this->texY == 0) { if (this->appearanceType == TCA_RIPPLE) { - Audio_PlaySoundGeneral(NA_SE_OC_SECRET_WARP_IN, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_OC_SECRET_WARP_IN, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } } this->texY += this->speed * 3 / updateRate; diff --git a/src/code/z_lib.c b/src/code/z_lib.c index 524d58a0aa..3dd0030f07 100644 --- a/src/code/z_lib.c +++ b/src/code/z_lib.c @@ -583,16 +583,15 @@ void Color_RGBA8_Copy(Color_RGBA8* dst, Color_RGBA8* src) { } void func_80078884(u16 sfxId) { - Audio_PlaySoundGeneral(sfxId, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultReverb); + Audio_PlaySfxGeneral(sfxId, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultReverb); } void func_800788CC(u16 sfxId) { - Audio_PlaySoundGeneral(sfxId, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultReverb); + Audio_PlaySfxGeneral(sfxId, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultReverb); } void func_80078914(Vec3f* arg0, u16 sfxId) { - Audio_PlaySoundGeneral(sfxId, arg0, 4, &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultReverb); + Audio_PlaySfxGeneral(sfxId, arg0, 4, &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } diff --git a/src/code/z_map_exp.c b/src/code/z_map_exp.c index cd826c6e57..6f9483247f 100644 --- a/src/code/z_map_exp.c +++ b/src/code/z_map_exp.c @@ -403,11 +403,11 @@ void Minimap_Draw(PlayState* play) { if (CHECK_BTN_ALL(play->state.input[0].press.button, BTN_L) && !Play_InCsMode(play)) { osSyncPrintf("Game_play_demo_mode_check=%d\n", Play_InCsMode(play)); // clang-format off - if (!R_MINIMAP_DISABLED) { Audio_PlaySoundGeneral(NA_SE_SY_CAMERA_ZOOM_UP, &gSfxDefaultPos, 4, + if (!R_MINIMAP_DISABLED) { Audio_PlaySfxGeneral(NA_SE_SY_CAMERA_ZOOM_UP, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } else { - Audio_PlaySoundGeneral(NA_SE_SY_CAMERA_ZOOM_DOWN, &gSfxDefaultPos, 4, + Audio_PlaySfxGeneral(NA_SE_SY_CAMERA_ZOOM_DOWN, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } @@ -489,11 +489,11 @@ void Minimap_Draw(PlayState* play) { if (CHECK_BTN_ALL(play->state.input[0].press.button, BTN_L) && !Play_InCsMode(play)) { // clang-format off - if (!R_MINIMAP_DISABLED) { Audio_PlaySoundGeneral(NA_SE_SY_CAMERA_ZOOM_UP, &gSfxDefaultPos, 4, + if (!R_MINIMAP_DISABLED) { Audio_PlaySfxGeneral(NA_SE_SY_CAMERA_ZOOM_UP, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } else { - Audio_PlaySoundGeneral(NA_SE_SY_CAMERA_ZOOM_DOWN, &gSfxDefaultPos, 4, + Audio_PlaySfxGeneral(NA_SE_SY_CAMERA_ZOOM_DOWN, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } diff --git a/src/code/z_message_PAL.c b/src/code/z_message_PAL.c index eef04951ff..b9e9c420db 100644 --- a/src/code/z_message_PAL.c +++ b/src/code/z_message_PAL.c @@ -158,8 +158,8 @@ u8 Message_ShouldAdvance(PlayState* play) { if (CHECK_BTN_ALL(input->press.button, BTN_A) || CHECK_BTN_ALL(input->press.button, BTN_B) || CHECK_BTN_ALL(input->press.button, BTN_CUP)) { - Audio_PlaySoundGeneral(NA_SE_SY_MESSAGE_PASS, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_MESSAGE_PASS, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } return CHECK_BTN_ALL(input->press.button, BTN_A) || CHECK_BTN_ALL(input->press.button, BTN_B) || CHECK_BTN_ALL(input->press.button, BTN_CUP); @@ -183,8 +183,8 @@ void Message_CloseTextbox(PlayState* play) { msgCtx->stateTimer = 2; msgCtx->msgMode = MSGMODE_TEXT_CLOSING; msgCtx->textboxEndType = TEXTBOX_ENDTYPE_DEFAULT; - Audio_PlaySoundGeneral(0, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultReverb); + Audio_PlaySfxGeneral(0, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultReverb); } } @@ -199,8 +199,8 @@ void Message_HandleChoiceSelection(PlayState* play, u8 numChoices) { if (msgCtx->choiceIndex > 128) { msgCtx->choiceIndex = 0; } else { - Audio_PlaySoundGeneral(NA_SE_SY_CURSOR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_CURSOR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } } else if (input->rel.stick_y <= -30 && !sAnalogStickHeld) { sAnalogStickHeld = true; @@ -208,8 +208,8 @@ void Message_HandleChoiceSelection(PlayState* play, u8 numChoices) { if (msgCtx->choiceIndex > numChoices) { msgCtx->choiceIndex = numChoices; } else { - Audio_PlaySoundGeneral(NA_SE_SY_CURSOR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_CURSOR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } } else if (ABS(input->rel.stick_y) < 30) { sAnalogStickHeld = false; @@ -743,7 +743,7 @@ u16 Message_DrawItemIcon(PlayState* play, u16 itemId, Gfx** p, u16 i) { MessageContext* msgCtx = &play->msgCtx; // clang-format off - if (msgCtx->msgMode == MSGMODE_TEXT_DISPLAYING) { Audio_PlaySoundGeneral(0, &gSfxDefaultPos, 4, + if (msgCtx->msgMode == MSGMODE_TEXT_DISPLAYING) { Audio_PlaySfxGeneral(0, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); @@ -898,8 +898,8 @@ void Message_DrawText(PlayState* play, Gfx** gfxP) { case MESSAGE_BOX_BREAK: if (msgCtx->msgMode == MSGMODE_TEXT_DISPLAYING) { if (!sTextboxSkipped) { - Audio_PlaySoundGeneral(0, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(0, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); msgCtx->msgMode = MSGMODE_TEXT_AWAIT_NEXT; Font_LoadMessageBoxIcon(font, TEXTBOX_ICON_TRIANGLE); } else { @@ -916,8 +916,8 @@ void Message_DrawText(PlayState* play, Gfx** gfxP) { case MESSAGE_TEXTID: msgCtx->textboxEndType = TEXTBOX_ENDTYPE_HAS_NEXT; if (msgCtx->msgMode == MSGMODE_TEXT_DISPLAYING) { - Audio_PlaySoundGeneral(0, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(0, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); msgCtx->msgMode = MSGMODE_TEXT_DONE; Font_LoadMessageBoxIcon(font, TEXTBOX_ICON_TRIANGLE); } @@ -986,9 +986,8 @@ void Message_DrawText(PlayState* play, Gfx** gfxP) { // "Sound (SE)" osSyncPrintf("サウンド(SE)\n"); sfxHi = msgCtx->msgBufDecoded[i + 1] << 8; - Audio_PlaySoundGeneral(sfxHi | msgCtx->msgBufDecoded[i + 2], &gSfxDefaultPos, 4, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultReverb); + Audio_PlaySfxGeneral(sfxHi | msgCtx->msgBufDecoded[i + 2], &gSfxDefaultPos, 4, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } i += 2; break; @@ -997,7 +996,7 @@ void Message_DrawText(PlayState* play, Gfx** gfxP) { break; case MESSAGE_BACKGROUND: // clang-format off - if (msgCtx->msgMode == MSGMODE_TEXT_DISPLAYING) { Audio_PlaySoundGeneral(0, &gSfxDefaultPos, 4, + if (msgCtx->msgMode == MSGMODE_TEXT_DISPLAYING) { Audio_PlaySfxGeneral(0, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); @@ -1083,8 +1082,8 @@ void Message_DrawText(PlayState* play, Gfx** gfxP) { if (msgCtx->msgMode == MSGMODE_TEXT_DISPLAYING) { msgCtx->msgMode = MSGMODE_TEXT_DONE; if (msgCtx->textboxEndType == TEXTBOX_ENDTYPE_DEFAULT) { - Audio_PlaySoundGeneral(NA_SE_SY_MESSAGE_END, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_MESSAGE_END, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); Font_LoadMessageBoxIcon(font, TEXTBOX_ICON_SQUARE); if (play->csCtx.state == 0) { Interface_SetDoAction(play, DO_ACTION_RETURN); @@ -1114,8 +1113,8 @@ void Message_DrawText(PlayState* play, Gfx** gfxP) { return; case MESSAGE_PERSISTENT: if (msgCtx->msgMode == MSGMODE_TEXT_DISPLAYING) { - Audio_PlaySoundGeneral(0, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(0, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); msgCtx->msgMode = MSGMODE_TEXT_DONE; msgCtx->textboxEndType = TEXTBOX_ENDTYPE_PERSISTENT; } @@ -1126,16 +1125,16 @@ void Message_DrawText(PlayState* play, Gfx** gfxP) { msgCtx->msgMode = MSGMODE_TEXT_DONE; msgCtx->textboxEndType = TEXTBOX_ENDTYPE_EVENT; Font_LoadMessageBoxIcon(font, TEXTBOX_ICON_TRIANGLE); - Audio_PlaySoundGeneral(NA_SE_SY_MESSAGE_END, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_MESSAGE_END, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } *gfxP = gfx; return; default: if (msgCtx->msgMode == MSGMODE_TEXT_DISPLAYING && i + 1 == msgCtx->textDrawPos && msgCtx->textDelayTimer == msgCtx->textDelay) { - Audio_PlaySoundGeneral(0, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(0, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } Message_DrawTextChar(play, &font->charTexBuf[charTexIdx], &gfx); charTexIdx += FONT_CHAR_TEX_SIZE; @@ -1795,8 +1794,8 @@ void Message_StartOcarina(PlayState* play, u16 ocarinaActionId) { osSyncPrintf("ocarina_set 000000000000000000 = %d\n", ocarinaActionId); msgCtx->ocarinaAction = ocarinaActionId; if (ocarinaActionId >= OCARINA_ACTION_CHECK_SARIA && ocarinaActionId <= OCARINA_ACTION_CHECK_STORMS) { - Audio_PlaySoundGeneral(NA_SE_SY_TRE_BOX_APPEAR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_TRE_BOX_APPEAR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } if (ocarinaActionId == OCARINA_ACTION_SCARECROW_SPAWN_PLAYBACK) { Message_OpenText(play, 0x86F); // Ocarina @@ -2124,9 +2123,9 @@ void Message_DrawMain(PlayState* play, Gfx** p) { if (msgCtx->ocarinaStaff->state < OCARINA_SONG_SARIAS || msgCtx->ocarinaStaff->state == OCARINA_SONG_SCARECROW_SPAWN) { AudioOcarina_SetInstrument(OCARINA_INSTRUMENT_OFF); - Audio_PlaySoundGeneral(NA_SE_SY_OCARINA_ERROR, &gSfxDefaultPos, 4, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_OCARINA_ERROR, &gSfxDefaultPos, 4, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultReverb); msgCtx->msgMode = MSGMODE_OCARINA_STARTING; } else { // "Ocarina_Flog Correct Example Performance" @@ -2135,17 +2134,17 @@ void Message_DrawMain(PlayState* play, Gfx** p) { msgCtx->msgMode = MSGMODE_SONG_PLAYED; msgCtx->textBoxType = TEXTBOX_TYPE_OCARINA; msgCtx->stateTimer = 10; - Audio_PlaySoundGeneral(NA_SE_SY_TRE_BOX_APPEAR, &gSfxDefaultPos, 4, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_TRE_BOX_APPEAR, &gSfxDefaultPos, 4, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultReverb); Interface_ChangeAlpha(1); } } else if (msgCtx->ocarinaAction == OCARINA_ACTION_CHECK_SCARECROW_SPAWN) { if (msgCtx->ocarinaStaff->state < OCARINA_SONG_SCARECROW_SPAWN) { AudioOcarina_SetInstrument(OCARINA_INSTRUMENT_OFF); - Audio_PlaySoundGeneral(NA_SE_SY_OCARINA_ERROR, &gSfxDefaultPos, 4, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_OCARINA_ERROR, &gSfxDefaultPos, 4, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultReverb); msgCtx->stateTimer = 10; msgCtx->msgMode = MSGMODE_OCARINA_FAIL; } else { @@ -2155,9 +2154,9 @@ void Message_DrawMain(PlayState* play, Gfx** p) { msgCtx->msgMode = MSGMODE_SONG_PLAYED; msgCtx->textBoxType = TEXTBOX_TYPE_OCARINA; msgCtx->stateTimer = 10; - Audio_PlaySoundGeneral(NA_SE_SY_TRE_BOX_APPEAR, &gSfxDefaultPos, 4, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_TRE_BOX_APPEAR, &gSfxDefaultPos, 4, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultReverb); Interface_ChangeAlpha(1); } } else if (msgCtx->ocarinaAction == OCARINA_ACTION_FREE_PLAY) { @@ -2167,25 +2166,25 @@ void Message_DrawMain(PlayState* play, Gfx** p) { msgCtx->msgMode = MSGMODE_SONG_PLAYED; msgCtx->textBoxType = TEXTBOX_TYPE_OCARINA; msgCtx->stateTimer = 10; - Audio_PlaySoundGeneral(NA_SE_SY_TRE_BOX_APPEAR, &gSfxDefaultPos, 4, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_TRE_BOX_APPEAR, &gSfxDefaultPos, 4, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultReverb); } else { - Audio_PlaySoundGeneral(NA_SE_SY_TRE_BOX_APPEAR, &gSfxDefaultPos, 4, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_TRE_BOX_APPEAR, &gSfxDefaultPos, 4, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultReverb); } Interface_ChangeAlpha(1); } else { AudioOcarina_SetInstrument(OCARINA_INSTRUMENT_OFF); - Audio_PlaySoundGeneral(NA_SE_SY_OCARINA_ERROR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_OCARINA_ERROR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); msgCtx->msgMode = MSGMODE_OCARINA_STARTING; } } else if (msgCtx->ocarinaStaff->state == 0xFF) { AudioOcarina_SetInstrument(OCARINA_INSTRUMENT_OFF); - Audio_PlaySoundGeneral(NA_SE_SY_OCARINA_ERROR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_OCARINA_ERROR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); msgCtx->stateTimer = 10; msgCtx->msgMode = MSGMODE_OCARINA_FAIL; } else if (CHECK_BTN_ALL(play->state.input[0].press.button, BTN_B)) { @@ -2408,7 +2407,7 @@ void Message_DrawMain(PlayState* play, Gfx** p) { AudioOcarina_SetPlaybackSong(msgCtx->lastPlayedSong + 1, 1); if (msgCtx->lastPlayedSong != OCARINA_SONG_SCARECROW_SPAWN) { Audio_PlayFanfare(sOcarinaSongFanfares[msgCtx->lastPlayedSong]); - Audio_SetSoundBanksMute(0x20); + Audio_SetSfxBanksMute(0x20); } play->msgCtx.ocarinaMode = OCARINA_MODE_01; if (msgCtx->ocarinaAction == OCARINA_ACTION_FREE_PLAY) { @@ -2562,11 +2561,11 @@ void Message_DrawMain(PlayState* play, Gfx** p) { osSyncPrintf("z_message.c 取得メロディ=%d\n", ITEM_SONG_MINUET + msgCtx->ocarinaStaff->state); osSyncPrintf(VT_RST); msgCtx->stateTimer = 20; - Audio_PlaySoundGeneral(NA_SE_SY_TRE_BOX_APPEAR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_TRE_BOX_APPEAR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } else if (msgCtx->ocarinaStaff->state == 0xFF) { - Audio_PlaySoundGeneral(NA_SE_SY_OCARINA_ERROR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_OCARINA_ERROR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); msgCtx->stateTimer = 10; msgCtx->msgMode = MSGMODE_SONG_PLAYBACK_FAIL; } @@ -2620,8 +2619,8 @@ void Message_DrawMain(PlayState* play, Gfx** p) { msgCtx->ocarinaStaff->state); gSaveContext.scarecrowLongSongSet = true; } - Audio_PlaySoundGeneral(NA_SE_SY_OCARINA_ERROR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_OCARINA_ERROR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); osSyncPrintf("aaaaaaaaaaaaaa\n"); AudioOcarina_SetRecordingState(OCARINA_RECORD_OFF); msgCtx->stateTimer = 10; @@ -2691,8 +2690,8 @@ void Message_DrawMain(PlayState* play, Gfx** p) { msgCtx->stateTimer = 20; gSaveContext.scarecrowSpawnSongSet = true; msgCtx->msgMode = MSGMODE_SCARECROW_SPAWN_RECORDING_DONE; - Audio_PlaySoundGeneral(NA_SE_SY_TRE_BOX_APPEAR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_TRE_BOX_APPEAR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); osSyncPrintf(VT_FGCOL(YELLOW)); osSyncPrintf("\n====================================================================\n"); MemCpy(gSaveContext.scarecrowSpawnSong, gScarecrowSpawnSongPtr, @@ -2707,8 +2706,8 @@ void Message_DrawMain(PlayState* play, Gfx** p) { // "Played an existing song!!!" osSyncPrintf("すでに存在する曲吹いた!!! \n"); AudioOcarina_SetRecordingState(OCARINA_RECORD_OFF); - Audio_PlaySoundGeneral(NA_SE_SY_OCARINA_ERROR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_OCARINA_ERROR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); Message_CloseTextbox(play); msgCtx->msgMode = MSGMODE_SCARECROW_SPAWN_RECORDING_FAILED; } @@ -2733,8 +2732,8 @@ void Message_DrawMain(PlayState* play, Gfx** p) { break; case MSGMODE_MEMORY_GAME_LEFT_SKULLKID_PLAYING: case MSGMODE_MEMORY_GAME_RIGHT_SKULLKID_PLAYING: - Audio_PlaySoundGeneral(NA_SE_SY_METRONOME_LV - SFX_FLAG, &gSfxDefaultPos, 4, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_METRONOME_LV - SFX_FLAG, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); msgCtx->ocarinaStaff = AudioOcarina_GetPlaybackStaff(); if (msgCtx->ocarinaStaff->pos && sOcarinaButtonIndexBufPos == msgCtx->ocarinaStaff->pos - 1) { sOcarinaButtonIndexBuf[msgCtx->ocarinaStaff->pos - 1] = msgCtx->ocarinaStaff->buttonIndex; @@ -2744,12 +2743,11 @@ void Message_DrawMain(PlayState* play, Gfx** p) { if (msgCtx->stateTimer == 0) { if (msgCtx->ocarinaStaff->state == 0) { if (msgCtx->msgMode == MSGMODE_MEMORY_GAME_LEFT_SKULLKID_PLAYING) { - Audio_PlaySoundGeneral(NA_SE_SY_METRONOME, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_METRONOME, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } else { - Audio_PlaySoundGeneral(NA_SE_SY_METRONOME_2, &gSfxDefaultPos, 4, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_METRONOME_2, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } msgCtx->msgMode++; } @@ -2767,8 +2765,8 @@ void Message_DrawMain(PlayState* play, Gfx** p) { } break; case MSGMODE_MEMORY_GAME_PLAYER_PLAYING: - Audio_PlaySoundGeneral(NA_SE_SY_METRONOME_LV - SFX_FLAG, &gSfxDefaultPos, 4, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_METRONOME_LV - SFX_FLAG, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); msgCtx->ocarinaStaff = AudioOcarina_GetPlayingStaff(); if (msgCtx->ocarinaStaff->pos && sOcarinaButtonIndexBufPos == msgCtx->ocarinaStaff->pos - 1) { sOcarinaButtonIndexBuf[msgCtx->ocarinaStaff->pos - 1] = msgCtx->ocarinaStaff->buttonIndex; @@ -2779,15 +2777,15 @@ void Message_DrawMain(PlayState* play, Gfx** p) { // "Musical round failed!!!!!!!!!" osSyncPrintf("輪唱失敗!!!!!!!!!\n"); AudioOcarina_SetInstrument(OCARINA_INSTRUMENT_OFF); - Audio_PlaySoundGeneral(NA_SE_SY_OCARINA_ERROR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_OCARINA_ERROR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); msgCtx->stateTimer = 10; play->msgCtx.ocarinaMode = OCARINA_MODE_03; } else if (msgCtx->ocarinaStaff->state == OCARINA_SONG_MEMORY_GAME) { // "Musical round succeeded!!!!!!!!!" osSyncPrintf("輪唱成功!!!!!!!!!\n"); - Audio_PlaySoundGeneral(NA_SE_SY_GET_ITEM, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_GET_ITEM, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); msgCtx->msgMode = MSGMODE_MEMORY_GAME_ROUND_SUCCESS; msgCtx->stateTimer = 30; } @@ -2803,8 +2801,8 @@ void Message_DrawMain(PlayState* play, Gfx** p) { msgCtx->stateTimer--; if (msgCtx->stateTimer == 0) { if (AudioOcarina_MemoryGameNextNote() != 1) { - Audio_PlaySoundGeneral(NA_SE_SY_METRONOME, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_METRONOME, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); msgCtx->ocarinaStaff = AudioOcarina_GetPlayingStaff(); msgCtx->ocarinaStaff->pos = sOcarinaButtonIndexBufPos = 0; Message_ResetOcarinaNoteState(); @@ -3171,7 +3169,7 @@ void Message_Update(PlayState* play) { } else { Message_GrowTextbox(msgCtx); // TODO: this may be NA_SE_PL_WALK_GROUND - SFX_FLAG, or not, investigate sfxId=0 - Audio_PlaySoundIfNotInCutscene(0); + Audio_PlaySfxIfNotInCutscene(0); msgCtx->stateTimer = 0; msgCtx->msgMode = MSGMODE_TEXT_BOX_GROWING; } @@ -3248,12 +3246,12 @@ void Message_Update(PlayState* play) { } else if (Message_ShouldAdvanceSilent(play)) { osSyncPrintf("select=%d\n", msgCtx->textboxEndType); if (msgCtx->textboxEndType == TEXTBOX_ENDTYPE_HAS_NEXT) { - Audio_PlaySoundGeneral(NA_SE_SY_MESSAGE_PASS, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_MESSAGE_PASS, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); Message_ContinueTextbox(play, sNextTextId); } else { - Audio_PlaySoundGeneral(NA_SE_SY_DECIDE, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_DECIDE, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); Message_CloseTextbox(play); } } diff --git a/src/code/z_parameter.c b/src/code/z_parameter.c index 98330e27ef..30d3348d46 100644 --- a/src/code/z_parameter.c +++ b/src/code/z_parameter.c @@ -2115,7 +2115,7 @@ void Interface_SetNaviCall(PlayState* play, u16 naviCallState) { if (((naviCallState == 0x1D) || (naviCallState == 0x1E)) && !interfaceCtx->naviCalling && (play->csCtx.state == CS_STATE_IDLE)) { // clang-format off - if (naviCallState == 0x1E) { Audio_PlaySoundGeneral(NA_SE_VO_NAVY_CALL, &gSfxDefaultPos, 4, + if (naviCallState == 0x1E) { Audio_PlaySfxGeneral(NA_SE_VO_NAVY_CALL, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } @@ -2167,7 +2167,7 @@ s32 Health_ChangeBy(PlayState* play, s16 amount) { gSaveContext.healthCapacity); // clang-format off - if (amount > 0) { Audio_PlaySoundGeneral(NA_SE_SY_HP_RECOVER, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + if (amount > 0) { Audio_PlaySfxGeneral(NA_SE_SY_HP_RECOVER, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } else if (gSaveContext.doubleDefense && (amount < 0)) { amount >>= 1; @@ -2302,8 +2302,8 @@ s32 Magic_RequestChange(PlayState* play, s16 amount, s16 type) { if ((type != MAGIC_ADD) && (gSaveContext.magic - amount) < 0) { if (gSaveContext.magicCapacity != 0) { - Audio_PlaySoundGeneral(NA_SE_SY_ERROR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_ERROR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } return false; } @@ -2321,8 +2321,8 @@ s32 Magic_RequestChange(PlayState* play, s16 amount, s16 type) { gSaveContext.magicState = MAGIC_STATE_CONSUME_SETUP; return true; } else { - Audio_PlaySoundGeneral(NA_SE_SY_ERROR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_ERROR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); return false; } @@ -2339,8 +2339,8 @@ s32 Magic_RequestChange(PlayState* play, s16 amount, s16 type) { gSaveContext.magicState = MAGIC_STATE_METER_FLASH_3; return true; } else { - Audio_PlaySoundGeneral(NA_SE_SY_ERROR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_ERROR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); return false; } @@ -2371,8 +2371,8 @@ s32 Magic_RequestChange(PlayState* play, s16 amount, s16 type) { gSaveContext.magicState = MAGIC_STATE_METER_FLASH_2; return true; } else { - Audio_PlaySoundGeneral(NA_SE_SY_ERROR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_ERROR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); return false; } @@ -2440,8 +2440,8 @@ void Magic_Update(PlayState* play) { gSaveContext.magic += 4; if (gSaveContext.gameMode == GAMEMODE_NORMAL && gSaveContext.sceneSetupIndex < 4) { - Audio_PlaySoundGeneral(NA_SE_SY_GAUGE_UP - SFX_FLAG, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_GAUGE_UP - SFX_FLAG, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } // "Storage MAGIC_NOW=%d (%d)" @@ -2528,8 +2528,8 @@ void Magic_Update(PlayState* play) { !play->actorCtx.lensActive) { // Force lens off and set magic meter state to idle play->actorCtx.lensActive = false; - Audio_PlaySoundGeneral(NA_SE_SY_GLASSMODE_OFF, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_GLASSMODE_OFF, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); gSaveContext.magicState = MAGIC_STATE_IDLE; sMagicBorderR = sMagicBorderG = sMagicBorderB = 255; break; @@ -2581,8 +2581,8 @@ void Magic_Update(PlayState* play) { case MAGIC_STATE_ADD: // Add magic until target is reached gSaveContext.magic += 4; - Audio_PlaySoundGeneral(NA_SE_SY_GAUGE_UP - SFX_FLAG, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_GAUGE_UP - SFX_FLAG, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); if (gSaveContext.magic >= gSaveContext.magicTarget) { gSaveContext.magic = gSaveContext.magicTarget; gSaveContext.magicState = gSaveContext.prevMagicState; @@ -3564,20 +3564,20 @@ void Interface_Draw(PlayState* play) { D_80125A5C = false; } else if (gSaveContext.timer1Value > 60) { if (timerDigits[4] == 1) { - Audio_PlaySoundGeneral(NA_SE_SY_MESSAGE_WOMAN, &gSfxDefaultPos, 4, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_MESSAGE_WOMAN, &gSfxDefaultPos, 4, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultReverb); } } else if (gSaveContext.timer1Value >= 11) { if (timerDigits[4] & 1) { - Audio_PlaySoundGeneral(NA_SE_SY_WARNING_COUNT_N, &gSfxDefaultPos, 4, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_WARNING_COUNT_N, &gSfxDefaultPos, 4, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultReverb); } } else { - Audio_PlaySoundGeneral(NA_SE_SY_WARNING_COUNT_E, &gSfxDefaultPos, 4, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_WARNING_COUNT_E, &gSfxDefaultPos, 4, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultReverb); } } } @@ -3625,9 +3625,9 @@ void Interface_Draw(PlayState* play) { D_8015FFE2 = 40; gSaveContext.timer1State = 15; } else { - Audio_PlaySoundGeneral(NA_SE_SY_WARNING_COUNT_N, &gSfxDefaultPos, 4, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_WARNING_COUNT_N, &gSfxDefaultPos, 4, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultReverb); } } } @@ -3745,20 +3745,20 @@ void Interface_Draw(PlayState* play) { } } else if (gSaveContext.timer2Value > 60) { if (timerDigits[4] == 1) { - Audio_PlaySoundGeneral(NA_SE_SY_MESSAGE_WOMAN, &gSfxDefaultPos, 4, - &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_MESSAGE_WOMAN, &gSfxDefaultPos, 4, + &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } } else if (gSaveContext.timer2Value > 10) { if (timerDigits[4] & 1) { - Audio_PlaySoundGeneral(NA_SE_SY_WARNING_COUNT_N, &gSfxDefaultPos, 4, - &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_WARNING_COUNT_N, &gSfxDefaultPos, 4, + &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } } else { - Audio_PlaySoundGeneral(NA_SE_SY_WARNING_COUNT_E, &gSfxDefaultPos, 4, - &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_WARNING_COUNT_E, &gSfxDefaultPos, 4, + &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } } else { gSaveContext.timer2Value++; @@ -3772,9 +3772,9 @@ void Interface_Draw(PlayState* play) { } if ((gSaveContext.timer2Value % 60) == 0) { - Audio_PlaySoundGeneral(NA_SE_SY_WARNING_COUNT_N, &gSfxDefaultPos, 4, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_WARNING_COUNT_N, &gSfxDefaultPos, 4, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultReverb); } } } @@ -4003,8 +4003,8 @@ void Interface_Update(PlayState* play) { gSaveContext.health += 4; if ((gSaveContext.health & 0xF) < 4) { - Audio_PlaySoundGeneral(NA_SE_SY_HP_RECOVER, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_HP_RECOVER, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } osSyncPrintf("now_life=%d max_life=%d\n", gSaveContext.health, gSaveContext.healthCapacity); @@ -4042,8 +4042,8 @@ void Interface_Update(PlayState* play) { if (gSaveContext.rupees < CUR_CAPACITY(UPG_WALLET)) { gSaveContext.rupeeAccumulator--; gSaveContext.rupees++; - Audio_PlaySoundGeneral(NA_SE_SY_RUPY_COUNT, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_RUPY_COUNT, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } else { // "Rupee Amount MAX = %d" osSyncPrintf("ルピー数MAX = %d\n", CUR_CAPACITY(UPG_WALLET)); @@ -4059,13 +4059,13 @@ void Interface_Update(PlayState* play) { gSaveContext.rupees = 0; } - Audio_PlaySoundGeneral(NA_SE_SY_RUPY_COUNT, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_RUPY_COUNT, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } else { gSaveContext.rupeeAccumulator++; gSaveContext.rupees--; - Audio_PlaySoundGeneral(NA_SE_SY_RUPY_COUNT, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_RUPY_COUNT, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } } else { gSaveContext.rupeeAccumulator = 0; diff --git a/src/code/z_play.c b/src/code/z_play.c index 2905e4ba03..7a2bd4e52f 100644 --- a/src/code/z_play.c +++ b/src/code/z_play.c @@ -36,9 +36,9 @@ void Play_SetViewpoint(PlayState* this, s16 viewpoint) { if ((R_SCENE_CAM_TYPE != SCENE_CAM_TYPE_FIXED_SHOP_VIEWPOINT) && (gSaveContext.cutsceneIndex < 0xFFF0)) { // Play a sfx when the player toggles the camera - Audio_PlaySoundGeneral((viewpoint == VIEWPOINT_LOCKED) ? NA_SE_SY_CAMERA_ZOOM_DOWN : NA_SE_SY_CAMERA_ZOOM_UP, - &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultReverb); + Audio_PlaySfxGeneral((viewpoint == VIEWPOINT_LOCKED) ? NA_SE_SY_CAMERA_ZOOM_DOWN : NA_SE_SY_CAMERA_ZOOM_UP, + &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultReverb); } Play_ChangeViewpointBgCamIndex(this); @@ -259,7 +259,7 @@ void Play_Init(GameState* thisx) { func_80112098(this); Message_Init(this); GameOver_Init(this); - SoundSource_InitAll(this); + SfxSource_InitAll(this); Effect_InitContext(this); EffectSs_InitInfo(this, 0x55); CollisionCheck_InitContext(this, &this->colChkCtx); @@ -752,9 +752,8 @@ void Play_Update(PlayState* this) { break; case TRANS_MODE_SANDSTORM: - Audio_PlaySoundGeneral(NA_SE_EV_SAND_STORM - SFX_FLAG, &gSfxDefaultPos, 4, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EV_SAND_STORM - SFX_FLAG, &gSfxDefaultPos, 4, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); if (this->transitionTrigger == TRANS_TRIGGER_END) { if (this->envCtx.sandstormPrimA < 110) { @@ -788,9 +787,8 @@ void Play_Update(PlayState* this) { break; case TRANS_MODE_SANDSTORM_END: - Audio_PlaySoundGeneral(NA_SE_EV_SAND_STORM - SFX_FLAG, &gSfxDefaultPos, 4, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EV_SAND_STORM - SFX_FLAG, &gSfxDefaultPos, 4, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); if (this->transitionTrigger == TRANS_TRIGGER_END) { if (this->envCtx.sandstormPrimA <= 0) { @@ -922,8 +920,8 @@ void Play_Update(PlayState* this) { // "Changing viewpoint is prohibited during the cutscene" osSyncPrintf(VT_FGCOL(CYAN) "デモ中につき視点変更を禁止しております\n" VT_RST); } else if (R_SCENE_CAM_TYPE == SCENE_CAM_TYPE_FIXED_SHOP_VIEWPOINT) { - Audio_PlaySoundGeneral(NA_SE_SY_ERROR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_ERROR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } else { // C-Up toggle for houses, move between pivot camera and fixed camera // Toggle viewpoint between VIEWPOINT_LOCKED and VIEWPOINT_PIVOT @@ -959,7 +957,7 @@ void Play_Update(PlayState* this) { AnimationContext_Update(this, &this->animationCtx); PLAY_LOG(3771); - SoundSource_UpdateAll(this); + SfxSource_UpdateAll(this); PLAY_LOG(3777); ShrinkWindow_Update(R_UPDATE_RATE); diff --git a/src/code/z_sound_source.c b/src/code/z_sfx_source.c similarity index 50% rename from src/code/z_sound_source.c rename to src/code/z_sfx_source.c index 6e89130d7d..c80e0c9b45 100644 --- a/src/code/z_sound_source.c +++ b/src/code/z_sfx_source.c @@ -1,19 +1,19 @@ #include "global.h" -void SoundSource_InitAll(PlayState* play) { - SoundSource* sources = &play->soundSources[0]; +void SfxSource_InitAll(PlayState* play) { + SfxSource* sources = &play->sfxSources[0]; s32 i; // clang-format off - for (i = 0; i < ARRAY_COUNT(play->soundSources); i++) { sources[i].countdown = 0; } + for (i = 0; i < ARRAY_COUNT(play->sfxSources); i++) { sources[i].countdown = 0; } // clang-format on } -void SoundSource_UpdateAll(PlayState* play) { - SoundSource* source = &play->soundSources[0]; +void SfxSource_UpdateAll(PlayState* play) { + SfxSource* source = &play->sfxSources[0]; s32 i; - for (i = 0; i < ARRAY_COUNT(play->soundSources); i++) { + for (i = 0; i < ARRAY_COUNT(play->sfxSources); i++) { if (source->countdown != 0) { if (DECR(source->countdown) == 0) { Audio_StopSfxByPos(&source->projectedPos); @@ -26,20 +26,20 @@ void SoundSource_UpdateAll(PlayState* play) { } } -void SoundSource_PlaySfxAtFixedWorldPos(PlayState* play, Vec3f* worldPos, s32 duration, u16 sfxId) { +void SfxSource_PlaySfxAtFixedWorldPos(PlayState* play, Vec3f* worldPos, s32 duration, u16 sfxId) { s32 countdown; - SoundSource* source; + SfxSource* source; s32 smallestCountdown = 0xFFFF; - SoundSource* backupSource; + SfxSource* backupSource; s32 i; - source = &play->soundSources[0]; - for (i = 0; i < ARRAY_COUNT(play->soundSources); i++) { + source = &play->sfxSources[0]; + for (i = 0; i < ARRAY_COUNT(play->sfxSources); i++) { if (source->countdown == 0) { break; } - // Store the sound source with the smallest remaining countdown + // Store the sfx source with the smallest remaining countdown countdown = source->countdown; if (countdown < smallestCountdown) { smallestCountdown = countdown; @@ -48,8 +48,8 @@ void SoundSource_PlaySfxAtFixedWorldPos(PlayState* play, Vec3f* worldPos, s32 du source++; } - // If no sound source is available, replace the sound source with the smallest remaining countdown - if (i >= ARRAY_COUNT(play->soundSources)) { + // If no sfx source is available, replace the sfx source with the smallest remaining countdown + if (i >= ARRAY_COUNT(play->sfxSources)) { source = backupSource; Audio_StopSfxByPos(&source->projectedPos); } @@ -58,6 +58,6 @@ void SoundSource_PlaySfxAtFixedWorldPos(PlayState* play, Vec3f* worldPos, s32 du source->countdown = duration; SkinMatrix_Vec3fMtxFMultXYZ(&play->viewProjectionMtxF, &source->worldPos, &source->projectedPos); - Audio_PlaySoundGeneral(sfxId, &source->projectedPos, 4, &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultReverb); + Audio_PlaySfxGeneral(sfxId, &source->projectedPos, 4, &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultReverb); } diff --git a/src/overlays/actors/ovl_Arms_Hook/z_arms_hook.c b/src/overlays/actors/ovl_Arms_Hook/z_arms_hook.c index 01e8e6ea5f..7430971d4d 100644 --- a/src/overlays/actors/ovl_Arms_Hook/z_arms_hook.c +++ b/src/overlays/actors/ovl_Arms_Hook/z_arms_hook.c @@ -180,8 +180,8 @@ void ArmsHook_Shoot(ArmsHook* this, PlayState* play) { } } this->timer = 0; - Audio_PlaySoundGeneral(NA_SE_IT_ARROW_STICK_CRE, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_IT_ARROW_STICK_CRE, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } else if (DECR(this->timer) == 0) { grabbed = this->grabbed; if (grabbed != NULL) { @@ -274,12 +274,12 @@ void ArmsHook_Shoot(ArmsHook* this, PlayState* play) { } } func_80865044(this); - Audio_PlaySoundGeneral(NA_SE_IT_HOOKSHOT_STICK_OBJ, &this->actor.projectedPos, 4, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_IT_HOOKSHOT_STICK_OBJ, &this->actor.projectedPos, 4, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } else { CollisionCheck_SpawnShieldParticlesMetal(play, &this->actor.world.pos); - Audio_PlaySoundGeneral(NA_SE_IT_HOOKSHOT_REFLECT, &this->actor.projectedPos, 4, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_IT_HOOKSHOT_REFLECT, &this->actor.projectedPos, 4, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } } else if (CHECK_BTN_ANY(play->state.input[0].press.button, (BTN_A | BTN_B | BTN_R | BTN_CUP | BTN_CLEFT | BTN_CRIGHT | BTN_CDOWN))) { diff --git a/src/overlays/actors/ovl_Arrow_Fire/z_arrow_fire.c b/src/overlays/actors/ovl_Arrow_Fire/z_arrow_fire.c index 913f973a91..3a86840708 100644 --- a/src/overlays/actors/ovl_Arrow_Fire/z_arrow_fire.c +++ b/src/overlays/actors/ovl_Arrow_Fire/z_arrow_fire.c @@ -164,7 +164,7 @@ void ArrowFire_Fly(ArrowFire* this, PlayState* play) { func_80865ECC(&this->unkPos, &this->actor.world.pos, 0.05f); if (arrow->hitFlags & 1) { - Audio_PlayActorSound2(&this->actor, NA_SE_IT_EXPLOSION_FRAME); + Audio_PlayActorSfx2(&this->actor, NA_SE_IT_EXPLOSION_FRAME); ArrowFire_SetupAction(this, ArrowFire_Hit); this->timer = 32; this->alpha = 255; diff --git a/src/overlays/actors/ovl_Arrow_Ice/z_arrow_ice.c b/src/overlays/actors/ovl_Arrow_Ice/z_arrow_ice.c index 73d8b65b34..40bfcc4ace 100644 --- a/src/overlays/actors/ovl_Arrow_Ice/z_arrow_ice.c +++ b/src/overlays/actors/ovl_Arrow_Ice/z_arrow_ice.c @@ -165,7 +165,7 @@ void ArrowIce_Fly(ArrowIce* this, PlayState* play) { func_80867E8C(&this->unkPos, &this->actor.world.pos, 0.05f); if (arrow->hitFlags & 1) { - Audio_PlayActorSound2(&this->actor, NA_SE_IT_EXPLOSION_ICE); + Audio_PlayActorSfx2(&this->actor, NA_SE_IT_EXPLOSION_ICE); ArrowIce_SetupAction(this, ArrowIce_Hit); this->timer = 32; this->alpha = 255; diff --git a/src/overlays/actors/ovl_Arrow_Light/z_arrow_light.c b/src/overlays/actors/ovl_Arrow_Light/z_arrow_light.c index 414bb1343c..292bceb96d 100644 --- a/src/overlays/actors/ovl_Arrow_Light/z_arrow_light.c +++ b/src/overlays/actors/ovl_Arrow_Light/z_arrow_light.c @@ -163,7 +163,7 @@ void ArrowLight_Fly(ArrowLight* this, PlayState* play) { func_80869E6C(&this->unkPos, &this->actor.world.pos, 0.05f); if (arrow->hitFlags & 1) { - Audio_PlayActorSound2(&this->actor, NA_SE_IT_EXPLOSION_LIGHT); + Audio_PlayActorSfx2(&this->actor, NA_SE_IT_EXPLOSION_LIGHT); ArrowLight_SetupAction(this, ArrowLight_Hit); this->timer = 32; this->alpha = 255; diff --git a/src/overlays/actors/ovl_Bg_Bdan_Objects/z_bg_bdan_objects.c b/src/overlays/actors/ovl_Bg_Bdan_Objects/z_bg_bdan_objects.c index 471cf5fbfe..60b600dcea 100644 --- a/src/overlays/actors/ovl_Bg_Bdan_Objects/z_bg_bdan_objects.c +++ b/src/overlays/actors/ovl_Bg_Bdan_Objects/z_bg_bdan_objects.c @@ -203,7 +203,7 @@ void func_8086C054(BgBdanObjects* this, PlayState* play) { void func_8086C1A0(BgBdanObjects* this, PlayState* play) { if (Math_SmoothStepToF(&this->dyna.actor.world.pos.y, this->dyna.actor.home.pos.y + 500.0f, 0.5f, 7.5f, 1.0f) < 0.1f) { - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EV_BUYOSTAND_STOP_A); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EV_BUYOSTAND_STOP_A); this->actionFunc = func_8086C29C; this->timer = 30; BgBdanObjects_SetContactRu1(this, 2); @@ -252,7 +252,7 @@ void func_8086C3D8(BgBdanObjects* this, PlayState* play) { this->dyna.actor.velocity.y)) { this->dyna.actor.world.rot.y = 0; this->timer = 60; - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EV_BUYOSTAND_STOP_U); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EV_BUYOSTAND_STOP_U); this->dyna.actor.child->world.pos.y = this->dyna.actor.world.pos.y + 140.0f; this->actionFunc = func_8086C5BC; OnePointCutscene_Init(play, 3080, -99, this->dyna.actor.child, CAM_ID_MAIN); @@ -336,7 +336,7 @@ void func_8086C76C(BgBdanObjects* this, PlayState* play) { void func_8086C7D0(BgBdanObjects* this, PlayState* play) { if (Math_SmoothStepToF(&this->dyna.actor.world.pos.y, this->dyna.actor.home.pos.y + 965.0f, 0.5f, 15.0f, 0.2f) < 0.01f) { - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EV_BUYOSTAND_STOP_A); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EV_BUYOSTAND_STOP_A); this->actionFunc = BgBdanObjects_DoNothing; } else { func_8002F974(&this->dyna.actor, NA_SE_EV_BUYOSTAND_RISING - SFX_FLAG); @@ -428,7 +428,7 @@ void func_8086CB8C(BgBdanObjects* this, PlayState* play) { this->dyna.actor.world.pos.y = this->dyna.actor.home.pos.y - (cosf(this->timer * (M_PI / 50.0f)) * 200.0f); if (this->timer == 0) { - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EV_BUYOSTAND_STOP_U); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EV_BUYOSTAND_STOP_U); this->actionFunc = BgBdanObjects_DoNothing; // Using `CAM_ID_NONE` here defaults to the active camera Play_CopyCamera(play, CAM_ID_MAIN, CAM_ID_NONE); diff --git a/src/overlays/actors/ovl_Bg_Bdan_Switch/z_bg_bdan_switch.c b/src/overlays/actors/ovl_Bg_Bdan_Switch/z_bg_bdan_switch.c index e5aed1b8fe..c86e52d15f 100644 --- a/src/overlays/actors/ovl_Bg_Bdan_Switch/z_bg_bdan_switch.c +++ b/src/overlays/actors/ovl_Bg_Bdan_Switch/z_bg_bdan_switch.c @@ -272,7 +272,7 @@ void func_8086D694(BgBdanSwitch* this, PlayState* play) { this->unk_1C8 -= 0.2f; if (this->unk_1C8 <= 0.1f) { func_8086D730(this); - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EV_FOOT_SWITCH); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EV_FOOT_SWITCH); func_800AA000(this->dyna.actor.xyzDistToPlayerSq, 0x78, 0x14, 0xA); } } @@ -312,7 +312,7 @@ void func_8086D80C(BgBdanSwitch* this, PlayState* play) { this->unk_1C8 += 0.2f; if (this->unk_1C8 >= 1.0f) { func_8086D5C4(this); - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EV_FOOT_SWITCH); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EV_FOOT_SWITCH); } } @@ -335,7 +335,7 @@ void func_8086D8CC(BgBdanSwitch* this, PlayState* play) { this->unk_1C8 -= 0.2f; if (this->unk_1C8 <= 0.6f) { func_8086D9F8(this); - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EV_FOOT_SWITCH); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EV_FOOT_SWITCH); func_800AA000(this->dyna.actor.xyzDistToPlayerSq, 0x78, 0x14, 0xA); } } @@ -350,7 +350,7 @@ void func_8086D95C(BgBdanSwitch* this, PlayState* play) { this->unk_1C8 -= 0.2f; if (this->unk_1C8 <= 0.1f) { func_8086DB24(this); - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EV_FOOT_SWITCH); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EV_FOOT_SWITCH); func_800AA000(this->dyna.actor.xyzDistToPlayerSq, 0x78, 0x14, 0xA); } } @@ -389,7 +389,7 @@ void func_8086DAC4(BgBdanSwitch* this, PlayState* play) { this->unk_1C8 += 0.2f; if (this->unk_1C8 >= 1.0f) { func_8086D86C(this); - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EV_FOOT_SWITCH); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EV_FOOT_SWITCH); } } @@ -437,7 +437,7 @@ void func_8086DC48(BgBdanSwitch* this, PlayState* play) { this->unk_1C8 -= 0.3f; if (this->unk_1C8 <= 1.0f) { func_8086DCCC(this); - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EV_FOOT_SWITCH); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EV_FOOT_SWITCH); } } } @@ -475,7 +475,7 @@ void func_8086DDC0(BgBdanSwitch* this, PlayState* play) { this->unk_1C8 += 0.3f; if (this->unk_1C8 >= 2.0f) { func_8086DB4C(this); - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EV_FOOT_SWITCH); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EV_FOOT_SWITCH); } } } diff --git a/src/overlays/actors/ovl_Bg_Bowl_Wall/z_bg_bowl_wall.c b/src/overlays/actors/ovl_Bg_Bowl_Wall/z_bg_bowl_wall.c index 26b9b8faa0..a3620305b5 100644 --- a/src/overlays/actors/ovl_Bg_Bowl_Wall/z_bg_bowl_wall.c +++ b/src/overlays/actors/ovl_Bg_Bowl_Wall/z_bg_bowl_wall.c @@ -149,7 +149,7 @@ void BgBowlWall_FallDoEffects(BgBowlWall* this, PlayState* play) { EffectSsBomb2_SpawnLayered(play, &effectPos, &effectVelocity, &effectAccel, 100, 30); effectPos.y = -50.0f; EffectSsHahen_SpawnBurst(play, &effectPos, 10.0f, 0, 50, 15, 3, HAHEN_OBJECT_DEFAULT, 10, NULL); - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_IT_BOMB_EXPLOSION); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_IT_BOMB_EXPLOSION); } quakeIndex = Quake_Add(GET_ACTIVE_CAM(play), 1); Quake_SetSpeed(quakeIndex, 0x7FFF); diff --git a/src/overlays/actors/ovl_Bg_Breakwall/z_bg_breakwall.c b/src/overlays/actors/ovl_Bg_Breakwall/z_bg_breakwall.c index 6e34546e27..89027f53b7 100644 --- a/src/overlays/actors/ovl_Bg_Breakwall/z_bg_breakwall.c +++ b/src/overlays/actors/ovl_Bg_Breakwall/z_bg_breakwall.c @@ -243,23 +243,23 @@ void BgBreakwall_Wait(BgBreakwall* this, PlayState* play) { Flags_SetSwitch(play, this->dyna.actor.params & 0x3F); if (wallType == BWALL_KD_FLOOR) { - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EV_EXPLOSION); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EV_EXPLOSION); } else { - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EV_WALL_BROKEN); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EV_WALL_BROKEN); } if ((wallType == BWALL_DC_ENTRANCE) && !Flags_GetEventChkInf(EVENTCHKINF_B0)) { Flags_SetEventChkInf(EVENTCHKINF_B0); Cutscene_SetSegment(play, gDcOpeningCs); gSaveContext.cutsceneTrigger = 1; - Audio_PlaySoundGeneral(NA_SE_SY_CORRECT_CHIME, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_CORRECT_CHIME, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); func_8002DF54(play, NULL, 0x31); } if (this->dyna.actor.params < 0) { - Audio_PlaySoundGeneral(NA_SE_SY_TRE_BOX_APPEAR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_TRE_BOX_APPEAR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } Actor_Kill(&this->dyna.actor); diff --git a/src/overlays/actors/ovl_Bg_Ddan_Jd/z_bg_ddan_jd.c b/src/overlays/actors/ovl_Bg_Ddan_Jd/z_bg_ddan_jd.c index f5d84f45a2..6e9e370741 100644 --- a/src/overlays/actors/ovl_Bg_Ddan_Jd/z_bg_ddan_jd.c +++ b/src/overlays/actors/ovl_Bg_Ddan_Jd/z_bg_ddan_jd.c @@ -162,7 +162,7 @@ void BgDdanJd_Move(BgDdanJd* this, PlayState* play) { this->actionFunc = BgDdanJd_Idle; OnePointCutscene_Init(play, 3060, -99, &this->dyna.actor, CAM_ID_MAIN); } else if (Math_StepToF(&this->dyna.actor.world.pos.y, this->targetY, this->ySpeed)) { - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EV_PILLAR_MOVE_STOP); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EV_PILLAR_MOVE_STOP); this->actionFunc = BgDdanJd_Idle; } BgDdanJd_MoveEffects(this, play); diff --git a/src/overlays/actors/ovl_Bg_Ddan_Kd/z_bg_ddan_kd.c b/src/overlays/actors/ovl_Bg_Ddan_Kd/z_bg_ddan_kd.c index bc77673f66..118792ffc9 100644 --- a/src/overlays/actors/ovl_Bg_Ddan_Kd/z_bg_ddan_kd.c +++ b/src/overlays/actors/ovl_Bg_Ddan_Kd/z_bg_ddan_kd.c @@ -170,8 +170,8 @@ void BgDdanKd_LowerStairs(BgDdanKd* this, PlayState* play) { func_8003555C(play, &pos1, &velocity, &accel); } Camera_AddQuake(&play->mainCamera, 0, effectStrength * 0.6f, 3); - Audio_PlaySoundGeneral(NA_SE_EV_PILLAR_SINK - SFX_FLAG, &this->dyna.actor.projectedPos, 4, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EV_PILLAR_SINK - SFX_FLAG, &this->dyna.actor.projectedPos, 4, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } } diff --git a/src/overlays/actors/ovl_Bg_Dodoago/z_bg_dodoago.c b/src/overlays/actors/ovl_Bg_Dodoago/z_bg_dodoago.c index 043d4dd68f..50052e3218 100644 --- a/src/overlays/actors/ovl_Bg_Dodoago/z_bg_dodoago.c +++ b/src/overlays/actors/ovl_Bg_Dodoago/z_bg_dodoago.c @@ -158,19 +158,19 @@ void BgDodoago_WaitExplosives(BgDodoago* this, PlayState* play) { ((play->roomCtx.unk_74[BGDODOAGO_EYE_RIGHT] == 255) && (this->state == BGDODOAGO_EYE_LEFT))) { Flags_SetSwitch(play, this->dyna.actor.params & 0x3F); this->state = 0; - Audio_PlaySoundGeneral(NA_SE_SY_CORRECT_CHIME, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_CORRECT_CHIME, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); BgDodoago_SetupAction(this, BgDodoago_OpenJaw); OnePointCutscene_Init(play, 3380, 160, &this->dyna.actor, CAM_ID_MAIN); } else if (play->roomCtx.unk_74[this->state] == 0) { OnePointCutscene_Init(play, 3065, 40, &this->dyna.actor, CAM_ID_MAIN); BgDodoago_SetupAction(this, BgDodoago_LightOneEye); - Audio_PlaySoundGeneral(NA_SE_SY_CORRECT_CHIME, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_CORRECT_CHIME, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } else { OnePointCutscene_Init(play, 3065, 20, &this->dyna.actor, CAM_ID_MAIN); - Audio_PlaySoundGeneral(NA_SE_SY_ERROR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_ERROR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); sTimer += 30; return; } @@ -248,11 +248,11 @@ void BgDodoago_OpenJaw(BgDodoago* this, PlayState* play) { if (Math_SmoothStepToS(&this->dyna.actor.shape.rot.x, 0x1333, 110 - this->state, 0x3E8, 0x32) == 0) { BgDodoago_SetupAction(this, BgDodoago_DoNothing); - Audio_PlaySoundGeneral(NA_SE_EV_STONE_BOUND, &this->dyna.actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EV_STONE_BOUND, &this->dyna.actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } else { - Audio_PlaySoundGeneral(NA_SE_EV_STONE_STATUE_OPEN - SFX_FLAG, &this->dyna.actor.projectedPos, 4, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EV_STONE_STATUE_OPEN - SFX_FLAG, &this->dyna.actor.projectedPos, 4, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } } diff --git a/src/overlays/actors/ovl_Bg_Dy_Yoseizo/z_bg_dy_yoseizo.c b/src/overlays/actors/ovl_Bg_Dy_Yoseizo/z_bg_dy_yoseizo.c index 9fc9460452..02668fa0a5 100644 --- a/src/overlays/actors/ovl_Bg_Dy_Yoseizo/z_bg_dy_yoseizo.c +++ b/src/overlays/actors/ovl_Bg_Dy_Yoseizo/z_bg_dy_yoseizo.c @@ -297,7 +297,7 @@ void BgDyYoseizo_ChooseType(BgDyYoseizo* this, PlayState* play) { OnePointCutscene_Init(play, 8604, -99, NULL, CAM_ID_MAIN); }; - Audio_PlayActorSound2(&this->actor, NA_SE_EV_GREAT_FAIRY_APPEAR); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_GREAT_FAIRY_APPEAR); this->actor.draw = BgDyYoseizo_Draw; this->actionFunc = BgDyYoseizo_SetupSpinGrow_NoReward; } @@ -314,7 +314,7 @@ void BgDyYoseizo_SetupSpinGrow_NoReward(BgDyYoseizo* this, PlayState* play) { ANIMMODE_ONCE, -10.0f); } - Audio_PlayActorSound2(&this->actor, NA_SE_VO_FR_LAUGH_0); + Audio_PlayActorSfx2(&this->actor, NA_SE_VO_FR_LAUGH_0); func_8002DF54(play, &this->actor, 1); this->actionFunc = BgDyYoseizo_SpinGrow_NoReward; } @@ -410,7 +410,7 @@ void BgDyYoseizo_SetupHealPlayer_NoReward(BgDyYoseizo* this, PlayState* play) { -10.0f); } - Audio_PlayActorSound2(&this->actor, NA_SE_VO_FR_SMILE_0); + Audio_PlayActorSfx2(&this->actor, NA_SE_VO_FR_SMILE_0); this->mouthState = 1; this->actionFunc = BgDyYoseizo_HealPlayer_NoReward; } @@ -521,8 +521,8 @@ void BgDyYoseizo_SetupSpinShrink(BgDyYoseizo* this, PlayState* play) { this->vanishTimer = 5; this->scaleFraction = 0.0f; this->heightFraction = 0.0f; - Audio_PlayActorSound2(&this->actor, NA_SE_VO_FR_LAUGH_0); - Audio_PlayActorSound2(&this->actor, NA_SE_EV_GREAT_FAIRY_VANISH); + Audio_PlayActorSfx2(&this->actor, NA_SE_VO_FR_LAUGH_0); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_GREAT_FAIRY_VANISH); this->actionFunc = BgDyYoseizo_SpinShrink; } @@ -582,7 +582,7 @@ void BgDyYoseizo_SetupSpinGrow_Reward(BgDyYoseizo* this, PlayState* play) { ANIMMODE_ONCE, -10.0f); } - Audio_PlayActorSound2(&this->actor, NA_SE_EV_GREAT_FAIRY_APPEAR); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_GREAT_FAIRY_APPEAR); this->actionFunc = BgDyYoseizo_SpinGrowSetupGive_Reward; } } @@ -839,10 +839,10 @@ void BgDyYoseizo_Update(Actor* thisx, PlayState* play2) { } if (sfx == 1) { - Audio_PlayActorSound2(&this->actor, NA_SE_VO_FR_SMILE_0); + Audio_PlayActorSfx2(&this->actor, NA_SE_VO_FR_SMILE_0); } if (sfx == 2) { - Audio_PlayActorSound2(&this->actor, NA_SE_VO_FR_LAUGH_0); + Audio_PlayActorSfx2(&this->actor, NA_SE_VO_FR_LAUGH_0); } } @@ -958,7 +958,7 @@ void BgDyYoseizo_UpdateEffects(BgDyYoseizo* this, PlayState* play) { effect->velocity.y += effect->accel.y; effect->velocity.z += effect->accel.z; } else { - Audio_PlayActorSound2(&this->actor, NA_SE_EV_HEALING - SFX_FLAG); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_HEALING - SFX_FLAG); sp94 = player->actor.world.pos; sp94.y = player->actor.world.pos.y - 150.0f; diff --git a/src/overlays/actors/ovl_Bg_Ganon_Otyuka/z_bg_ganon_otyuka.c b/src/overlays/actors/ovl_Bg_Ganon_Otyuka/z_bg_ganon_otyuka.c index c81e7155d4..b1923c28a7 100644 --- a/src/overlays/actors/ovl_Bg_Ganon_Otyuka/z_bg_ganon_otyuka.c +++ b/src/overlays/actors/ovl_Bg_Ganon_Otyuka/z_bg_ganon_otyuka.c @@ -212,17 +212,17 @@ void BgGanonOtyuka_Fall(BgGanonOtyuka* this, PlayState* play) { } func_80033DB8(play, 10, 15); - SoundSource_PlaySfxAtFixedWorldPos(play, &this->dyna.actor.world.pos, 40, NA_SE_EV_BOX_BREAK); + SfxSource_PlaySfxAtFixedWorldPos(play, &this->dyna.actor.world.pos, 40, NA_SE_EV_BOX_BREAK); } Actor_Kill(&this->dyna.actor); } } else { if (this->dropTimer == 1) { - Audio_PlaySoundGeneral(NA_SE_EV_STONEDOOR_STOP, &this->dyna.actor.projectedPos, 4, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EV_STONEDOOR_STOP, &this->dyna.actor.projectedPos, 4, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } else { - Audio_PlaySoundGeneral(NA_SE_EV_BLOCKSINK - SFX_FLAG, &this->dyna.actor.projectedPos, 4, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EV_BLOCKSINK - SFX_FLAG, &this->dyna.actor.projectedPos, 4, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } Math_ApproachF(&this->dyna.actor.world.pos.y, -1000.0f, 1.0f, this->dyna.actor.speedXZ); Math_ApproachF(&this->dyna.actor.speedXZ, 100.0f, 1.0f, 0.1f); diff --git a/src/overlays/actors/ovl_Bg_Gate_Shutter/z_bg_gate_shutter.c b/src/overlays/actors/ovl_Bg_Gate_Shutter/z_bg_gate_shutter.c index f1ade5dc20..dc4801e8d1 100644 --- a/src/overlays/actors/ovl_Bg_Gate_Shutter/z_bg_gate_shutter.c +++ b/src/overlays/actors/ovl_Bg_Gate_Shutter/z_bg_gate_shutter.c @@ -78,11 +78,11 @@ void func_80878300(BgGateShutter* this, PlayState* play) { Actor* thisx = &this->dyna.actor; if (this->unk_178 == 0) { - Audio_PlayActorSound2(thisx, NA_SE_EV_METALGATE_OPEN - SFX_FLAG); + Audio_PlayActorSfx2(thisx, NA_SE_EV_METALGATE_OPEN - SFX_FLAG); thisx->world.pos.x -= 2.0f; Math_ApproachF(&thisx->world.pos.z, -1375.0f, 0.8f, 0.3f); if (thisx->world.pos.x < -89.0f) { - Audio_PlayActorSound2(thisx, NA_SE_EV_BRIDGE_OPEN_STOP); + Audio_PlayActorSfx2(thisx, NA_SE_EV_BRIDGE_OPEN_STOP); this->unk_178 = 0x1E; this->actionFunc = func_808783AC; } @@ -100,12 +100,12 @@ void func_808783D4(BgGateShutter* this, PlayState* play) { Actor* thisx = &this->dyna.actor; if (this->unk_178 == 0) { - Audio_PlayActorSound2(thisx, NA_SE_EV_METALGATE_OPEN - SFX_FLAG); + Audio_PlayActorSfx2(thisx, NA_SE_EV_METALGATE_OPEN - SFX_FLAG); thisx->world.pos.x += 2.0f; Math_ApproachF(&thisx->world.pos.z, -1350.0f, 0.8f, 0.3f); if (thisx->world.pos.x > 90.0f) { thisx->world.pos.x = 91.0f; - Audio_PlayActorSound2(thisx, NA_SE_EV_BRIDGE_OPEN_STOP); + Audio_PlayActorSfx2(thisx, NA_SE_EV_BRIDGE_OPEN_STOP); this->unk_178 = 30; this->actionFunc = func_808783AC; } diff --git a/src/overlays/actors/ovl_Bg_Gnd_Darkmeiro/z_bg_gnd_darkmeiro.c b/src/overlays/actors/ovl_Bg_Gnd_Darkmeiro/z_bg_gnd_darkmeiro.c index ee3c834fbb..dd0e2dbcf3 100644 --- a/src/overlays/actors/ovl_Bg_Gnd_Darkmeiro/z_bg_gnd_darkmeiro.c +++ b/src/overlays/actors/ovl_Bg_Gnd_Darkmeiro/z_bg_gnd_darkmeiro.c @@ -123,8 +123,8 @@ void BgGndDarkmeiro_UpdateBlockTimer(BgGndDarkmeiro* this, PlayState* play) { } else { this->actionFlags |= 4; this->timer1 = 304; - Audio_PlaySoundGeneral(NA_SE_EV_RED_EYE, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EV_RED_EYE, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } } @@ -139,8 +139,8 @@ void BgGndDarkmeiro_UpdateBlockTimer(BgGndDarkmeiro* this, PlayState* play) { } else { this->actionFlags |= 8; this->timer2 = 304; - Audio_PlaySoundGeneral(NA_SE_EV_RED_EYE, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EV_RED_EYE, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } } diff --git a/src/overlays/actors/ovl_Bg_Gnd_Firemeiro/z_bg_gnd_firemeiro.c b/src/overlays/actors/ovl_Bg_Gnd_Firemeiro/z_bg_gnd_firemeiro.c index b2530a3ec4..1943c3055c 100644 --- a/src/overlays/actors/ovl_Bg_Gnd_Firemeiro/z_bg_gnd_firemeiro.c +++ b/src/overlays/actors/ovl_Bg_Gnd_Firemeiro/z_bg_gnd_firemeiro.c @@ -97,7 +97,7 @@ void BgGndFiremeiro_Shake(BgGndFiremeiro* this, PlayState* play) { this->dyna.actor.world.pos.y += Math_CosS(this->timer * 0x7FFF); if (!(this->timer % 4)) { - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EV_BLOCK_SHAKE); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EV_BLOCK_SHAKE); } } else { this->timer = 10; diff --git a/src/overlays/actors/ovl_Bg_Gnd_Iceblock/z_bg_gnd_iceblock.c b/src/overlays/actors/ovl_Bg_Gnd_Iceblock/z_bg_gnd_iceblock.c index 98e7404aa9..68616ba3b1 100644 --- a/src/overlays/actors/ovl_Bg_Gnd_Iceblock/z_bg_gnd_iceblock.c +++ b/src/overlays/actors/ovl_Bg_Gnd_Iceblock/z_bg_gnd_iceblock.c @@ -313,7 +313,7 @@ void BgGndIceblock_Slide(BgGndIceblock* this, PlayState* play) { thisx->speedXZ = 0.0f; this->targetPos.x = thisx->world.pos.x; this->targetPos.z = thisx->world.pos.z; - Audio_PlayActorSound2(thisx, NA_SE_EV_BLOCK_BOUND); + Audio_PlayActorSfx2(thisx, NA_SE_EV_BLOCK_BOUND); switch (BgGndIceblock_NextAction(this)) { case GNDICE_IDLE: this->actionFunc = BgGndIceblock_Idle; diff --git a/src/overlays/actors/ovl_Bg_Gnd_Soulmeiro/z_bg_gnd_soulmeiro.c b/src/overlays/actors/ovl_Bg_Gnd_Soulmeiro/z_bg_gnd_soulmeiro.c index ea30922849..24399bcf9b 100644 --- a/src/overlays/actors/ovl_Bg_Gnd_Soulmeiro/z_bg_gnd_soulmeiro.c +++ b/src/overlays/actors/ovl_Bg_Gnd_Soulmeiro/z_bg_gnd_soulmeiro.c @@ -162,8 +162,8 @@ void func_8087B284(BgGndSoulmeiro* this, PlayState* play) { if (!Flags_GetSwitch(play, (this->actor.params >> 8) & 0x3F)) { this->actor.draw = BgGndSoulmeiro_Draw; if (this->collider.base.acFlags & AC_HIT) { - Audio_PlaySoundGeneral(NA_SE_SY_CORRECT_CHIME, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_CORRECT_CHIME, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); this->unk_198 = 40; this->actionFunc = func_8087AF38; } else { diff --git a/src/overlays/actors/ovl_Bg_Haka_Gate/z_bg_haka_gate.c b/src/overlays/actors/ovl_Bg_Haka_Gate/z_bg_haka_gate.c index d390f5f3b2..7b060071e8 100644 --- a/src/overlays/actors/ovl_Bg_Haka_Gate/z_bg_haka_gate.c +++ b/src/overlays/actors/ovl_Bg_Haka_Gate/z_bg_haka_gate.c @@ -241,7 +241,7 @@ void BgHakaGate_FloorClosed(BgHakaGate* this, PlayState* play) { this->actionFunc = BgHakaGate_DoNothing; } else { func_80078884(NA_SE_SY_ERROR); - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EV_GROUND_GATE_OPEN); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EV_GROUND_GATE_OPEN); DynaPoly_DisableCollision(play, &play->colCtx.dyna, this->dyna.bgId); this->vTimer = 60; this->actionFunc = BgHakaGate_FloorOpen; @@ -273,7 +273,7 @@ void BgHakaGate_GateWait(BgHakaGate* this, PlayState* play) { void BgHakaGate_GateOpen(BgHakaGate* this, PlayState* play) { if (Math_StepToF(&this->dyna.actor.world.pos.y, this->dyna.actor.home.pos.y + 80.0f, 1.0f)) { - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EV_METALDOOR_STOP); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EV_METALDOOR_STOP); this->dyna.actor.flags &= ~ACTOR_FLAG_4; this->actionFunc = BgHakaGate_DoNothing; } else { diff --git a/src/overlays/actors/ovl_Bg_Haka_Huta/z_bg_haka_huta.c b/src/overlays/actors/ovl_Bg_Haka_Huta/z_bg_haka_huta.c index 3408efe8ff..ccff819b8b 100644 --- a/src/overlays/actors/ovl_Bg_Haka_Huta/z_bg_haka_huta.c +++ b/src/overlays/actors/ovl_Bg_Haka_Huta/z_bg_haka_huta.c @@ -16,7 +16,7 @@ void BgHakaHuta_Update(Actor* thisx, PlayState* play); void BgHakaHuta_Draw(Actor* thisx, PlayState* play); void BgHakaHuta_SpawnDust(BgHakaHuta* this, PlayState* play); -void BgHakaHuta_PlaySound(BgHakaHuta* this, PlayState* play, u16 sfx); +void BgHakaHuta_PlaySfx(BgHakaHuta* this, PlayState* play, u16 sfx); void BgHakaHuta_SpawnEnemies(BgHakaHuta* this, PlayState* play); void BgHakaHuta_Open(BgHakaHuta* this, PlayState* play); void BgHakaHuta_SlideOpen(BgHakaHuta* this, PlayState* play); @@ -94,14 +94,14 @@ void BgHakaHuta_SpawnDust(BgHakaHuta* this, PlayState* play) { } } -void BgHakaHuta_PlaySound(BgHakaHuta* this, PlayState* play, u16 sfx) { +void BgHakaHuta_PlaySfx(BgHakaHuta* this, PlayState* play, u16 sfx) { Vec3f pos; pos.z = (this->dyna.actor.shape.rot.y == 0) ? this->dyna.actor.world.pos.z + 120.0f : this->dyna.actor.world.pos.z - 120.0f; pos.x = this->dyna.actor.world.pos.x; pos.y = this->dyna.actor.world.pos.y; - SoundSource_PlaySfxAtFixedWorldPos(play, &pos, 30, sfx); + SfxSource_PlaySfxAtFixedWorldPos(play, &pos, 30, sfx); } void BgHakaHuta_SpawnEnemies(BgHakaHuta* this, PlayState* play) { @@ -148,7 +148,7 @@ void BgHakaHuta_Open(BgHakaHuta* this, PlayState* play) { Math_StepToF(&this->dyna.actor.world.pos.x, this->dyna.actor.home.pos.x + posOffset, 2.0f); if (this->counter == 0) { this->counter = 37; - BgHakaHuta_PlaySound(this, play, NA_SE_EV_COFFIN_CAP_OPEN); + BgHakaHuta_PlaySfx(this, play, NA_SE_EV_COFFIN_CAP_OPEN); this->actionFunc = BgHakaHuta_SlideOpen; } } @@ -164,7 +164,7 @@ void BgHakaHuta_SlideOpen(BgHakaHuta* this, PlayState* play) { BgHakaHuta_SpawnDust(this, play); } if (this->counter == 0) { - BgHakaHuta_PlaySound(this, play, NA_SE_EV_COFFIN_CAP_BOUND); + BgHakaHuta_PlaySfx(this, play, NA_SE_EV_COFFIN_CAP_BOUND); this->actionFunc = func_8087D720; } } diff --git a/src/overlays/actors/ovl_Bg_Haka_Ship/z_bg_haka_ship.c b/src/overlays/actors/ovl_Bg_Haka_Ship/z_bg_haka_ship.c index 6df4947f3b..a4e7f5cded 100644 --- a/src/overlays/actors/ovl_Bg_Haka_Ship/z_bg_haka_ship.c +++ b/src/overlays/actors/ovl_Bg_Haka_Ship/z_bg_haka_ship.c @@ -70,7 +70,7 @@ void BgHakaShip_Destroy(Actor* thisx, PlayState* play) { BgHakaShip* this = (BgHakaShip*)thisx; DynaPoly_DeleteBgActor(play, &play->colCtx.dyna, this->dyna.bgId); - Audio_StopSfxByPos(&this->bellSoundPos); + Audio_StopSfxByPos(&this->bellSfxPos); } void BgHakaShip_ChildUpdatePosition(BgHakaShip* this, PlayState* play) { @@ -177,7 +177,7 @@ void BgHakaShip_CrashFall(BgHakaShip* this, PlayState* play) { Actor_Kill(child); } } else { - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EV_BLOCKSINK - SFX_FLAG); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EV_BLOCKSINK - SFX_FLAG); if ((this->dyna.actor.home.pos.y - this->dyna.actor.world.pos.y > 500.0f) && DynaPolyActor_IsPlayerOnTop(&this->dyna)) { Play_TriggerVoidOut(play); @@ -229,7 +229,7 @@ void BgHakaShip_Draw(Actor* thisx, PlayState* play) { sp2C.y = this->dyna.actor.world.pos.y + 62.0f; sp2C.z = this->dyna.actor.world.pos.z; - SkinMatrix_Vec3fMtxFMultXYZ(&play->viewProjectionMtxF, &sp2C, &this->bellSoundPos); - func_80078914(&this->bellSoundPos, NA_SE_EV_SHIP_BELL - SFX_FLAG); + SkinMatrix_Vec3fMtxFMultXYZ(&play->viewProjectionMtxF, &sp2C, &this->bellSfxPos); + func_80078914(&this->bellSfxPos, NA_SE_EV_SHIP_BELL - SFX_FLAG); } } diff --git a/src/overlays/actors/ovl_Bg_Haka_Ship/z_bg_haka_ship.h b/src/overlays/actors/ovl_Bg_Haka_Ship/z_bg_haka_ship.h index 80f35d0847..303247015e 100644 --- a/src/overlays/actors/ovl_Bg_Haka_Ship/z_bg_haka_ship.h +++ b/src/overlays/actors/ovl_Bg_Haka_Ship/z_bg_haka_ship.h @@ -14,7 +14,7 @@ typedef struct BgHakaShip { /* 0x0168 */ u8 counter; /* 0x0169 */ u8 switchFlag; /* 0x016A */ s16 yOffset; - /* 0x016C */ Vec3f bellSoundPos; + /* 0x016C */ Vec3f bellSfxPos; } BgHakaShip; // size = 0x0178 #endif diff --git a/src/overlays/actors/ovl_Bg_Haka_Trap/z_bg_haka_trap.c b/src/overlays/actors/ovl_Bg_Haka_Trap/z_bg_haka_trap.c index 45b5651df5..b8ad536922 100644 --- a/src/overlays/actors/ovl_Bg_Haka_Trap/z_bg_haka_trap.c +++ b/src/overlays/actors/ovl_Bg_Haka_Trap/z_bg_haka_trap.c @@ -301,13 +301,13 @@ void func_80880484(BgHakaTrap* this, PlayState* play) { timer = this->timer; if ((timer == 10 && !this->unk_16A) || (timer == 13 && this->unk_16A)) { - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EV_GUILLOTINE_BOUND); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EV_GUILLOTINE_BOUND); } if (this->timer == 0) { this->dyna.actor.velocity.y = 0.0f; this->timer = (this->unk_16A) ? 10 : 40; - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EV_GUILLOTINE_UP); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EV_GUILLOTINE_UP); this->actionFunc = func_808805C0; } @@ -333,7 +333,7 @@ void func_808805C0(BgHakaTrap* this, PlayState* play) { } if (this->timer == 20) { - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EV_GUILLOTINE_UP); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EV_GUILLOTINE_UP); } } @@ -379,7 +379,7 @@ void func_808806BC(BgHakaTrap* this, PlayState* play) { if (Math_StepToF(&this->dyna.actor.world.pos.y, tempf20, this->dyna.actor.velocity.y)) { if (this->dyna.actor.velocity.y > 0.01f) { - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EV_TRAP_BOUND); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EV_TRAP_BOUND); } this->dyna.actor.velocity.y = 0.0f; } diff --git a/src/overlays/actors/ovl_Bg_Haka_Tubo/z_bg_haka_tubo.c b/src/overlays/actors/ovl_Bg_Haka_Tubo/z_bg_haka_tubo.c index 9b6167a6d8..9b79115faa 100644 --- a/src/overlays/actors/ovl_Bg_Haka_Tubo/z_bg_haka_tubo.c +++ b/src/overlays/actors/ovl_Bg_Haka_Tubo/z_bg_haka_tubo.c @@ -127,7 +127,7 @@ void BgHakaTubo_Idle(BgHakaTubo* this, PlayState* play) { pos.z = this->dyna.actor.world.pos.z; pos.y = this->dyna.actor.world.pos.y + 80.0f; EffectSsBomb2_SpawnLayered(play, &pos, &sZeroVector, &sZeroVector, 100, 45); - SoundSource_PlaySfxAtFixedWorldPos(play, &this->dyna.actor.world.pos, 50, NA_SE_EV_BOX_BREAK); + SfxSource_PlaySfxAtFixedWorldPos(play, &this->dyna.actor.world.pos, 50, NA_SE_EV_BOX_BREAK); EffectSsHahen_SpawnBurst(play, &pos, 20.0f, 0, 350, 100, 50, OBJECT_HAKA_OBJECTS, 40, gEffFragments2DL); this->dropTimer = 5; this->dyna.actor.draw = NULL; diff --git a/src/overlays/actors/ovl_Bg_Haka_Zou/z_bg_haka_zou.c b/src/overlays/actors/ovl_Bg_Haka_Zou/z_bg_haka_zou.c index 3b64228ef8..2386ea723d 100644 --- a/src/overlays/actors/ovl_Bg_Haka_Zou/z_bg_haka_zou.c +++ b/src/overlays/actors/ovl_Bg_Haka_Zou/z_bg_haka_zou.c @@ -278,12 +278,12 @@ void func_80883000(BgHakaZou* this, PlayState* play) { func_80882E54(this, play); this->dyna.actor.draw = NULL; this->timer = 1; - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EV_EXPLOSION); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EV_EXPLOSION); this->actionFunc = func_80883104; } else { func_80882CC4(this, play); this->timer = 1; - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EV_WALL_BROKEN); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EV_WALL_BROKEN); this->actionFunc = func_80883104; } } else { @@ -314,7 +314,7 @@ void func_80883144(BgHakaZou* this, PlayState* play) { explosionPos.z = Rand_CenteredFloat(200.0f) + (this->dyna.actor.world.pos.z + 56.0f); EffectSsBomb2_SpawnLayered(play, &explosionPos, &sZeroVec, &sZeroVec, 150, 70); - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_IT_BOMB_EXPLOSION); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_IT_BOMB_EXPLOSION); } if (this->timer == 0) { @@ -365,7 +365,7 @@ void func_80883328(BgHakaZou* this, PlayState* play) { effectPos.x -= 112.0f; } - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EV_STONE_BOUND); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EV_STONE_BOUND); this->timer = 25; this->actionFunc = func_808834D8; } diff --git a/src/overlays/actors/ovl_Bg_Heavy_Block/z_bg_heavy_block.c b/src/overlays/actors/ovl_Bg_Heavy_Block/z_bg_heavy_block.c index 4e0649851b..e11a99b4a4 100644 --- a/src/overlays/actors/ovl_Bg_Heavy_Block/z_bg_heavy_block.c +++ b/src/overlays/actors/ovl_Bg_Heavy_Block/z_bg_heavy_block.c @@ -188,7 +188,7 @@ void BgHeavyBlock_MovePiece(BgHeavyBlock* this, PlayState* play) { thisx->velocity.x = Rand_CenteredFloat(8.0f); thisx->velocity.z = Rand_CenteredFloat(8.0f); BgHeavyBlock_SetPieceRandRot(this, 1.0f); - Audio_PlayActorSound2(thisx, NA_SE_EV_ROCK_BROKEN); + Audio_PlayActorSfx2(thisx, NA_SE_EV_ROCK_BROKEN); func_800AA000(thisx->xzDistToPlayer, 0x96, 0xA, 8); } } @@ -370,7 +370,7 @@ void BgHeavyBlock_LiftedUp(BgHeavyBlock* this, PlayState* play) { // if parent is NULL, link threw it if (Actor_HasNoParent(&this->dyna.actor, play)) { - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EV_HEAVY_THROW); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EV_HEAVY_THROW); this->actionFunc = BgHeavyBlock_Fly; } } @@ -408,10 +408,10 @@ void BgHeavyBlock_Fly(BgHeavyBlock* this, PlayState* play) { Quake_SetQuakeValues(quakeIndex, 5, 0, 0, 0); Quake_SetCountdown(quakeIndex, 999); - SoundSource_PlaySfxAtFixedWorldPos(play, &this->dyna.actor.world.pos, 30, NA_SE_EV_ELECTRIC_EXPLOSION); + SfxSource_PlaySfxAtFixedWorldPos(play, &this->dyna.actor.world.pos, 30, NA_SE_EV_ELECTRIC_EXPLOSION); return; case HEAVYBLOCK_UNBREAKABLE_OUTSIDE_CASTLE: - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EV_STONE_BOUND); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EV_STONE_BOUND); quakeIndex = Quake_Add(GET_ACTIVE_CAM(play), 3); Quake_SetSpeed(quakeIndex, 28000); @@ -422,7 +422,7 @@ void BgHeavyBlock_Fly(BgHeavyBlock* this, PlayState* play) { Flags_SetSwitch(play, (this->dyna.actor.params >> 8) & 0x3F); break; case HEAVYBLOCK_UNBREAKABLE: - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EV_BUYOSTAND_STOP_U); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EV_BUYOSTAND_STOP_U); quakeIndex = Quake_Add(GET_ACTIVE_CAM(play), 3); Quake_SetSpeed(quakeIndex, 28000); diff --git a/src/overlays/actors/ovl_Bg_Hidan_Dalm/z_bg_hidan_dalm.c b/src/overlays/actors/ovl_Bg_Hidan_Dalm/z_bg_hidan_dalm.c index 3b82395192..a0a305d4cc 100644 --- a/src/overlays/actors/ovl_Bg_Hidan_Dalm/z_bg_hidan_dalm.c +++ b/src/overlays/actors/ovl_Bg_Hidan_Dalm/z_bg_hidan_dalm.c @@ -146,7 +146,7 @@ void BgHidanDalm_Wait(BgHidanDalm* this, PlayState* play) { this->dyna.actor.speedXZ = 10.0f; Flags_SetSwitch(play, this->switchFlag); func_8002F7DC(&GET_PLAYER(play)->actor, NA_SE_IT_HAMMER_HIT); - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EV_DARUMA_VANISH); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EV_DARUMA_VANISH); } else { CollisionCheck_SetAC(play, &play->colChkCtx, &this->collider.base); } diff --git a/src/overlays/actors/ovl_Bg_Hidan_Fslift/z_bg_hidan_fslift.c b/src/overlays/actors/ovl_Bg_Hidan_Fslift/z_bg_hidan_fslift.c index c3ff87e241..f14353e0d5 100644 --- a/src/overlays/actors/ovl_Bg_Hidan_Fslift/z_bg_hidan_fslift.c +++ b/src/overlays/actors/ovl_Bg_Hidan_Fslift/z_bg_hidan_fslift.c @@ -99,7 +99,7 @@ void func_80886FCC(BgHidanFslift* this, PlayState* play) { void func_8088706C(BgHidanFslift* this, PlayState* play) { if (Math_StepToF(&this->dyna.actor.world.pos.y, this->dyna.actor.home.pos.y, 4.0f)) { - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EV_BLOCK_BOUND); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EV_BLOCK_BOUND); func_80886FB4(this); } else { func_8002F974(&this->dyna.actor, NA_SE_EV_ELEVATOR_MOVE3 - SFX_FLAG); @@ -110,7 +110,7 @@ void func_8088706C(BgHidanFslift* this, PlayState* play) { void func_808870D8(BgHidanFslift* this, PlayState* play) { if (DynaPolyActor_IsPlayerAbove(&this->dyna)) { if (Math_StepToF(&this->dyna.actor.world.pos.y, this->dyna.actor.home.pos.y + 790.0f, 4.0f)) { - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EV_BLOCK_BOUND); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EV_BLOCK_BOUND); func_80886FB4(this); } else { func_8002F974(&this->dyna.actor, NA_SE_EV_ELEVATOR_MOVE3 - SFX_FLAG); diff --git a/src/overlays/actors/ovl_Bg_Hidan_Hamstep/z_bg_hidan_hamstep.c b/src/overlays/actors/ovl_Bg_Hidan_Hamstep/z_bg_hidan_hamstep.c index 36e7c643b2..65dd3835e3 100644 --- a/src/overlays/actors/ovl_Bg_Hidan_Hamstep/z_bg_hidan_hamstep.c +++ b/src/overlays/actors/ovl_Bg_Hidan_Hamstep/z_bg_hidan_hamstep.c @@ -279,7 +279,7 @@ void func_80888734(BgHidanHamstep* this) { void func_808887C4(BgHidanHamstep* this, PlayState* play) { if (this->collider.base.acFlags & AC_HIT) { OnePointCutscene_Init(play, 3310, 100, &this->dyna.actor, CAM_ID_MAIN); - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EV_HAMMER_SWITCH); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EV_HAMMER_SWITCH); this->collider.base.acFlags = AC_NONE; BgHidanHamstep_SetupAction(this, 1); Flags_SetSwitch(play, (this->dyna.actor.params >> 8) & 0xFF); @@ -312,7 +312,7 @@ void func_80888860(BgHidanHamstep* this, PlayState* play) { Quake_SetSpeed(quakeIndex, -15536); Quake_SetQuakeValues(quakeIndex, 0, 0, 500, 0); Quake_SetCountdown(quakeIndex, 20); - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EV_BLOCK_BOUND); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EV_BLOCK_BOUND); func_800AA000(this->dyna.actor.xyzDistToPlayerSq, 255, 20, 150); func_80888638(this, play); osSyncPrintf("A(%d)\n", this->dyna.actor.params); @@ -372,7 +372,7 @@ void func_80888A58(BgHidanHamstep* this, PlayState* play) { Quake_SetQuakeValues(quakeIndex, 20, 1, 0, 0); Quake_SetCountdown(quakeIndex, 7); - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EV_BLOCK_BOUND); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EV_BLOCK_BOUND); func_800AA000(10000.0f, 255, 20, 150); func_808884C8(this, play); diff --git a/src/overlays/actors/ovl_Bg_Hidan_Hrock/z_bg_hidan_hrock.c b/src/overlays/actors/ovl_Bg_Hidan_Hrock/z_bg_hidan_hrock.c index 693362ca76..37868fff61 100644 --- a/src/overlays/actors/ovl_Bg_Hidan_Hrock/z_bg_hidan_hrock.c +++ b/src/overlays/actors/ovl_Bg_Hidan_Hrock/z_bg_hidan_hrock.c @@ -162,7 +162,7 @@ void func_808894B0(BgHidanHrock* this, PlayState* play) { if (!(this->unk_168 % 4)) { func_800AA000(this->dyna.actor.xyzDistToPlayerSq, 180, 10, 100); - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EV_BLOCK_SHAKE); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EV_BLOCK_SHAKE); } if (this->unk_168 == 0) { @@ -185,7 +185,7 @@ void func_8088960C(BgHidanHrock* this, PlayState* play) { if (Math_StepToF(&this->dyna.actor.world.pos.y, this->dyna.actor.home.pos.y, this->dyna.actor.velocity.y)) { this->dyna.actor.flags &= ~(ACTOR_FLAG_4 | ACTOR_FLAG_5); - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EV_BLOCK_BOUND); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EV_BLOCK_BOUND); if (this->dyna.actor.params == 0) { if (play->roomCtx.curRoom.num == 10) { diff --git a/src/overlays/actors/ovl_Bg_Hidan_Kousi/z_bg_hidan_kousi.c b/src/overlays/actors/ovl_Bg_Hidan_Kousi/z_bg_hidan_kousi.c index 89b616a7e7..4e46a4549a 100644 --- a/src/overlays/actors/ovl_Bg_Hidan_Kousi/z_bg_hidan_kousi.c +++ b/src/overlays/actors/ovl_Bg_Hidan_Kousi/z_bg_hidan_kousi.c @@ -134,7 +134,7 @@ void func_80889C90(BgHidanKousi* this, PlayState* play) { Math_Vec3f_DistXYZ(&this->dyna.actor.home.pos, &this->dyna.actor.world.pos)) { func_80889ACC(this); BgHidanKousi_SetupAction(this, func_80889D28); - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EV_METALDOOR_STOP); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EV_METALDOOR_STOP); } else { func_8002F974(&this->dyna.actor, NA_SE_EV_METALDOOR_SLIDE - SFX_FLAG); } diff --git a/src/overlays/actors/ovl_Bg_Hidan_Kowarerukabe/z_bg_hidan_kowarerukabe.c b/src/overlays/actors/ovl_Bg_Hidan_Kowarerukabe/z_bg_hidan_kowarerukabe.c index 4d718685f0..2a2413b470 100644 --- a/src/overlays/actors/ovl_Bg_Hidan_Kowarerukabe/z_bg_hidan_kowarerukabe.c +++ b/src/overlays/actors/ovl_Bg_Hidan_Kowarerukabe/z_bg_hidan_kowarerukabe.c @@ -307,9 +307,9 @@ void BgHidanKowarerukabe_Update(Actor* thisx, PlayState* play) { Flags_SetSwitch(play, (this->dyna.actor.params >> 8) & 0x3F); if ((this->dyna.actor.params & 0xFF) == 0) { - SoundSource_PlaySfxAtFixedWorldPos(play, &this->dyna.actor.world.pos, 40, NA_SE_EV_EXPLOSION); + SfxSource_PlaySfxAtFixedWorldPos(play, &this->dyna.actor.world.pos, 40, NA_SE_EV_EXPLOSION); } else { - SoundSource_PlaySfxAtFixedWorldPos(play, &this->dyna.actor.world.pos, 40, NA_SE_EV_WALL_BROKEN); + SfxSource_PlaySfxAtFixedWorldPos(play, &this->dyna.actor.world.pos, 40, NA_SE_EV_WALL_BROKEN); } func_80078884(NA_SE_SY_CORRECT_CHIME); diff --git a/src/overlays/actors/ovl_Bg_Hidan_Rock/z_bg_hidan_rock.c b/src/overlays/actors/ovl_Bg_Hidan_Rock/z_bg_hidan_rock.c index d2d218a43d..360345ec37 100644 --- a/src/overlays/actors/ovl_Bg_Hidan_Rock/z_bg_hidan_rock.c +++ b/src/overlays/actors/ovl_Bg_Hidan_Rock/z_bg_hidan_rock.c @@ -234,7 +234,7 @@ void func_8088B69C(BgHidanRock* this, PlayState* play) { if (!(this->timer % 4)) { func_800AA000(this->dyna.actor.xyzDistToPlayerSq, 0xB4, 0x0A, 0x64); - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EV_BLOCK_SHAKE); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EV_BLOCK_SHAKE); } } @@ -250,10 +250,10 @@ void func_8088B79C(BgHidanRock* this, PlayState* play) { this->dyna.actor.flags &= ~(ACTOR_FLAG_4 | ACTOR_FLAG_5); } - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EV_BLOCK_BOUND); - Audio_PlayActorSound2( - &this->dyna.actor, - SurfaceType_GetSfx(&play->colCtx, this->dyna.actor.floorPoly, this->dyna.actor.floorBgId) + SFX_FLAG); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EV_BLOCK_BOUND); + Audio_PlayActorSfx2(&this->dyna.actor, + SurfaceType_GetSfx(&play->colCtx, this->dyna.actor.floorPoly, this->dyna.actor.floorBgId) + + SFX_FLAG); } this->unk_16C -= 0.5f; @@ -305,7 +305,7 @@ void func_8088B990(BgHidanRock* this, PlayState* play) { ((this->type != 0) && (Math_SmoothStepToF(&this->dyna.actor.world.pos.y, this->dyna.actor.home.pos.y + 480.0, 0.25f, 20.0f, 0.5f) < 0.1f))) { if (this->type == 0) { - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EV_BLOCK_BOUND); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EV_BLOCK_BOUND); } this->timer = 20; this->actionFunc = func_8088B954; diff --git a/src/overlays/actors/ovl_Bg_Hidan_Sima/z_bg_hidan_sima.c b/src/overlays/actors/ovl_Bg_Hidan_Sima/z_bg_hidan_sima.c index 023385e0b9..180ab558c8 100644 --- a/src/overlays/actors/ovl_Bg_Hidan_Sima/z_bg_hidan_sima.c +++ b/src/overlays/actors/ovl_Bg_Hidan_Sima/z_bg_hidan_sima.c @@ -144,7 +144,7 @@ void func_8088E5D0(BgHidanSima* this, PlayState* play) { } if (!(this->timer % 4)) { func_800AA000(this->dyna.actor.xyzDistToPlayerSq, 180, 10, 100); - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EV_BLOCK_SHAKE); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EV_BLOCK_SHAKE); } } diff --git a/src/overlays/actors/ovl_Bg_Hidan_Syoku/z_bg_hidan_syoku.c b/src/overlays/actors/ovl_Bg_Hidan_Syoku/z_bg_hidan_syoku.c index a8d48f1640..f4213b6985 100644 --- a/src/overlays/actors/ovl_Bg_Hidan_Syoku/z_bg_hidan_syoku.c +++ b/src/overlays/actors/ovl_Bg_Hidan_Syoku/z_bg_hidan_syoku.c @@ -55,7 +55,7 @@ void BgHidanSyoku_Destroy(Actor* thisx, PlayState* play) { void func_8088F47C(BgHidanSyoku* this) { this->timer = 60; - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EV_BLOCK_BOUND); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EV_BLOCK_BOUND); this->actionFunc = func_8088F62C; } diff --git a/src/overlays/actors/ovl_Bg_Ice_Objects/z_bg_ice_objects.c b/src/overlays/actors/ovl_Bg_Ice_Objects/z_bg_ice_objects.c index 66bf6fb509..efea29dffe 100644 --- a/src/overlays/actors/ovl_Bg_Ice_Objects/z_bg_ice_objects.c +++ b/src/overlays/actors/ovl_Bg_Ice_Objects/z_bg_ice_objects.c @@ -173,7 +173,7 @@ void BgIceObjects_Slide(BgIceObjects* this, PlayState* play) { } thisx->params = 0; func_8002DF54(play, thisx, 7); - Audio_PlayActorSound2(thisx, NA_SE_EV_BLOCK_BOUND); + Audio_PlayActorSfx2(thisx, NA_SE_EV_BLOCK_BOUND); if ((fabsf(thisx->world.pos.x + 1387.0f) < 1.0f) && (fabsf(thisx->world.pos.z + 260.0f) < 1.0f)) { this->actionFunc = BgIceObjects_Stuck; } else { diff --git a/src/overlays/actors/ovl_Bg_Ice_Shelter/z_bg_ice_shelter.c b/src/overlays/actors/ovl_Bg_Ice_Shelter/z_bg_ice_shelter.c index bc6d877489..fa32c3c456 100644 --- a/src/overlays/actors/ovl_Bg_Ice_Shelter/z_bg_ice_shelter.c +++ b/src/overlays/actors/ovl_Bg_Ice_Shelter/z_bg_ice_shelter.c @@ -303,7 +303,7 @@ void func_8089107C(BgIceShelter* this, PlayState* play) { } func_808911BC(this); - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EV_ICE_MELT); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EV_ICE_MELT); } } diff --git a/src/overlays/actors/ovl_Bg_Ice_Shutter/z_bg_ice_shutter.c b/src/overlays/actors/ovl_Bg_Ice_Shutter/z_bg_ice_shutter.c index 1721755e29..a168d910a2 100644 --- a/src/overlays/actors/ovl_Bg_Ice_Shutter/z_bg_ice_shutter.c +++ b/src/overlays/actors/ovl_Bg_Ice_Shutter/z_bg_ice_shutter.c @@ -97,7 +97,7 @@ void BgIceShutter_Destroy(Actor* thisx, PlayState* play) { void func_80891CF4(BgIceShutter* this, PlayState* play) { if (Flags_GetTempClear(play, this->dyna.actor.room)) { Flags_SetClear(play, this->dyna.actor.room); - SoundSource_PlaySfxAtFixedWorldPos(play, &this->dyna.actor.world.pos, 30, NA_SE_EV_SLIDE_DOOR_OPEN); + SfxSource_PlaySfxAtFixedWorldPos(play, &this->dyna.actor.world.pos, 30, NA_SE_EV_SLIDE_DOOR_OPEN); this->actionFunc = func_80891DD4; if (this->dyna.actor.shape.rot.x == 0) { OnePointCutscene_Attention(play, &this->dyna.actor); @@ -107,7 +107,7 @@ void func_80891CF4(BgIceShutter* this, PlayState* play) { void func_80891D6C(BgIceShutter* this, PlayState* play) { if (Flags_GetSwitch(play, this->dyna.actor.params)) { - SoundSource_PlaySfxAtFixedWorldPos(play, &this->dyna.actor.world.pos, 30, NA_SE_EV_SLIDE_DOOR_OPEN); + SfxSource_PlaySfxAtFixedWorldPos(play, &this->dyna.actor.world.pos, 30, NA_SE_EV_SLIDE_DOOR_OPEN); this->actionFunc = func_80891DD4; OnePointCutscene_Attention(play, &this->dyna.actor); } diff --git a/src/overlays/actors/ovl_Bg_Ice_Turara/z_bg_ice_turara.c b/src/overlays/actors/ovl_Bg_Ice_Turara/z_bg_ice_turara.c index b21f0b0dd2..8052ac3230 100644 --- a/src/overlays/actors/ovl_Bg_Ice_Turara/z_bg_ice_turara.c +++ b/src/overlays/actors/ovl_Bg_Ice_Turara/z_bg_ice_turara.c @@ -96,7 +96,7 @@ void BgIceTurara_Break(BgIceTurara* this, PlayState* play, f32 arg2) { s32 j; s32 i; - SoundSource_PlaySfxAtFixedWorldPos(play, &this->dyna.actor.world.pos, 30, NA_SE_EV_ICE_BROKEN); + SfxSource_PlaySfxAtFixedWorldPos(play, &this->dyna.actor.world.pos, 30, NA_SE_EV_ICE_BROKEN); for (i = 0; i < 2; i++) { for (j = 0; j < 10; j++) { pos.x = this->dyna.actor.world.pos.x + Rand_CenteredFloat(8.0f); @@ -137,7 +137,7 @@ void BgIceTurara_Shiver(BgIceTurara* this, PlayState* play) { this->shiverTimer--; } if (!(this->shiverTimer % 4)) { - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EV_ICE_SWING); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EV_ICE_SWING); } if (this->shiverTimer == 0) { this->dyna.actor.world.pos.x = this->dyna.actor.home.pos.x; diff --git a/src/overlays/actors/ovl_Bg_Jya_1flift/z_bg_jya_1flift.c b/src/overlays/actors/ovl_Bg_Jya_1flift/z_bg_jya_1flift.c index cae20779c5..e710adf654 100644 --- a/src/overlays/actors/ovl_Bg_Jya_1flift/z_bg_jya_1flift.c +++ b/src/overlays/actors/ovl_Bg_Jya_1flift/z_bg_jya_1flift.c @@ -160,7 +160,7 @@ void BgJya1flift_Move(BgJya1flift* this, PlayState* play) { tempVelocity, 1.0f)) < 0.001f) { this->dyna.actor.world.pos.y = sFinalPositions[this->isMovingDown]; BgJya1flift_ResetMoveDelay(this); - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EV_BLOCK_BOUND); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EV_BLOCK_BOUND); } else { func_8002F974(&this->dyna.actor, NA_SE_EV_ELEVATOR_MOVE3 - SFX_FLAG); } diff --git a/src/overlays/actors/ovl_Bg_Jya_Amishutter/z_bg_jya_amishutter.c b/src/overlays/actors/ovl_Bg_Jya_Amishutter/z_bg_jya_amishutter.c index 084f0b1b36..6f15b918b3 100644 --- a/src/overlays/actors/ovl_Bg_Jya_Amishutter/z_bg_jya_amishutter.c +++ b/src/overlays/actors/ovl_Bg_Jya_Amishutter/z_bg_jya_amishutter.c @@ -87,7 +87,7 @@ void func_80893428(BgJyaAmishutter* this) { void func_80893438(BgJyaAmishutter* this) { if (Math_StepToF(&this->dyna.actor.world.pos.y, this->dyna.actor.home.pos.y + 100.0f, 3.0f)) { func_808934B0(this); - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EV_METALDOOR_STOP); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EV_METALDOOR_STOP); } else { func_8002F974(&this->dyna.actor, NA_SE_EV_METALDOOR_SLIDE - SFX_FLAG); } @@ -110,7 +110,7 @@ void func_808934FC(BgJyaAmishutter* this) { void func_8089350C(BgJyaAmishutter* this) { if (Math_StepToF(&this->dyna.actor.world.pos.y, this->dyna.actor.home.pos.y, 3.0f)) { BgJyaAmishutter_SetupWaitForPlayer(this); - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EV_METALDOOR_STOP); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EV_METALDOOR_STOP); } else { func_8002F974(&this->dyna.actor, NA_SE_EV_METALDOOR_SLIDE - SFX_FLAG); } diff --git a/src/overlays/actors/ovl_Bg_Jya_Bombchuiwa/z_bg_jya_bombchuiwa.c b/src/overlays/actors/ovl_Bg_Jya_Bombchuiwa/z_bg_jya_bombchuiwa.c index 27b244307c..e50c48a7fb 100644 --- a/src/overlays/actors/ovl_Bg_Jya_Bombchuiwa/z_bg_jya_bombchuiwa.c +++ b/src/overlays/actors/ovl_Bg_Jya_Bombchuiwa/z_bg_jya_bombchuiwa.c @@ -149,7 +149,7 @@ void BgJyaBombchuiwa_WaitForExplosion(BgJyaBombchuiwa* this, PlayState* play) { if (this->timer > 10) { BgJyaBombchuiwa_Break(this, play); BgJyaBombchuiwa_CleanUpAfterExplosion(this, play); - SoundSource_PlaySfxAtFixedWorldPos(play, &this->actor.world.pos, 40, NA_SE_EV_WALL_BROKEN); + SfxSource_PlaySfxAtFixedWorldPos(play, &this->actor.world.pos, 40, NA_SE_EV_WALL_BROKEN); } } else { CollisionCheck_SetAC(play, &play->colChkCtx, &this->collider.base); diff --git a/src/overlays/actors/ovl_Bg_Jya_Bombiwa/z_bg_jya_bombiwa.c b/src/overlays/actors/ovl_Bg_Jya_Bombiwa/z_bg_jya_bombiwa.c index 2eb87acb55..969d77cccc 100644 --- a/src/overlays/actors/ovl_Bg_Jya_Bombiwa/z_bg_jya_bombiwa.c +++ b/src/overlays/actors/ovl_Bg_Jya_Bombiwa/z_bg_jya_bombiwa.c @@ -165,7 +165,7 @@ void BgJyaBombiwa_Update(Actor* thisx, PlayState* play) { if (this->collider.base.acFlags & AC_HIT) { BgJyaBombiwa_Break(this, play); Flags_SetSwitch(play, this->dyna.actor.params & 0x3F); - SoundSource_PlaySfxAtFixedWorldPos(play, &this->dyna.actor.world.pos, 40, NA_SE_EV_WALL_BROKEN); + SfxSource_PlaySfxAtFixedWorldPos(play, &this->dyna.actor.world.pos, 40, NA_SE_EV_WALL_BROKEN); Actor_Kill(&this->dyna.actor); } else { CollisionCheck_SetAC(play, &play->colChkCtx, &this->collider.base); diff --git a/src/overlays/actors/ovl_Bg_Jya_Goroiwa/z_bg_jya_goroiwa.c b/src/overlays/actors/ovl_Bg_Jya_Goroiwa/z_bg_jya_goroiwa.c index 718d8e1012..8ba8bc84d1 100644 --- a/src/overlays/actors/ovl_Bg_Jya_Goroiwa/z_bg_jya_goroiwa.c +++ b/src/overlays/actors/ovl_Bg_Jya_Goroiwa/z_bg_jya_goroiwa.c @@ -177,7 +177,7 @@ void BgJyaGoroiwa_Move(BgJyaGoroiwa* this, PlayState* play) { thisx->world.rot.y = 0x4000; } - Audio_PlayActorSound2(thisx, NA_SE_EV_BIGBALL_ROLL - SFX_FLAG); + Audio_PlayActorSfx2(thisx, NA_SE_EV_BIGBALL_ROLL - SFX_FLAG); } void BgJyaGoroiwa_SetupWait(BgJyaGoroiwa* this) { diff --git a/src/overlays/actors/ovl_Bg_Jya_Haheniron/z_bg_jya_haheniron.c b/src/overlays/actors/ovl_Bg_Jya_Haheniron/z_bg_jya_haheniron.c index 88cc8753c0..991de3eb18 100644 --- a/src/overlays/actors/ovl_Bg_Jya_Haheniron/z_bg_jya_haheniron.c +++ b/src/overlays/actors/ovl_Bg_Jya_Haheniron/z_bg_jya_haheniron.c @@ -190,7 +190,7 @@ void BgJyaHaheniron_SetupRubbleCollide(BgJyaHaheniron* this) { void BgJyaHaheniron_RubbleCollide(BgJyaHaheniron* this, PlayState* play) { if (this->timer >= 17) { BgJyaHaheniron_SpawnFragments(play, &this->actor.world.pos, D_808987AC); - SoundSource_PlaySfxAtFixedWorldPos(play, &this->actor.world.pos, 80, NA_SE_EN_IRONNACK_BREAK_PILLAR2); + SfxSource_PlaySfxAtFixedWorldPos(play, &this->actor.world.pos, 80, NA_SE_EN_IRONNACK_BREAK_PILLAR2); Actor_Kill(&this->actor); } } diff --git a/src/overlays/actors/ovl_Bg_Jya_Ironobj/z_bg_jya_ironobj.c b/src/overlays/actors/ovl_Bg_Jya_Ironobj/z_bg_jya_ironobj.c index d5a0ef749e..3c5bc71cd1 100644 --- a/src/overlays/actors/ovl_Bg_Jya_Ironobj/z_bg_jya_ironobj.c +++ b/src/overlays/actors/ovl_Bg_Jya_Ironobj/z_bg_jya_ironobj.c @@ -248,7 +248,7 @@ void func_808992E8(BgJyaIronobj* this, PlayState* play) { this->colCylinder.base.acFlags &= ~AC_HIT; if (actor != NULL && actor->id == ACTOR_EN_IK) { particleFunc[this->dyna.actor.params & 1](this, play, (EnIk*)actor); - SoundSource_PlaySfxAtFixedWorldPos(play, &this->dyna.actor.world.pos, 80, NA_SE_EN_IRONNACK_BREAK_PILLAR); + SfxSource_PlaySfxAtFixedWorldPos(play, &this->dyna.actor.world.pos, 80, NA_SE_EN_IRONNACK_BREAK_PILLAR); dropPos.x = this->dyna.actor.world.pos.x; dropPos.y = this->dyna.actor.world.pos.y + 20.0f; dropPos.z = this->dyna.actor.world.pos.z; diff --git a/src/overlays/actors/ovl_Bg_Jya_Kanaami/z_bg_jya_kanaami.c b/src/overlays/actors/ovl_Bg_Jya_Kanaami/z_bg_jya_kanaami.c index ff740731d9..d616cc6ee2 100644 --- a/src/overlays/actors/ovl_Bg_Jya_Kanaami/z_bg_jya_kanaami.c +++ b/src/overlays/actors/ovl_Bg_Jya_Kanaami/z_bg_jya_kanaami.c @@ -101,7 +101,7 @@ void func_80899950(BgJyaKanaami* this, PlayState* play) { this->unk_168 += 0x20; if (Math_ScaledStepToS(&this->dyna.actor.world.rot.x, 0x4000, this->unk_168)) { func_80899A08(this); - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EV_TRAP_BOUND); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EV_TRAP_BOUND); quakeId = Quake_Add(GET_ACTIVE_CAM(play), 3); Quake_SetSpeed(quakeId, 25000); Quake_SetQuakeValues(quakeId, 2, 0, 0, 0); diff --git a/src/overlays/actors/ovl_Bg_Jya_Lift/z_bg_jya_lift.c b/src/overlays/actors/ovl_Bg_Jya_Lift/z_bg_jya_lift.c index 73c46dcdd2..a5ffc9b9c0 100644 --- a/src/overlays/actors/ovl_Bg_Jya_Lift/z_bg_jya_lift.c +++ b/src/overlays/actors/ovl_Bg_Jya_Lift/z_bg_jya_lift.c @@ -117,7 +117,7 @@ void BgJyaLift_Move(BgJyaLift* this, PlayState* play) { } if (fabsf(distFromBottom) < 0.001f) { BgJyaLift_SetFinalPosY(this); - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EV_ELEVATOR_STOP); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EV_ELEVATOR_STOP); } else { func_8002F974(&this->dyna.actor, NA_SE_EV_BRIDGE_OPEN - SFX_FLAG); } diff --git a/src/overlays/actors/ovl_Bg_Jya_Megami/z_bg_jya_megami.c b/src/overlays/actors/ovl_Bg_Jya_Megami/z_bg_jya_megami.c index def39665a8..c9030b8035 100644 --- a/src/overlays/actors/ovl_Bg_Jya_Megami/z_bg_jya_megami.c +++ b/src/overlays/actors/ovl_Bg_Jya_Megami/z_bg_jya_megami.c @@ -197,7 +197,7 @@ void BgJyaMegami_DetectLight(BgJyaMegami* this, PlayState* play) { if (this->lightTimer > 40) { Flags_SetSwitch(play, this->dyna.actor.params & 0x3F); BgJyaMegami_SetupExplode(this); - SoundSource_PlaySfxAtFixedWorldPos(play, &this->dyna.actor.world.pos, 100, NA_SE_EV_FACE_EXPLOSION); + SfxSource_PlaySfxAtFixedWorldPos(play, &this->dyna.actor.world.pos, 100, NA_SE_EV_FACE_EXPLOSION); OnePointCutscene_Init(play, 3440, -99, &this->dyna.actor, CAM_ID_MAIN); } else { if (this->lightTimer < 8) { @@ -236,7 +236,7 @@ void BgJyaMegami_Explode(BgJyaMegami* this, PlayState* play) { this->explosionTimer++; if (this->explosionTimer == 30) { - SoundSource_PlaySfxAtFixedWorldPos(play, &this->dyna.actor.world.pos, 100, NA_SE_EV_FACE_BREAKDOWN); + SfxSource_PlaySfxAtFixedWorldPos(play, &this->dyna.actor.world.pos, 100, NA_SE_EV_FACE_BREAKDOWN); } for (i = 0; i < ARRAY_COUNT(this->pieces); i++) { diff --git a/src/overlays/actors/ovl_Bg_Menkuri_Eye/z_bg_menkuri_eye.c b/src/overlays/actors/ovl_Bg_Menkuri_Eye/z_bg_menkuri_eye.c index 18950ecb1e..1a8b3d2035 100644 --- a/src/overlays/actors/ovl_Bg_Menkuri_Eye/z_bg_menkuri_eye.c +++ b/src/overlays/actors/ovl_Bg_Menkuri_Eye/z_bg_menkuri_eye.c @@ -101,7 +101,7 @@ void BgMenkuriEye_Update(Actor* thisx, PlayState* play) { (ABS((s16)(this->collider.base.ac->world.rot.y - this->actor.shape.rot.y)) > 0x5000)) { this->collider.base.acFlags &= ~AC_HIT; if (this->framesUntilDisable == -1) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_AMOS_DAMAGE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_AMOS_DAMAGE); D_8089C1A0 += 1; D_8089C1A0 = CLAMP_MAX(D_8089C1A0, 4); } diff --git a/src/overlays/actors/ovl_Bg_Mizu_Bwall/z_bg_mizu_bwall.c b/src/overlays/actors/ovl_Bg_Mizu_Bwall/z_bg_mizu_bwall.c index 75e9167b40..209da226a2 100644 --- a/src/overlays/actors/ovl_Bg_Mizu_Bwall/z_bg_mizu_bwall.c +++ b/src/overlays/actors/ovl_Bg_Mizu_Bwall/z_bg_mizu_bwall.c @@ -470,9 +470,9 @@ void BgMizuBwall_Idle(BgMizuBwall* this, PlayState* play) { DynaPoly_DisableCollision(play, &play->colCtx.dyna, this->dyna.bgId); this->dList = NULL; BgMizuBwall_SpawnDebris(this, play); - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EV_WALL_BROKEN); - Audio_PlaySoundGeneral(NA_SE_SY_CORRECT_CHIME, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EV_WALL_BROKEN); + Audio_PlaySfxGeneral(NA_SE_SY_CORRECT_CHIME, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); this->actionFunc = BgMizuBwall_Break; } else if (this->dyna.actor.xzDistToPlayer < 600.0f) { CollisionCheck_SetAC(play, &play->colChkCtx, &this->collider.base); diff --git a/src/overlays/actors/ovl_Bg_Mizu_Shutter/z_bg_mizu_shutter.c b/src/overlays/actors/ovl_Bg_Mizu_Shutter/z_bg_mizu_shutter.c index 31e60f51be..2377320e5b 100644 --- a/src/overlays/actors/ovl_Bg_Mizu_Shutter/z_bg_mizu_shutter.c +++ b/src/overlays/actors/ovl_Bg_Mizu_Shutter/z_bg_mizu_shutter.c @@ -105,7 +105,7 @@ void BgMizuShutter_WaitForSwitch(BgMizuShutter* this, PlayState* play) { void BgMizuShutter_WaitForCutscene(BgMizuShutter* this, PlayState* play) { if (this->timer-- == 0) { - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EV_METALDOOR_OPEN); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EV_METALDOOR_OPEN); this->actionFunc = BgMizuShutter_Move; } } @@ -129,7 +129,7 @@ void BgMizuShutter_Move(BgMizuShutter* this, PlayState* play) { (this->dyna.actor.world.pos.y == this->closedPos.y) && (this->dyna.actor.world.pos.z == this->closedPos.z)) { func_800AA000(this->dyna.actor.xyzDistToPlayerSq, 0x78, 0x14, 0xA); - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EV_STONE_BOUND); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EV_STONE_BOUND); this->actionFunc = BgMizuShutter_WaitForSwitch; } } @@ -140,7 +140,7 @@ void BgMizuShutter_WaitForTimer(BgMizuShutter* this, PlayState* play) { this->timer--; func_8002F994(&this->dyna.actor, this->timer); if (this->timer == 0) { - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EV_METALDOOR_CLOSE); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EV_METALDOOR_CLOSE); Flags_UnsetSwitch(play, BGMIZUSHUTTER_SWITCH_PARAM(&this->dyna.actor)); this->actionFunc = BgMizuShutter_Move; } diff --git a/src/overlays/actors/ovl_Bg_Mizu_Uzu/z_bg_mizu_uzu.c b/src/overlays/actors/ovl_Bg_Mizu_Uzu/z_bg_mizu_uzu.c index ccfd9ed875..f94d66f948 100644 --- a/src/overlays/actors/ovl_Bg_Mizu_Uzu/z_bg_mizu_uzu.c +++ b/src/overlays/actors/ovl_Bg_Mizu_Uzu/z_bg_mizu_uzu.c @@ -61,7 +61,7 @@ void func_8089F788(BgMizuUzu* this, PlayState* play) { } else { DynaPoly_EnableCollision(play, &play->colCtx.dyna, this->dyna.bgId); } - Audio_PlayActorSound2(thisx, NA_SE_EV_WATER_CONVECTION - SFX_FLAG); + Audio_PlayActorSfx2(thisx, NA_SE_EV_WATER_CONVECTION - SFX_FLAG); thisx->shape.rot.y += 0x1C0; } diff --git a/src/overlays/actors/ovl_Bg_Mori_Bigst/z_bg_mori_bigst.c b/src/overlays/actors/ovl_Bg_Mori_Bigst/z_bg_mori_bigst.c index 4873c2c9e1..887c76a7f7 100644 --- a/src/overlays/actors/ovl_Bg_Mori_Bigst/z_bg_mori_bigst.c +++ b/src/overlays/actors/ovl_Bg_Mori_Bigst/z_bg_mori_bigst.c @@ -161,7 +161,7 @@ void BgMoriBigst_Fall(BgMoriBigst* this, PlayState* play) { if (this->dyna.actor.world.pos.y <= this->dyna.actor.home.pos.y) { this->dyna.actor.world.pos.y = this->dyna.actor.home.pos.y; BgMoriBigst_SetupLanding(this, play); - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EV_STONE_BOUND); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EV_STONE_BOUND); OnePointCutscene_Init(play, 1020, 8, &this->dyna.actor, CAM_ID_MAIN); func_8002DF38(play, NULL, 0x3C); } diff --git a/src/overlays/actors/ovl_Bg_Mori_Elevator/z_bg_mori_elevator.c b/src/overlays/actors/ovl_Bg_Mori_Elevator/z_bg_mori_elevator.c index 206e7a89e6..c13f55b1dd 100644 --- a/src/overlays/actors/ovl_Bg_Mori_Elevator/z_bg_mori_elevator.c +++ b/src/overlays/actors/ovl_Bg_Mori_Elevator/z_bg_mori_elevator.c @@ -161,7 +161,7 @@ void BgMoriElevator_MoveIntoGround(BgMoriElevator* this, PlayState* play) { distToTarget = func_808A1800(&this->dyna.actor.world.pos.y, 73.0f, 0.08f, this->dyna.actor.velocity.y, 1.5f); if (fabsf(distToTarget) < 0.001f) { BgMoriElevator_SetupSetPosition(this); - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EV_ELEVATOR_STOP); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EV_ELEVATOR_STOP); } else { func_808A18FC(this, distToTarget); } @@ -180,7 +180,7 @@ void BgMoriElevator_MoveAboveGround(BgMoriElevator* this, PlayState* play) { distToTarget = func_808A1800(&this->dyna.actor.world.pos.y, 233.0f, 0.08f, this->dyna.actor.velocity.y, 1.5f); if (fabsf(distToTarget) < 0.001f) { BgMoriElevator_SetupSetPosition(this); - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EV_ELEVATOR_STOP); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EV_ELEVATOR_STOP); } else { func_808A18FC(this, distToTarget); } @@ -233,7 +233,7 @@ void func_808A2008(BgMoriElevator* this, PlayState* play) { distTo = func_808A1800(&this->dyna.actor.world.pos.y, this->targetY, 0.1f, this->dyna.actor.velocity.y, 0.3f); if (fabsf(distTo) < 0.001f) { BgMoriElevator_SetupSetPosition(this); - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EV_ELEVATOR_STOP); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EV_ELEVATOR_STOP); } else { func_808A18FC(this, distTo); diff --git a/src/overlays/actors/ovl_Bg_Mori_Hashira4/z_bg_mori_hashira4.c b/src/overlays/actors/ovl_Bg_Mori_Hashira4/z_bg_mori_hashira4.c index f2df07d496..3478ee6482 100644 --- a/src/overlays/actors/ovl_Bg_Mori_Hashira4/z_bg_mori_hashira4.c +++ b/src/overlays/actors/ovl_Bg_Mori_Hashira4/z_bg_mori_hashira4.c @@ -126,14 +126,14 @@ void BgMoriHashira4_SetupPillarsRotate(BgMoriHashira4* this) { void BgMoriHashira4_PillarsRotate(BgMoriHashira4* this, PlayState* play) { this->dyna.actor.shape.rot.y = this->dyna.actor.world.rot.y += 0x96; - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EV_ROLL_STAND_2 - SFX_FLAG); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EV_ROLL_STAND_2 - SFX_FLAG); } void BgMoriHashira4_GateWait(BgMoriHashira4* this, PlayState* play) { if (Flags_GetSwitch(play, this->switchFlag) || (this->gateTimer != 0)) { this->gateTimer++; if (this->gateTimer > 30) { - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EV_METALDOOR_OPEN); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EV_METALDOOR_OPEN); BgMoriHashira4_SetupAction(this, BgMoriHashira4_GateOpen); OnePointCutscene_Init(play, 6010, 20, &this->dyna.actor, CAM_ID_MAIN); sUnkTimer++; diff --git a/src/overlays/actors/ovl_Bg_Po_Event/z_bg_po_event.c b/src/overlays/actors/ovl_Bg_Po_Event/z_bg_po_event.c index d569c7e35b..5fa503c0c0 100644 --- a/src/overlays/actors/ovl_Bg_Po_Event/z_bg_po_event.c +++ b/src/overlays/actors/ovl_Bg_Po_Event/z_bg_po_event.c @@ -258,7 +258,7 @@ void BgPoEvent_BlockShake(BgPoEvent* this, PlayState* play) { if (this->timer < 15) { this->dyna.actor.world.pos.x = this->dyna.actor.home.pos.x + 2.0f * ((this->timer % 3) - 1); if (!(this->timer % 4)) { - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EV_BLOCK_SHAKE); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EV_BLOCK_SHAKE); } } if (this->timer == 0) { @@ -314,7 +314,7 @@ void BgPoEvent_BlockFall(BgPoEvent* this, PlayState* play) { if (this->type != 1) { BgPoEvent_CheckBlock(this); } else { - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EV_STONE_BOUND); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EV_STONE_BOUND); func_80033E88(&this->dyna.actor, play, 5, 5); func_80088B34(this->timer); if (firstFall == 0) { @@ -355,7 +355,7 @@ void BgPoEvent_BlockIdle(BgPoEvent* this, PlayState* play) { this->actionFunc = BgPoEvent_BlockReset; if (sPuzzleState == 0x10) { sPuzzleState = 0x40; - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EV_BLOCK_RISING); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EV_BLOCK_RISING); func_8002DF54(play, &player->actor, 8); } } else if (this->dyna.unk_150 != 0.0f) { @@ -394,7 +394,7 @@ void BgPoEvent_BlockPush(BgPoEvent* this, PlayState* play) { if (blockStop) { player->stateFlags2 &= ~PLAYER_STATE2_4; if ((this->dyna.unk_150 > 0.0f) && (func_800435D8(play, &this->dyna, 0x1E, 0x32, -0x14) == 0)) { - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EV_BLOCK_BOUND); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EV_BLOCK_BOUND); } this->dyna.unk_150 = 0.0f; this->dyna.actor.home.pos.x = this->dyna.actor.world.pos.x; @@ -450,7 +450,7 @@ void BgPoEvent_AmyWait(BgPoEvent* this, PlayState* play) { sPuzzleState |= 0x20; this->timer = 5; Actor_SetColorFilter(&this->dyna.actor, 0x4000, 0xFF, 0, 5); - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EN_PO_LAUGH2); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EN_PO_LAUGH2); this->actionFunc = BgPoEvent_AmyPuzzle; } } @@ -528,7 +528,7 @@ void BgPoEvent_PaintingPresent(BgPoEvent* this, PlayState* play) { under the balcony allows him to be closer. 4) Link is within 45 degrees of facing the painting. */ this->timer = 0; - Audio_PlayActorSound2(thisx, NA_SE_EN_PO_LAUGH); + Audio_PlayActorSfx2(thisx, NA_SE_EN_PO_LAUGH); this->actionFunc = BgPoEvent_PaintingVanish; } else if (this->collider.base.acFlags & AC_HIT) { if (!BgPoEvent_NextPainting(this)) { @@ -538,7 +538,7 @@ void BgPoEvent_PaintingPresent(BgPoEvent* this, PlayState* play) { func_80078884(NA_SE_SY_CORRECT_CHIME); } else { - Audio_PlayActorSound2(thisx, NA_SE_EN_PO_LAUGH2); + Audio_PlayActorSfx2(thisx, NA_SE_EN_PO_LAUGH2); OnePointCutscene_Init(play, 3160, 35, thisx, CAM_ID_MAIN); } if (thisx->parent != NULL) { diff --git a/src/overlays/actors/ovl_Bg_Relay_Objects/z_bg_relay_objects.c b/src/overlays/actors/ovl_Bg_Relay_Objects/z_bg_relay_objects.c index 3d7cd495b8..e4b7dbb44d 100644 --- a/src/overlays/actors/ovl_Bg_Relay_Objects/z_bg_relay_objects.c +++ b/src/overlays/actors/ovl_Bg_Relay_Objects/z_bg_relay_objects.c @@ -116,7 +116,7 @@ void BgRelayObjects_Destroy(Actor* thisx, PlayState* play) { void func_808A90F4(BgRelayObjects* this, PlayState* play) { if (Flags_GetSwitch(play, this->switchFlag)) { if (this->timer != 0) { - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EV_SLIDE_DOOR_OPEN); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EV_SLIDE_DOOR_OPEN); if (INV_CONTENT(ITEM_HOOKSHOT) != ITEM_NONE) { this->timer = 120; } else { @@ -137,7 +137,7 @@ void func_808A91AC(BgRelayObjects* this, PlayState* play) { func_8002F994(&this->dyna.actor, this->timer); } if ((this->timer == 0) || (this->unk_169 == play->roomCtx.curRoom.num)) { - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EV_SLIDE_DOOR_CLOSE); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EV_SLIDE_DOOR_CLOSE); this->actionFunc = func_808A9234; } } @@ -146,7 +146,7 @@ void func_808A9234(BgRelayObjects* this, PlayState* play) { this->dyna.actor.velocity.y += this->dyna.actor.gravity; if (Math_StepToF(&this->dyna.actor.world.pos.y, this->dyna.actor.home.pos.y, this->dyna.actor.velocity.y)) { func_800AA000(this->dyna.actor.xyzDistToPlayerSq, 180, 20, 100); - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EV_STONE_BOUND); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EV_STONE_BOUND); if (this->unk_169 != play->roomCtx.curRoom.num) { func_800788CC(NA_SE_EN_PO_LAUGH); this->timer = 5; diff --git a/src/overlays/actors/ovl_Bg_Spot00_Hanebasi/z_bg_spot00_hanebasi.c b/src/overlays/actors/ovl_Bg_Spot00_Hanebasi/z_bg_spot00_hanebasi.c index e594e36e79..2175d76b5f 100644 --- a/src/overlays/actors/ovl_Bg_Spot00_Hanebasi/z_bg_spot00_hanebasi.c +++ b/src/overlays/actors/ovl_Bg_Spot00_Hanebasi/z_bg_spot00_hanebasi.c @@ -181,13 +181,13 @@ void BgSpot00Hanebasi_DrawbridgeRiseAndFall(BgSpot00Hanebasi* this, PlayState* p if (this->destAngle < 0) { if (this->actionFunc == BgSpot00Hanebasi_DrawbridgeWait) { - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EV_BRIDGE_CLOSE_STOP); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EV_BRIDGE_CLOSE_STOP); } else { func_8002F974(&this->dyna.actor, NA_SE_EV_BRIDGE_CLOSE - SFX_FLAG); } } else { if (this->actionFunc == BgSpot00Hanebasi_DrawbridgeWait) { - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EV_BRIDGE_OPEN_STOP); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EV_BRIDGE_OPEN_STOP); } else { func_8002F974(&this->dyna.actor, NA_SE_EV_BRIDGE_OPEN - SFX_FLAG); } diff --git a/src/overlays/actors/ovl_Bg_Spot01_Idohashira/z_bg_spot01_idohashira.c b/src/overlays/actors/ovl_Bg_Spot01_Idohashira/z_bg_spot01_idohashira.c index c298f1f060..05f85bccf0 100644 --- a/src/overlays/actors/ovl_Bg_Spot01_Idohashira/z_bg_spot01_idohashira.c +++ b/src/overlays/actors/ovl_Bg_Spot01_Idohashira/z_bg_spot01_idohashira.c @@ -53,7 +53,7 @@ void BgSpot01Idohashira_PlayBreakSfx1(BgSpot01Idohashira* this) { } void BgSpot01Idohashira_PlayBreakSfx2(BgSpot01Idohashira* this, PlayState* play) { - SoundSource_PlaySfxAtFixedWorldPos(play, &this->dyna.actor.world.pos, 60, NA_SE_EV_WOODBOX_BREAK); + SfxSource_PlaySfxAtFixedWorldPos(play, &this->dyna.actor.world.pos, 60, NA_SE_EV_WOODBOX_BREAK); } void func_808AAD3C(PlayState* play, Vec3f* vec, u32 arg2) { diff --git a/src/overlays/actors/ovl_Bg_Spot01_Idomizu/z_bg_spot01_idomizu.c b/src/overlays/actors/ovl_Bg_Spot01_Idomizu/z_bg_spot01_idomizu.c index fddd8ce659..232548a4be 100644 --- a/src/overlays/actors/ovl_Bg_Spot01_Idomizu/z_bg_spot01_idomizu.c +++ b/src/overlays/actors/ovl_Bg_Spot01_Idomizu/z_bg_spot01_idomizu.c @@ -54,8 +54,8 @@ void func_808ABB84(BgSpot01Idomizu* this, PlayState* play) { } play->colCtx.colHeader->waterBoxes[0].ySurface = this->actor.world.pos.y; if (this->waterHeight < this->actor.world.pos.y) { - Audio_PlaySoundGeneral(NA_SE_EV_WATER_LEVEL_DOWN - SFX_FLAG, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EV_WATER_LEVEL_DOWN - SFX_FLAG, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } Math_ApproachF(&this->actor.world.pos.y, this->waterHeight, 1.0f, 2.0f); } diff --git a/src/overlays/actors/ovl_Bg_Spot02_Objects/z_bg_spot02_objects.c b/src/overlays/actors/ovl_Bg_Spot02_Objects/z_bg_spot02_objects.c index 7694548a71..b49f32de5b 100644 --- a/src/overlays/actors/ovl_Bg_Spot02_Objects/z_bg_spot02_objects.c +++ b/src/overlays/actors/ovl_Bg_Spot02_Objects/z_bg_spot02_objects.c @@ -129,7 +129,7 @@ void func_808AC908(BgSpot02Objects* this, PlayState* play) { if (play->csCtx.state != 0) { if (play->csCtx.npcActions[3] != NULL && play->csCtx.npcActions[3]->action == 2) { - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EV_GRAVE_EXPLOSION); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EV_GRAVE_EXPLOSION); SET_EVENTCHKINF(EVENTCHKINF_1D); this->timer = 25; pos.x = (Math_SinS(this->dyna.actor.shape.rot.y) * 50.0f) + this->dyna.actor.world.pos.x; @@ -175,7 +175,7 @@ void func_808ACAFC(BgSpot02Objects* this, PlayState* play) { void func_808ACB58(BgSpot02Objects* this, PlayState* play) { if (Math_StepToF(&this->dyna.actor.world.pos.y, this->dyna.actor.home.pos.y + 255.0f, 1.0f)) { - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EV_STONEDOOR_STOP); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EV_STONEDOOR_STOP); this->actionFunc = func_808AC8FC; } else { func_8002F974(&this->dyna.actor, NA_SE_EV_WALL_MOVE_SP - SFX_FLAG); @@ -267,7 +267,7 @@ void func_808ACCB8(Actor* thisx, PlayState* play) { void func_808AD3D4(BgSpot02Objects* this, PlayState* play) { if (play->csCtx.state != 0 && play->csCtx.npcActions[2] != NULL && play->csCtx.npcActions[2]->action == 2) { if (this->timer == 2) { - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_IT_EXPLOSION_ICE); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_IT_EXPLOSION_ICE); } if (this->timer < 32) { diff --git a/src/overlays/actors/ovl_Bg_Spot03_Taki/z_bg_spot03_taki.c b/src/overlays/actors/ovl_Bg_Spot03_Taki/z_bg_spot03_taki.c index a2c1540694..538f7cf91e 100644 --- a/src/overlays/actors/ovl_Bg_Spot03_Taki/z_bg_spot03_taki.c +++ b/src/overlays/actors/ovl_Bg_Spot03_Taki/z_bg_spot03_taki.c @@ -152,8 +152,8 @@ void BgSpot03Taki_Draw(Actor* thisx, PlayState* play) { this->bufferIndex = this->bufferIndex == 0; if (this->state >= WATERFALL_OPENING_IDLE && this->state <= WATERFALL_OPENED) { - Audio_PlaySoundWaterfall(&this->dyna.actor.projectedPos, 0.5f); + Audio_PlaySfxWaterfall(&this->dyna.actor.projectedPos, 0.5f); } else { - Audio_PlaySoundWaterfall(&this->dyna.actor.projectedPos, 1.0f); + Audio_PlaySfxWaterfall(&this->dyna.actor.projectedPos, 1.0f); } } diff --git a/src/overlays/actors/ovl_Bg_Spot05_Soko/z_bg_spot05_soko.c b/src/overlays/actors/ovl_Bg_Spot05_Soko/z_bg_spot05_soko.c index d6bd8824cd..74531b172a 100644 --- a/src/overlays/actors/ovl_Bg_Spot05_Soko/z_bg_spot05_soko.c +++ b/src/overlays/actors/ovl_Bg_Spot05_Soko/z_bg_spot05_soko.c @@ -78,7 +78,7 @@ void func_808AE5A8(BgSpot05Soko* this, PlayState* play) { void func_808AE5B4(BgSpot05Soko* this, PlayState* play) { if (Flags_GetSwitch(play, this->switchFlag)) { - SoundSource_PlaySfxAtFixedWorldPos(play, &this->dyna.actor.world.pos, 30, NA_SE_EV_METALDOOR_CLOSE); + SfxSource_PlaySfxAtFixedWorldPos(play, &this->dyna.actor.world.pos, 30, NA_SE_EV_METALDOOR_CLOSE); Actor_SetFocus(&this->dyna.actor, 50.0f); OnePointCutscene_Attention(play, &this->dyna.actor); this->actionFunc = func_808AE630; diff --git a/src/overlays/actors/ovl_Bg_Spot06_Objects/z_bg_spot06_objects.c b/src/overlays/actors/ovl_Bg_Spot06_Objects/z_bg_spot06_objects.c index d603eaab65..6622193c9c 100644 --- a/src/overlays/actors/ovl_Bg_Spot06_Objects/z_bg_spot06_objects.c +++ b/src/overlays/actors/ovl_Bg_Spot06_Objects/z_bg_spot06_objects.c @@ -253,7 +253,7 @@ void BgSpot06Objects_GateOpen(BgSpot06Objects* this, PlayState* play) { if (Math_StepToF(&this->dyna.actor.world.pos.y, this->dyna.actor.home.pos.y + 120.0f, 0.6f)) { this->actionFunc = BgSpot06Objects_DoNothing; this->timer = 0; - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EV_METALDOOR_STOP); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EV_METALDOOR_STOP); } else { func_8002F974(&this->dyna.actor, NA_SE_EV_METALDOOR_SLIDE - SFX_FLAG); } @@ -311,8 +311,8 @@ void BgSpot06Objects_LockWait(BgSpot06Objects* this, PlayState* play) { EffectSsGSplash_Spawn(play, &this->dyna.actor.world.pos, NULL, NULL, 1, 700); this->collider.elements->dim.worldSphere.radius = 45; this->actionFunc = BgSpot06Objects_LockPullOutward; - Audio_PlaySoundGeneral(NA_SE_SY_CORRECT_CHIME, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_CORRECT_CHIME, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); Flags_SetSwitch(play, this->switchFlag); OnePointCutscene_Init(play, 4120, 170, &this->dyna.actor, CAM_ID_MAIN); } else { diff --git a/src/overlays/actors/ovl_Bg_Spot08_Bakudankabe/z_bg_spot08_bakudankabe.c b/src/overlays/actors/ovl_Bg_Spot08_Bakudankabe/z_bg_spot08_bakudankabe.c index 4c023b3391..8ae89bb434 100644 --- a/src/overlays/actors/ovl_Bg_Spot08_Bakudankabe/z_bg_spot08_bakudankabe.c +++ b/src/overlays/actors/ovl_Bg_Spot08_Bakudankabe/z_bg_spot08_bakudankabe.c @@ -185,7 +185,7 @@ void BgSpot08Bakudankabe_Update(Actor* thisx, PlayState* play) { if (this->collider.base.acFlags & AC_HIT) { func_808B0324(this, play); Flags_SetSwitch(play, (this->dyna.actor.params & 0x3F)); - SoundSource_PlaySfxAtFixedWorldPos(play, &this->dyna.actor.world.pos, 40, NA_SE_EV_WALL_BROKEN); + SfxSource_PlaySfxAtFixedWorldPos(play, &this->dyna.actor.world.pos, 40, NA_SE_EV_WALL_BROKEN); func_80078884(NA_SE_SY_CORRECT_CHIME); Actor_Kill(&this->dyna.actor); } else if (this->dyna.actor.xzDistToPlayer < 800.0f) { diff --git a/src/overlays/actors/ovl_Bg_Spot11_Bakudankabe/z_bg_spot11_bakudankabe.c b/src/overlays/actors/ovl_Bg_Spot11_Bakudankabe/z_bg_spot11_bakudankabe.c index de547753f8..e9087d3641 100644 --- a/src/overlays/actors/ovl_Bg_Spot11_Bakudankabe/z_bg_spot11_bakudankabe.c +++ b/src/overlays/actors/ovl_Bg_Spot11_Bakudankabe/z_bg_spot11_bakudankabe.c @@ -137,7 +137,7 @@ void BgSpot11Bakudankabe_Update(Actor* thisx, PlayState* play) { if (this->collider.base.acFlags & AC_HIT) { func_808B2218(this, play); Flags_SetSwitch(play, (this->dyna.actor.params & 0x3F)); - SoundSource_PlaySfxAtFixedWorldPos(play, &D_808B2738, 40, NA_SE_EV_WALL_BROKEN); + SfxSource_PlaySfxAtFixedWorldPos(play, &D_808B2738, 40, NA_SE_EV_WALL_BROKEN); func_80078884(NA_SE_SY_CORRECT_CHIME); Actor_Kill(&this->dyna.actor); return; diff --git a/src/overlays/actors/ovl_Bg_Spot12_Gate/z_bg_spot12_gate.c b/src/overlays/actors/ovl_Bg_Spot12_Gate/z_bg_spot12_gate.c index d8cf6331df..dbc9fdd35a 100644 --- a/src/overlays/actors/ovl_Bg_Spot12_Gate/z_bg_spot12_gate.c +++ b/src/overlays/actors/ovl_Bg_Spot12_Gate/z_bg_spot12_gate.c @@ -114,7 +114,7 @@ void func_808B318C(BgSpot12Gate* this, PlayState* play) { Quake_SetSpeed(var, -0x3CB0); Quake_SetQuakeValues(var, 3, 0, 0, 0); Quake_SetCountdown(var, 0xC); - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EV_BRIDGE_OPEN_STOP); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EV_BRIDGE_OPEN_STOP); } else { func_8002F974(&this->dyna.actor, NA_SE_EV_METALGATE_OPEN - SFX_FLAG); } diff --git a/src/overlays/actors/ovl_Bg_Spot12_Saku/z_bg_spot12_saku.c b/src/overlays/actors/ovl_Bg_Spot12_Saku/z_bg_spot12_saku.c index 1a3dfe511b..bf62b1f10c 100644 --- a/src/overlays/actors/ovl_Bg_Spot12_Saku/z_bg_spot12_saku.c +++ b/src/overlays/actors/ovl_Bg_Spot12_Saku/z_bg_spot12_saku.c @@ -103,7 +103,7 @@ void func_808B3604(BgSpot12Saku* this, PlayState* play) { this->dyna.actor.home.pos.z - (Math_CosS(this->dyna.actor.shape.rot.y + 0x4000) * temp_f18); if (fabsf(temp_ret) < 0.0001f) { func_808B3714(this); - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EV_BRIDGE_OPEN_STOP); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EV_BRIDGE_OPEN_STOP); } else { func_8002F974(&this->dyna.actor, NA_SE_EV_METALGATE_OPEN - SFX_FLAG); } diff --git a/src/overlays/actors/ovl_Bg_Spot15_Rrbox/z_bg_spot15_rrbox.c b/src/overlays/actors/ovl_Bg_Spot15_Rrbox/z_bg_spot15_rrbox.c index b5ef416397..f5833a8e39 100644 --- a/src/overlays/actors/ovl_Bg_Spot15_Rrbox/z_bg_spot15_rrbox.c +++ b/src/overlays/actors/ovl_Bg_Spot15_Rrbox/z_bg_spot15_rrbox.c @@ -282,7 +282,7 @@ void func_808B4194(BgSpot15Rrbox* this, PlayState* play) { } else if (approxFResult) { player = GET_PLAYER(play); if (func_808B4010(this, play)) { - Audio_PlayActorSound2(actor, NA_SE_EV_WOOD_BOUND); + Audio_PlayActorSfx2(actor, NA_SE_EV_WOOD_BOUND); } if (func_808B3A40(this, play)) { func_80078884(NA_SE_SY_CORRECT_CHIME); @@ -296,7 +296,7 @@ void func_808B4194(BgSpot15Rrbox* this, PlayState* play) { this->unk_168 = 10; func_808B4084(this, play); } - Audio_PlayActorSound2(actor, NA_SE_EV_ROCK_SLIDE - SFX_FLAG); + Audio_PlayActorSfx2(actor, NA_SE_EV_ROCK_SLIDE - SFX_FLAG); } void func_808B4380(BgSpot15Rrbox* this, PlayState* play) { @@ -335,7 +335,7 @@ void func_808B43D0(BgSpot15Rrbox* this, PlayState* play) { if ((floorHeight - actor->world.pos.y) >= -0.001f) { actor->world.pos.y = floorHeight; func_808B4084(this, play); - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EV_WOOD_BOUND); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EV_WOOD_BOUND); } } diff --git a/src/overlays/actors/ovl_Bg_Spot15_Saku/z_bg_spot15_saku.c b/src/overlays/actors/ovl_Bg_Spot15_Saku/z_bg_spot15_saku.c index 3cad81c90e..176fe640f9 100644 --- a/src/overlays/actors/ovl_Bg_Spot15_Saku/z_bg_spot15_saku.c +++ b/src/overlays/actors/ovl_Bg_Spot15_Saku/z_bg_spot15_saku.c @@ -66,10 +66,10 @@ void func_808B4930(BgSpot15Saku* this, PlayState* play) { void func_808B4978(BgSpot15Saku* this, PlayState* play) { if (this->timer == 0) { - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EV_METALGATE_OPEN - SFX_FLAG); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EV_METALGATE_OPEN - SFX_FLAG); this->dyna.actor.world.pos.z -= 2.0f; if (this->dyna.actor.world.pos.z < 2660.0f) { - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EV_BRIDGE_OPEN_STOP); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EV_BRIDGE_OPEN_STOP); this->timer = 30; this->actionFunc = func_808B4A04; } diff --git a/src/overlays/actors/ovl_Bg_Spot16_Bombstone/z_bg_spot16_bombstone.c b/src/overlays/actors/ovl_Bg_Spot16_Bombstone/z_bg_spot16_bombstone.c index d9e50a1f2c..a91440cadc 100644 --- a/src/overlays/actors/ovl_Bg_Spot16_Bombstone/z_bg_spot16_bombstone.c +++ b/src/overlays/actors/ovl_Bg_Spot16_Bombstone/z_bg_spot16_bombstone.c @@ -513,7 +513,7 @@ void func_808B5B6C(BgSpot16Bombstone* this, PlayState* play) { ((actor->bgCheckFlags & BGCHECKFLAG_GROUND) && actor->velocity.y < 0.0f)) { BgSpot16Bombstone_SpawnFragments(this, play); BgSpot16Bombstone_SpawnDust(this, play); - SoundSource_PlaySfxAtFixedWorldPos(play, &actor->world.pos, 20, NA_SE_EV_ROCK_BROKEN); + SfxSource_PlaySfxAtFixedWorldPos(play, &actor->world.pos, 20, NA_SE_EV_ROCK_BROKEN); Actor_Kill(actor); return; } diff --git a/src/overlays/actors/ovl_Bg_Spot17_Bakudankabe/z_bg_spot17_bakudankabe.c b/src/overlays/actors/ovl_Bg_Spot17_Bakudankabe/z_bg_spot17_bakudankabe.c index 17f014a822..e4fe95d256 100644 --- a/src/overlays/actors/ovl_Bg_Spot17_Bakudankabe/z_bg_spot17_bakudankabe.c +++ b/src/overlays/actors/ovl_Bg_Spot17_Bakudankabe/z_bg_spot17_bakudankabe.c @@ -116,7 +116,7 @@ void BgSpot17Bakudankabe_Update(Actor* thisx, PlayState* play) { if (this->dyna.actor.xzDistToPlayer < 650.0f && func_80033684(play, &this->dyna.actor) != NULL) { func_808B6BC0(this, play); Flags_SetSwitch(play, (this->dyna.actor.params & 0x3F)); - SoundSource_PlaySfxAtFixedWorldPos(play, &this->dyna.actor.world.pos, 40, NA_SE_EV_WALL_BROKEN); + SfxSource_PlaySfxAtFixedWorldPos(play, &this->dyna.actor.world.pos, 40, NA_SE_EV_WALL_BROKEN); func_80078884(NA_SE_SY_CORRECT_CHIME); Actor_Kill(&this->dyna.actor); } diff --git a/src/overlays/actors/ovl_Bg_Spot18_Obj/z_bg_spot18_obj.c b/src/overlays/actors/ovl_Bg_Spot18_Obj/z_bg_spot18_obj.c index 772b38daf6..eaf35136a7 100644 --- a/src/overlays/actors/ovl_Bg_Spot18_Obj/z_bg_spot18_obj.c +++ b/src/overlays/actors/ovl_Bg_Spot18_Obj/z_bg_spot18_obj.c @@ -259,7 +259,7 @@ void func_808B8F08(BgSpot18Obj* this, PlayState* play) { player->stateFlags2 &= ~PLAYER_STATE2_4; Flags_SetSwitch(play, (this->dyna.actor.params >> 8) & 0x3F); func_80078884(NA_SE_SY_CORRECT_CHIME); - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EV_BLOCK_BOUND); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EV_BLOCK_BOUND); } else { func_8002F974(&this->dyna.actor, NA_SE_EV_ROCK_SLIDE - SFX_FLAG); } diff --git a/src/overlays/actors/ovl_Bg_Spot18_Shutter/z_bg_spot18_shutter.c b/src/overlays/actors/ovl_Bg_Spot18_Shutter/z_bg_spot18_shutter.c index edaa45269f..c42b868bea 100644 --- a/src/overlays/actors/ovl_Bg_Spot18_Shutter/z_bg_spot18_shutter.c +++ b/src/overlays/actors/ovl_Bg_Spot18_Shutter/z_bg_spot18_shutter.c @@ -106,7 +106,7 @@ void func_808B9618(BgSpot18Shutter* this, PlayState* play) { void func_808B9698(BgSpot18Shutter* this, PlayState* play) { if (Math_StepToF(&this->dyna.actor.world.pos.y, this->dyna.actor.home.pos.y + 180.0f, 1.44f)) { - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EV_STONEDOOR_STOP); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EV_STONEDOOR_STOP); this->actionFunc = func_808B95AC; } else { func_8002F974(&this->dyna.actor, NA_SE_EV_STONE_STATUE_OPEN - SFX_FLAG); @@ -122,7 +122,7 @@ void func_808B971C(BgSpot18Shutter* this, PlayState* play) { flag &= Math_StepToF(&this->dyna.actor.world.pos.z, this->dyna.actor.home.pos.z - (125.0f * sin), fabsf(sin)); if (flag) { - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EV_STONEDOOR_STOP); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EV_STONEDOOR_STOP); this->actionFunc = func_808B95AC; } else { func_8002F974(&this->dyna.actor, NA_SE_EV_STONE_STATUE_OPEN - SFX_FLAG); diff --git a/src/overlays/actors/ovl_Bg_Sst_Floor/z_bg_sst_floor.c b/src/overlays/actors/ovl_Bg_Sst_Floor/z_bg_sst_floor.c index 818051fdce..63e208ed8a 100644 --- a/src/overlays/actors/ovl_Bg_Sst_Floor/z_bg_sst_floor.c +++ b/src/overlays/actors/ovl_Bg_Sst_Floor/z_bg_sst_floor.c @@ -68,7 +68,7 @@ void BgSstFloor_Update(Actor* thisx, PlayState* play) { if (DynaPolyActor_IsPlayerOnTop(&this->dyna) && (player->fallDistance > 1000.0f)) { this->dyna.actor.params = 1; - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EN_SHADEST_TAIKO_HIGH); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EN_SHADEST_TAIKO_HIGH); } if (this->dyna.actor.params == BONGOFLOOR_HIT) { diff --git a/src/overlays/actors/ovl_Bg_Toki_Swd/z_bg_toki_swd.c b/src/overlays/actors/ovl_Bg_Toki_Swd/z_bg_toki_swd.c index bfbcb9cb86..62418a6287 100644 --- a/src/overlays/actors/ovl_Bg_Toki_Swd/z_bg_toki_swd.c +++ b/src/overlays/actors/ovl_Bg_Toki_Swd/z_bg_toki_swd.c @@ -133,7 +133,7 @@ void func_808BB0AC(BgTokiSwd* this, PlayState* play) { // if sword has a parent it has been pulled/placed from the pedestal if (Actor_HasParent(&this->actor, play)) { if (!LINK_IS_ADULT) { - Audio_PlayActorSound2(&this->actor, NA_SE_IT_SWORD_PUTAWAY_STN); + Audio_PlayActorSfx2(&this->actor, NA_SE_IT_SWORD_PUTAWAY_STN); this->actor.draw = NULL; // sword has been pulled, dont draw sword } else { this->actor.draw = BgTokiSwd_Draw; // sword has been placed, draw the master sword diff --git a/src/overlays/actors/ovl_Bg_Treemouth/z_bg_treemouth.c b/src/overlays/actors/ovl_Bg_Treemouth/z_bg_treemouth.c index 733b4ec7df..dd1e249a58 100644 --- a/src/overlays/actors/ovl_Bg_Treemouth/z_bg_treemouth.c +++ b/src/overlays/actors/ovl_Bg_Treemouth/z_bg_treemouth.c @@ -98,8 +98,8 @@ void func_808BC65C(BgTreemouth* this, PlayState* play) { if (npcAction->action == 2) { BgTreemouth_SetupAction(this, func_808BC80C); } else if (npcAction->action == 3) { - Audio_PlaySoundGeneral(NA_SE_EV_WOODDOOR_OPEN, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EV_WOODDOOR_OPEN, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); BgTreemouth_SetupAction(this, func_808BC6F8); } } @@ -202,8 +202,8 @@ void func_808BCAF0(BgTreemouth* this, PlayState* play) { if (npcAction->action == 2) { BgTreemouth_SetupAction(this, func_808BC80C); } else if (npcAction->action == 3) { - Audio_PlaySoundGeneral(NA_SE_EV_WOODDOOR_OPEN, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EV_WOODDOOR_OPEN, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); BgTreemouth_SetupAction(this, func_808BC6F8); } } diff --git a/src/overlays/actors/ovl_Bg_Vb_Sima/z_bg_vb_sima.c b/src/overlays/actors/ovl_Bg_Vb_Sima/z_bg_vb_sima.c index 911dcc87de..c4cfd81a9c 100644 --- a/src/overlays/actors/ovl_Bg_Vb_Sima/z_bg_vb_sima.c +++ b/src/overlays/actors/ovl_Bg_Vb_Sima/z_bg_vb_sima.c @@ -83,8 +83,8 @@ void BgVbSima_Update(Actor* thisx, PlayState* play) { this->dyna.actor.world.pos.z += 2.0f * Math_CosS(this->shakeTimer * 0x8000); this->dyna.actor.shape.rot.x = (s16)Math_SinS(this->shakeTimer * 0x7000) * 0x37; this->dyna.actor.shape.rot.z = (s16)Math_SinS(this->shakeTimer * 0x5000) * 0x37; - Audio_PlaySoundGeneral(NA_SE_EV_BLOCKSINK - SFX_FLAG, &this->dyna.actor.projectedPos, 4, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EV_BLOCKSINK - SFX_FLAG, &this->dyna.actor.projectedPos, 4, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } else if (signal == VBSIMA_KILL) { Actor_Kill(&this->dyna.actor); } diff --git a/src/overlays/actors/ovl_Bg_Ydan_Maruta/z_bg_ydan_maruta.c b/src/overlays/actors/ovl_Bg_Ydan_Maruta/z_bg_ydan_maruta.c index 8a8668d092..be86ce0881 100644 --- a/src/overlays/actors/ovl_Bg_Ydan_Maruta/z_bg_ydan_maruta.c +++ b/src/overlays/actors/ovl_Bg_Ydan_Maruta/z_bg_ydan_maruta.c @@ -184,7 +184,7 @@ void func_808BF108(BgYdanMaruta* this, PlayState* play) { void func_808BF1EC(BgYdanMaruta* this, PlayState* play) { this->dyna.actor.velocity.y += 1.0f; if (Math_StepToF(&this->dyna.actor.world.pos.y, this->dyna.actor.home.pos.y, this->dyna.actor.velocity.y)) { - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EV_LADDER_DOUND); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EV_LADDER_DOUND); this->actionFunc = BgYdanMaruta_DoNothing; } } diff --git a/src/overlays/actors/ovl_Bg_Ydan_Sp/z_bg_ydan_sp.c b/src/overlays/actors/ovl_Bg_Ydan_Sp/z_bg_ydan_sp.c index 97f95a1c07..25ff811ec2 100644 --- a/src/overlays/actors/ovl_Bg_Ydan_Sp/z_bg_ydan_sp.c +++ b/src/overlays/actors/ovl_Bg_Ydan_Sp/z_bg_ydan_sp.c @@ -296,7 +296,7 @@ void BgYdanSp_FloorWebIdle(BgYdanSp* this, PlayState* play) { this->dyna.actor.room = -1; this->dyna.actor.flags |= ACTOR_FLAG_4; this->timer = 40; - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EV_WEB_BROKEN); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EV_WEB_BROKEN); this->actionFunc = BgYdanSp_FloorWebBreaking; return; } @@ -329,7 +329,7 @@ void BgYdanSp_FloorWebIdle(BgYdanSp* this, PlayState* play) { Math_ApproachZeroF(&this->unk_16C, 1.0f, 0.8f); if (this->timer == 13) { if (this->unk_16C > 3.0f) { - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EV_WEB_VIBRATION); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EV_WEB_VIBRATION); } else { Audio_StopSfxById(NA_SE_EV_WEB_VIBRATION); } diff --git a/src/overlays/actors/ovl_Bg_Zg/z_bg_zg.c b/src/overlays/actors/ovl_Bg_Zg/z_bg_zg.c index f896282373..0f90bbb205 100644 --- a/src/overlays/actors/ovl_Bg_Zg/z_bg_zg.c +++ b/src/overlays/actors/ovl_Bg_Zg/z_bg_zg.c @@ -54,8 +54,8 @@ void BgZg_Destroy(Actor* thisx, PlayState* play) { } void func_808C0C50(BgZg* this) { - Audio_PlaySoundGeneral(NA_SE_EV_METALDOOR_OPEN, &this->dyna.actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EV_METALDOOR_OPEN, &this->dyna.actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } s32 func_808C0C98(BgZg* this, PlayState* play) { diff --git a/src/overlays/actors/ovl_Boss_Dodongo/z_boss_dodongo.c b/src/overlays/actors/ovl_Boss_Dodongo/z_boss_dodongo.c index be57ae7a1f..66e9d3d103 100644 --- a/src/overlays/actors/ovl_Boss_Dodongo/z_boss_dodongo.c +++ b/src/overlays/actors/ovl_Boss_Dodongo/z_boss_dodongo.c @@ -398,7 +398,7 @@ void BossDodongo_IntroCutscene(BossDodongo* this, PlayState* play) { } if (this->unk_198 == 0x64) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_DODO_K_OTAKEBI); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_DODO_K_OTAKEBI); } if (this->unk_198 == 0x5A) { @@ -550,8 +550,8 @@ void BossDodongo_Explode(BossDodongo* this, PlayState* play) { Animation_Change(&this->skelAnime, &object_kingdodongo_Anim_004E0C, 1.0f, 0.0f, Animation_GetLastFrame(&object_kingdodongo_Anim_004E0C), ANIMMODE_ONCE, -5.0f); this->actionFunc = BossDodongo_LayDown; - Audio_PlayActorSound2(&this->actor, NA_SE_IT_BOMB_EXPLOSION); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_DODO_K_DAMAGE); + Audio_PlayActorSfx2(&this->actor, NA_SE_IT_BOMB_EXPLOSION); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_DODO_K_DAMAGE); func_80033E88(&this->actor, play, 4, 10); this->health -= 2; @@ -576,7 +576,7 @@ void BossDodongo_LayDown(BossDodongo* this, PlayState* play) { } void BossDodongo_Vulnerable(BossDodongo* this, PlayState* play) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_DODO_K_DOWN - SFX_FLAG); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_DODO_K_DOWN - SFX_FLAG); this->unk_1BE = 10; Math_SmoothStepToF(&this->unk_1F8, 1.0f, 0.5f, 0.02f, 0.001f); Math_SmoothStepToF(&this->unk_208, 0.05f, 1.0f, 0.005f, 0.0f); @@ -605,7 +605,7 @@ void BossDodongo_BlowFire(BossDodongo* this, PlayState* play) { SkelAnime_Update(&this->skelAnime); if (Animation_OnFrame(&this->skelAnime, 12.0f)) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_DODO_K_CRY); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_DODO_K_CRY); } if (Animation_OnFrame(&this->skelAnime, 17.0f)) { @@ -627,7 +627,7 @@ void BossDodongo_Inhale(BossDodongo* this, PlayState* play) { this->unk_1E2 = 1; if (this->unk_1AC > 20) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_DODO_K_BREATH - SFX_FLAG); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_DODO_K_BREATH - SFX_FLAG); } Math_SmoothStepToF(&this->unk_208, 0.05f, 1.0f, 0.005f, 0.0f); @@ -639,7 +639,7 @@ void BossDodongo_Inhale(BossDodongo* this, PlayState* play) { this->unk_1AC++; if ((this->unk_1AC > 20) && (this->unk_1AC < 82) && BossDodongo_AteExplosive(this, play)) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_DODO_K_DRINK); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_DODO_K_DRINK); BossDodongo_SetupExplode(this); } } @@ -673,7 +673,7 @@ void BossDodongo_Walk(BossDodongo* this, PlayState* play) { if (this->unk_1BC != 0) { func_80078884(NA_SE_EN_DODO_K_WALK); } else { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_DODO_K_WALK); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_DODO_K_WALK); } if (this->subCamId == SUB_CAM_ID_DONE) { @@ -737,11 +737,11 @@ void BossDodongo_Roll(BossDodongo* this, PlayState* play) { if (this->unk_1DA == 10) { this->actor.velocity.y = 15.0f; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_DODO_K_CRY); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_DODO_K_CRY); } if (this->unk_1DA == 1) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_DODO_K_COLI2); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_DODO_K_COLI2); } sp5C = &sCornerPositions[this->unk_1A0]; @@ -755,7 +755,7 @@ void BossDodongo_Roll(BossDodongo* this, PlayState* play) { if (this->actor.bgCheckFlags & BGCHECKFLAG_GROUND) { this->unk_228 = 7700.0f; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_DODO_K_ROLL - SFX_FLAG); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_DODO_K_ROLL - SFX_FLAG); if ((this->unk_19E & 7) == 0) { Camera_AddQuake(&play->mainCamera, 2, 1, 8); @@ -786,7 +786,7 @@ void BossDodongo_Roll(BossDodongo* this, PlayState* play) { BossDodongo_SetupWalk(this); this->unk_228 = 9200.0f; this->actor.velocity.y = 20.0f; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_DODO_K_COLI); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_DODO_K_COLI); Camera_AddQuake(&play->mainCamera, 2, 6, 8); sp50.x = this->actor.world.pos.x; sp50.y = this->actor.world.pos.y + 60.0f; @@ -795,7 +795,7 @@ void BossDodongo_Roll(BossDodongo* this, PlayState* play) { func_80033E88(&this->actor, play, 6, 15); } else { this->actor.velocity.y = 15.0f; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_DODO_K_COLI2); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_DODO_K_COLI2); } if (this->unk_1A2 == 0) { @@ -1263,7 +1263,7 @@ void BossDodongo_UpdateDamage(BossDodongo* this, PlayState* play) { swordDamage = damage = CollisionCheck_GetSwordDamage(item1->toucher.dmgFlags); if (damage != 0) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_DODO_K_DAMAGE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_DODO_K_DAMAGE); BossDodongo_SetupDamaged(this); this->unk_1C0 = 5; this->health -= swordDamage; @@ -1279,7 +1279,7 @@ void BossDodongo_SetupDeathCutscene(BossDodongo* this) { Animation_Change(&this->skelAnime, &object_kingdodongo_Anim_002D0C, 1.0f, 0.0f, Animation_GetLastFrame(&object_kingdodongo_Anim_002D0C), ANIMMODE_ONCE, -5.0f); this->actionFunc = BossDodongo_DeathCutscene; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_DODO_K_DEAD); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_DODO_K_DEAD); this->unk_1DA = 0; this->csState = 0; this->actor.flags &= ~(ACTOR_FLAG_0 | ACTOR_FLAG_2); @@ -1393,7 +1393,7 @@ void BossDodongo_DeathCutscene(BossDodongo* this, PlayState* play) { Math_SmoothStepToF(&this->actor.world.pos.x, cornerPos->x + sp184.x, 1.0f, this->unk_1E4, 0.0f); Math_SmoothStepToF(&this->actor.world.pos.z, cornerPos->z + sp184.z, 1.0f, this->unk_1E4, 0.0f); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_DODO_K_ROLL - SFX_FLAG); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_DODO_K_ROLL - SFX_FLAG); if ((this->unk_19E & 7) == 0) { Camera_AddQuake(&play->mainCamera, 2, 1, 8); } @@ -1411,7 +1411,7 @@ void BossDodongo_DeathCutscene(BossDodongo* this, PlayState* play) { Vec3f dustPos; this->actor.velocity.y = 15.0f; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_DODO_K_COLI2); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_DODO_K_COLI2); if (this->unk_1A2 == 0) { this->unk_1A0 = this->unk_1A0 + 1; if (this->unk_1A0 >= 4) { @@ -1455,13 +1455,13 @@ void BossDodongo_DeathCutscene(BossDodongo* this, PlayState* play) { Math_SmoothStepToS(&this->unk_1C4, -0x4000, 0xA, 0x12C, 0); } if (this->unk_1DA == 904) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_DODO_K_END); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_DODO_K_END); } if (this->unk_1DA < 854) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_DODO_K_LAST - SFX_FLAG); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_DODO_K_LAST - SFX_FLAG); } if (this->unk_1DA == 960) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_DODO_K_LAVA); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_DODO_K_LAVA); } if (this->unk_1DA < 960) { Math_SmoothStepToF(&this->actor.shape.shadowScale, 0.0f, 1.0f, 10.0f, 0.0f); @@ -1521,7 +1521,7 @@ void BossDodongo_DeathCutscene(BossDodongo* this, PlayState* play) { } } } else { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_DODO_K_ROLL - SFX_FLAG); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_DODO_K_ROLL - SFX_FLAG); if (!(this->unk_19E & 1)) { Actor_SpawnFloorDustRing(play, &this->actor, &this->actor.world.pos, 40.0f, 3, 8.0f, 500, 10, false); diff --git a/src/overlays/actors/ovl_Boss_Fd/z_boss_fd.c b/src/overlays/actors/ovl_Boss_Fd/z_boss_fd.c index 83e22e0b9e..bf90e88f71 100644 --- a/src/overlays/actors/ovl_Boss_Fd/z_boss_fd.c +++ b/src/overlays/actors/ovl_Boss_Fd/z_boss_fd.c @@ -383,9 +383,8 @@ void BossFd_Fly(BossFd* this, PlayState* play) { this->fogMode = 1; } if (this->timers[0] < 50) { - Audio_PlaySoundGeneral(NA_SE_EN_DODO_K_ROLL - SFX_FLAG, &this->actor.projectedPos, 4, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EN_DODO_K_ROLL - SFX_FLAG, &this->actor.projectedPos, 4, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); this->subCamAtYOffset = Math_CosS(this->work[BFD_MOVE_TIMER] * 0x8000) * this->subCamShake; Math_ApproachF(&this->subCamShake, 2.0f, 1.0f, 0.8 * 0.01f); } @@ -405,8 +404,8 @@ void BossFd_Fly(BossFd* this, PlayState* play) { case BFD_CS_LOOK_GROUND: this->subCamAtYOffset = Math_CosS(this->work[BFD_MOVE_TIMER] * 0x8000) * this->subCamShake; Math_ApproachF(&this->subCamShake, 2.0f, 1.0f, 0.8 * 0.01f); - Audio_PlaySoundGeneral(NA_SE_EN_DODO_K_ROLL - SFX_FLAG, &this->actor.projectedPos, 4, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EN_DODO_K_ROLL - SFX_FLAG, &this->actor.projectedPos, 4, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); if (this->timers[0] == 0) { this->introState = BFD_CS_COLLAPSE; this->subCamEyeNext.x = player2->actor.world.pos.x + 100.0f + 300.0f; @@ -426,8 +425,8 @@ void BossFd_Fly(BossFd* this, PlayState* play) { this->subCamAccel = 0.005f; this->subCamAtYOffset = Math_CosS(this->work[BFD_MOVE_TIMER] * 0x8000) * this->subCamShake; Math_ApproachF(&this->subCamShake, 2.0f, 1.0f, 0.8 * 0.01f); - Audio_PlaySoundGeneral(NA_SE_EN_DODO_K_ROLL - SFX_FLAG, &this->actor.projectedPos, 4, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EN_DODO_K_ROLL - SFX_FLAG, &this->actor.projectedPos, 4, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); if (this->timers[0] == 100) { this->platformSignal = VBSIMA_COLLAPSE; } @@ -463,9 +462,8 @@ void BossFd_Fly(BossFd* this, PlayState* play) { osSyncPrintf("WAY_SPD Y = %f\n", this->subCamAtVel.y); osSyncPrintf("WAY_SPD Z = %f\n", this->subCamAtVel.z); if ((this->timers[3] > 190) && !GET_EVENTCHKINF(EVENTCHKINF_73)) { - Audio_PlaySoundGeneral(NA_SE_EN_DODO_K_ROLL - SFX_FLAG, &this->actor.projectedPos, 4, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EN_DODO_K_ROLL - SFX_FLAG, &this->actor.projectedPos, 4, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } if (this->timers[3] == 190) { this->subCamAtMaxVelFrac.x = this->subCamAtMaxVelFrac.y = this->subCamAtMaxVelFrac.z = 0.05f; @@ -673,9 +671,8 @@ void BossFd_Fly(BossFd* this, PlayState* play) { if (this->actor.bgCheckFlags & BGCHECKFLAG_CEILING) { this->fwork[BFD_CEILING_BOUNCE] = -18384.0f; this->timers[1] = 10; - Audio_PlaySoundGeneral(NA_SE_EV_EXPLOSION, &this->actor.projectedPos, 4, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EV_EXPLOSION, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); func_80033E1C(play, 3, 0xA, 0x7530); this->work[BFD_ROCK_TIMER] = 300; } @@ -774,9 +771,8 @@ void BossFd_Fly(BossFd* this, PlayState* play) { sp150 = 1; if (this->work[BFD_MOVE_TIMER] & 0x1C) { - Audio_PlaySoundGeneral(NA_SE_EN_VALVAISA_BURN - SFX_FLAG, &this->actor.projectedPos, 4, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EN_VALVAISA_BURN - SFX_FLAG, &this->actor.projectedPos, 4, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } for (i1 = 0; i1 < sp150; i1++) { if (sp150) { // Needed for matching @@ -848,9 +844,9 @@ void BossFd_Fly(BossFd* this, PlayState* play) { this->work[BFD_CEILING_TARGET]++; this->timers[1] = 60; this->work[BFD_CAM_SHAKE_TIMER] = 20; - Audio_PlaySoundGeneral(NA_SE_EN_VALVAISA_LAND2, &this->actor.projectedPos, 4, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EN_VALVAISA_LAND2, &this->actor.projectedPos, 4, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultReverb); func_8002DF54(play, &this->actor, 5); for (i1 = 0; i1 < 15; i1++) { Vec3f sp144 = { 0.0f, 0.0f, 0.0f }; @@ -891,8 +887,8 @@ void BossFd_Fly(BossFd* this, PlayState* play) { Vec3f sp114 = { 0.0f, 0.0f, 0.0f }; Vec3f sp108 = { 0.0f, 0.03f, 0.0f }; - Audio_PlaySoundGeneral(NA_SE_EN_GOMA_LAST - SFX_FLAG, &this->actor.projectedPos, 4, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EN_GOMA_LAST - SFX_FLAG, &this->actor.projectedPos, 4, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); sp120.x = Rand_CenteredFloat(40.0f) + this->actor.world.pos.x; sp120.y = (Rand_CenteredFloat(10.0f) + this->actor.world.pos.y) - 10.0f; @@ -1135,8 +1131,8 @@ void BossFd_Effects(BossFd* this, PlayState* play) { if (this->work[BFD_ROAR_TIMER] != 0) { if (this->work[BFD_ROAR_TIMER] == 37) { - Audio_PlaySoundGeneral(NA_SE_EN_VALVAISA_ROAR, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EN_VALVAISA_ROAR, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } jawAngle = 6000.0f; jawSpeed = 1300.0f; @@ -1156,8 +1152,8 @@ void BossFd_Effects(BossFd* this, PlayState* play) { Vec3f spawnPos1; s32 pad; - Audio_PlaySoundGeneral(NA_SE_EN_VALVAISA_APPEAR - SFX_FLAG, &this->actor.projectedPos, 4, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EN_VALVAISA_APPEAR - SFX_FLAG, &this->actor.projectedPos, 4, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); if (this->work[BFD_SPLASH_TIMER] != 0) { this->work[BFD_SPLASH_TIMER]--; if ((this->actor.colChkInfo.health == 0) || @@ -1234,8 +1230,8 @@ void BossFd_Effects(BossFd* this, PlayState* play) { this->fogMode = 2; spawnSpeed2.z = 30.0f; - Audio_PlaySoundGeneral(NA_SE_EN_VALVAISA_FIRE - SFX_FLAG, &sFireAudioVec, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EN_VALVAISA_FIRE - SFX_FLAG, &sFireAudioVec, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); spawnPos2 = this->headPos; spawnAngleY = BINANG_TO_RAD_ALT(this->actor.world.rot.y); @@ -1297,8 +1293,8 @@ void BossFd_CollisionCheck(BossFd* this, PlayState* play) { } this->work[BFD_DAMAGE_FLASH_TIMER] = 10; this->work[BFD_INVINC_TIMER] = 20; - Audio_PlaySoundGeneral(NA_SE_EN_VALVAISA_DAMAGE1, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EN_VALVAISA_DAMAGE1, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } } diff --git a/src/overlays/actors/ovl_Boss_Fd2/z_boss_fd2.c b/src/overlays/actors/ovl_Boss_Fd2/z_boss_fd2.c index a2e58fe507..da50375666 100644 --- a/src/overlays/actors/ovl_Boss_Fd2/z_boss_fd2.c +++ b/src/overlays/actors/ovl_Boss_Fd2/z_boss_fd2.c @@ -277,7 +277,7 @@ void BossFd2_Emerge(BossFd2* this, PlayState* play) { this->skelAnime.playSpeed = 1.0f; this->fwork[FD2_END_FRAME] = Animation_GetLastFrame(&gHoleVolvagiaEmergeAnim); this->work[FD2_ACTION_STATE] = 2; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_VALVAISA_ROAR); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_VALVAISA_ROAR); this->actor.shape.rot.y = this->actor.yawTowardsPlayer; this->timers[0] = 15; this->actor.world.pos.y = 150.0f; @@ -295,7 +295,7 @@ void BossFd2_Emerge(BossFd2* this, PlayState* play) { Math_ApproachS(&this->actor.shape.rot.y, this->actor.yawTowardsPlayer, 3, 0x7D0); if ((this->timers[0] == 1) && (this->actor.xzDistToPlayer < 120.0f)) { func_8002F6D4(play, &this->actor, 3.0f, this->actor.yawTowardsPlayer, 2.0f, 0x20); - Audio_PlayActorSound2(&player->actor, NA_SE_PL_BODY_HIT); + Audio_PlayActorSfx2(&player->actor, NA_SE_PL_BODY_HIT); } if (Animation_OnFrame(&this->skelAnime, this->fwork[FD2_END_FRAME])) { BossFd2_SetupIdle(this, play); @@ -413,7 +413,7 @@ void BossFd2_BreatheFire(BossFd2* this, PlayState* play) { if (this->skelAnime.curFrame == 25.0f) { play->envCtx.lightBlend = 0.0f; } - Audio_PlayActorSound2(&this->actor, NA_SE_EN_VALVAISA_FIRE - SFX_FLAG); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_VALVAISA_FIRE - SFX_FLAG); if (this->skelAnime.curFrame > 50) { breathOpacity = (70.0f - this->skelAnime.curFrame) * 12.0f; } else { @@ -503,8 +503,8 @@ void BossFd2_SetupClawSwipe(BossFd2* this, PlayState* play) { void BossFd2_ClawSwipe(BossFd2* this, PlayState* play) { SkelAnime_Update(&this->skelAnime); if (Animation_OnFrame(&this->skelAnime, 5.0f)) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_VALVAISA_ROAR); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_VALVAISA_SW_NAIL); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_VALVAISA_ROAR); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_VALVAISA_SW_NAIL); } if (Animation_OnFrame(&this->skelAnime, this->fwork[FD2_END_FRAME])) { BossFd2_SetupBurrow(this, play); @@ -528,7 +528,7 @@ void BossFd2_Vulnerable(BossFd2* this, PlayState* play) { switch (this->work[FD2_ACTION_STATE]) { case 0: if (Animation_OnFrame(&this->skelAnime, 13.0f)) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_VALVAISA_MAHI2); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_VALVAISA_MAHI2); } if (Animation_OnFrame(&this->skelAnime, this->fwork[FD2_END_FRAME] - 3.0f)) { for (i = 0; i < 25; i++) { @@ -549,7 +549,7 @@ void BossFd2_Vulnerable(BossFd2* this, PlayState* play) { BossFd2_SpawnDust(bossFd->effects, &spawnPos, &spawnVel, &spawnAccel, Rand_ZeroFloat(100.0f) + 300.0f); } - Audio_PlayActorSound2(&this->actor, NA_SE_EN_VALVAISA_LAND); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_VALVAISA_LAND); } if (Animation_OnFrame(&this->skelAnime, this->fwork[FD2_END_FRAME])) { Animation_MorphToLoop(&this->skelAnime, &gHoleVolvagiaVulnerableAnim, -5.0f); @@ -559,7 +559,7 @@ void BossFd2_Vulnerable(BossFd2* this, PlayState* play) { break; case 1: if ((this->work[FD2_VAR_TIMER] & 0xF) == 0xF) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_VALVAISA_KNOCKOUT); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_VALVAISA_KNOCKOUT); } if (this->timers[0] == 0) { BossFd2_SetupBurrow(this, play); @@ -588,7 +588,7 @@ void BossFd2_Damaged(BossFd2* this, PlayState* play) { } } else if (this->work[FD2_ACTION_STATE] == 1) { if (Animation_OnFrame(&this->skelAnime, 6.0f)) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_VALVAISA_DAMAGE2); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_VALVAISA_DAMAGE2); } if (Animation_OnFrame(&this->skelAnime, 20.0f)) { bossFd->timers[4] = 30; @@ -690,7 +690,7 @@ void BossFd2_Death(BossFd2* this, PlayState* play) { Audio_StopSfxById(NA_SE_EN_VALVAISA_DEAD); } - Audio_PlayActorSound2(&this->actor, NA_SE_EN_VALVAISA_DAMAGE2); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_VALVAISA_DAMAGE2); } Math_ApproachF(&this->skelAnime.playSpeed, retreatSpeed, 1.0f, 1.0f); Matrix_RotateY(BINANG_TO_RAD_ALT(this->actor.yawTowardsPlayer) + 0.2f, MTXMODE_NEW); @@ -815,7 +815,7 @@ void BossFd2_CollisionCheck(BossFd2* this, PlayState* play) { for (i = 0; i < ARRAY_COUNT(this->elements); i++) { if (this->collider.elements[i].info.toucherFlags & TOUCH_HIT) { this->collider.elements[i].info.toucherFlags &= ~TOUCH_HIT; - Audio_PlayActorSound2(&player->actor, NA_SE_PL_BODY_HIT); + Audio_PlayActorSfx2(&player->actor, NA_SE_PL_BODY_HIT); } } } @@ -841,7 +841,7 @@ void BossFd2_CollisionCheck(BossFd2* this, PlayState* play) { BossFd2_SetupVulnerable(this, play); this->work[FD2_INVINC_TIMER] = 30; this->work[FD2_DAMAGE_FLASH_TIMER] = 5; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_VALVAISA_MAHI1); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_VALVAISA_MAHI1); for (i = 0; i < 30; i++) { Vec3f debrisVel = { 0.0f, 0.0f, 0.0f }; Vec3f debrisAccel = { 0.0f, -1.0f, 0.0f }; @@ -885,13 +885,13 @@ void BossFd2_CollisionCheck(BossFd2* this, PlayState* play) { this->work[FD2_DAMAGE_FLASH_TIMER] = 10; this->work[FD2_INVINC_TIMER] = 30000; Audio_QueueSeqCmd(0x1 << 28 | SEQ_PLAYER_BGM_MAIN << 24 | 0x100FF); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_VALVAISA_DEAD); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_VALVAISA_DEAD); Enemy_StartFinishingBlow(play, &this->actor); } else if (damage) { BossFd2_SetupDamaged(this, play); this->work[FD2_DAMAGE_FLASH_TIMER] = 10; this->work[FD2_INVINC_TIMER] = 100; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_VALVAISA_DAMAGE1); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_VALVAISA_DAMAGE1); } if (damage) { for (i = 0; i < 30; i++) { diff --git a/src/overlays/actors/ovl_Boss_Ganon/z_boss_ganon.c b/src/overlays/actors/ovl_Boss_Ganon/z_boss_ganon.c index aff2697823..8fe9f07952 100644 --- a/src/overlays/actors/ovl_Boss_Ganon/z_boss_ganon.c +++ b/src/overlays/actors/ovl_Boss_Ganon/z_boss_ganon.c @@ -882,7 +882,7 @@ void BossGanon_IntroCutscene(BossGanon* this, PlayState* play) { } if (this->csTimer == 57) { - Audio_PlayActorSound2(&this->actor, NA_SE_EV_GANON_MANTLE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_GANON_MANTLE); } Math_ApproachF(&this->csCamFov, 110.0f, 0.1f, this->csCamMaxStepScale * 2.0f); @@ -980,7 +980,7 @@ void BossGanon_IntroCutscene(BossGanon* this, PlayState* play) { this->fwork[GDF_VORTEX_ALPHA] = 0.0f; this->fwork[GDF_VORTEX_SCALE] = 0.1f; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_GANON_DARKWAVE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_GANON_DARKWAVE); } break; @@ -995,7 +995,7 @@ void BossGanon_IntroCutscene(BossGanon* this, PlayState* play) { } if (this->csTimer > 20) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_GANON_DARKWAVE_M - SFX_FLAG); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_GANON_DARKWAVE_M - SFX_FLAG); } if (this->csTimer > 20) { @@ -1019,7 +1019,7 @@ void BossGanon_IntroCutscene(BossGanon* this, PlayState* play) { case 21: // purple vortex this->envLightMode = 11; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_GANON_DARKWAVE_M - SFX_FLAG); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_GANON_DARKWAVE_M - SFX_FLAG); BossGanonEff_SpawnShock(play, 700.0f, GDF_SHOCK_PLAYER_PURPLE); BossGanonEff_SpawnShock(play, 700.0f, GDF_SHOCK_PLAYER_PURPLE); @@ -1072,7 +1072,7 @@ void BossGanon_IntroCutscene(BossGanon* this, PlayState* play) { SkelAnime_Update(&this->skelAnime); this->actor.shape.yOffset = 0.0f; sCape->attachShouldersTimer = 18.0f; - Audio_PlayActorSound2(&this->actor, NA_SE_EV_GANON_MANTLE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_GANON_MANTLE); this->unk_198 = 0; Audio_QueueSeqCmd(SEQ_PLAYER_BGM_MAIN << 24 | NA_BGM_GANONDORF_BOSS); } @@ -1091,7 +1091,7 @@ void BossGanon_IntroCutscene(BossGanon* this, PlayState* play) { if (this->csTimer >= 20) { this->legSwayEnabled = true; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_GANON_FLOAT - SFX_FLAG); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_GANON_FLOAT - SFX_FLAG); Math_ApproachF(&this->actor.world.pos.y, 228.0f, 0.05f, 2.0f); Math_ApproachF(&this->actor.world.pos.z, -230.0f, 0.05f, 4.0f); @@ -1299,7 +1299,7 @@ void BossGanon_DeathAndTowerCutscene(BossGanon* this, PlayState* play) { } if ((this->unk_1A2 % 32) == 0) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_GANON_BREATH); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_GANON_BREATH); } break; @@ -1307,7 +1307,7 @@ void BossGanon_DeathAndTowerCutscene(BossGanon* this, PlayState* play) { this->envLightMode = 14; if ((this->fwork[GDF_FWORK_1] > 100.0f) && ((this->unk_1A2 % 32) == 0)) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_GANON_BREATH); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_GANON_BREATH); } this->csCamEye.x = 7.0f; @@ -1322,7 +1322,7 @@ void BossGanon_DeathAndTowerCutscene(BossGanon* this, PlayState* play) { (Message_GetState(&play->msgCtx) == TEXT_STATE_NONE)) { Animation_MorphToPlayOnce(&this->skelAnime, &object_ganon_anime2_Anim_00B668, 0.0f); this->fwork[GDF_FWORK_1] = Animation_GetLastFrame(&object_ganon_anime2_Anim_00B668); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_GANON_TOKETU); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_GANON_TOKETU); } else { if (Animation_OnFrame(&this->skelAnime, this->fwork[GDF_FWORK_1] - 16.0f)) { for (i = 0; i < 40; i++) { @@ -1389,7 +1389,7 @@ void BossGanon_DeathAndTowerCutscene(BossGanon* this, PlayState* play) { this->csCamAtMaxStep.y = fabsf(this->csCamAt.y - this->csCamTargetAt.y); this->csCamAtMaxStep.z = fabsf(this->csCamAt.z - this->csCamTargetAt.z); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_GANON_CASBREAK); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_GANON_CASBREAK); } break; @@ -1437,7 +1437,7 @@ void BossGanon_DeathAndTowerCutscene(BossGanon* this, PlayState* play) { skip_cam_and_quake: this->envLightMode = 15; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_GANON_BODY_SPARK - SFX_FLAG); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_GANON_BODY_SPARK - SFX_FLAG); for (i = 1; i < 15; i++) { this->unk_4E4[i] = 0xA; @@ -1464,7 +1464,7 @@ void BossGanon_DeathAndTowerCutscene(BossGanon* this, PlayState* play) { break; case 9: - Audio_PlayActorSound2(&this->actor, NA_SE_EN_GANON_BODY_SPARK - SFX_FLAG); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_GANON_BODY_SPARK - SFX_FLAG); if (this->csTimer == 2) { func_8002DF54(play, &this->actor, 0x39); @@ -1556,15 +1556,15 @@ void BossGanon_DeathAndTowerCutscene(BossGanon* this, PlayState* play) { } if (this->csTimer == 160) { - Audio_PlayActorSound2(&this->actor, NA_SE_PL_BOUND_NOWEAPON); + Audio_PlayActorSfx2(&this->actor, NA_SE_PL_BOUND_NOWEAPON); } if (this->csTimer == 187) { - Audio_PlayActorSound2(&this->actor, NA_SE_PL_BODY_HIT); + Audio_PlayActorSfx2(&this->actor, NA_SE_PL_BODY_HIT); } if (this->csTimer == 180) { - Audio_PlayActorSound2(&this->actor, NA_SE_EV_GANON_MANTLE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_GANON_MANTLE); } if (this->csTimer == 190) { @@ -1610,7 +1610,7 @@ void BossGanon_DeathAndTowerCutscene(BossGanon* this, PlayState* play) { break; case 103: - Audio_PlayActorSound2(&sZelda->actor, NA_SE_EV_DOWN_TO_GROUND - SFX_FLAG); + Audio_PlayActorSfx2(&sZelda->actor, NA_SE_EV_DOWN_TO_GROUND - SFX_FLAG); Math_ApproachF(&sZelda->actor.world.pos.y, 4102.0f, 0.05f, 1.5f); this->csCamEye.x = -242.0f; @@ -1859,7 +1859,7 @@ void BossGanon_PoundFloor(BossGanon* this, PlayState* play) { Math_ApproachF(&this->fwork[GDF_CENTER_POS], 0.0f, 1, 1.5f); if (this->timers[0] == 5) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_GANON_HIT_GND); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_GANON_HIT_GND); } if (this->timers[0] < 14) { @@ -1899,7 +1899,7 @@ void BossGanon_PoundFloor(BossGanon* this, PlayState* play) { func_80033E88(&this->actor, play, 0xA, 0x14); // rumble this->unk_19C = 35; this->unk_19E = 0; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_GANON_HIT_GND_IMP); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_GANON_HIT_GND_IMP); this->handLightBallScale = 0.0f; sp60 = this->unk_260; sp60.y = 0.0f; @@ -1935,7 +1935,7 @@ void BossGanon_PoundFloor(BossGanon* this, PlayState* play) { Animation_MorphToPlayOnce(&this->skelAnime, &gDorfGetUp3Anim, 0.0f); SkelAnime_Update(&this->skelAnime); sCape->attachShouldersTimer = 18.0f; - Audio_PlayActorSound2(&this->actor, NA_SE_EV_GANON_MANTLE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_GANON_MANTLE); this->unk_1C2 = 4; } break; @@ -2018,7 +2018,7 @@ void BossGanon_ChargeBigMagic(BossGanon* this, PlayState* play) { case 2: this->envLightMode = 2; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_GANON_CHARGE_MASIC - SFX_FLAG); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_GANON_CHARGE_MASIC - SFX_FLAG); this->unk_278.x = this->unk_2EC[0].x; this->unk_278.y = this->unk_2EC[0].y + 50.0f + 30.0f; this->unk_278.z = this->unk_2EC[0].z; @@ -2037,7 +2037,7 @@ void BossGanon_ChargeBigMagic(BossGanon* this, PlayState* play) { this->unk_1C2 = 3; this->timers[0] = 6; this->timers[1] = 15; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_GANON_DARKWAVE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_GANON_DARKWAVE); break; } @@ -2119,7 +2119,7 @@ void BossGanon_ChargeBigMagic(BossGanon* this, PlayState* play) { if (this->timers[0] == 1) { sCape->attachLeftArmTimer = 15.0f; - Audio_PlayActorSound2(&this->actor, NA_SE_EV_GANON_MANTLE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_GANON_MANTLE); } if (this->timers[0] == 0) { @@ -2151,13 +2151,13 @@ void BossGanon_ChargeBigMagic(BossGanon* this, PlayState* play) { this->unk_1FC.y, this->unk_1FC.z, 0, this->actor.yawTowardsPlayer, 0, 0x104 + i); } - Audio_PlayActorSound2(&this->actor, NA_SE_EN_GANON_BIGMASIC); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_GANON_THROW_BIG); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_GANON_BIGMASIC); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_GANON_THROW_BIG); } if (Animation_OnFrame(&this->skelAnime, 3.0f)) { sCape->attachShouldersTimer = 26.0f; - Audio_PlayActorSound2(&this->actor, NA_SE_EV_GANON_MANTLE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_GANON_MANTLE); } if (Animation_OnFrame(&this->skelAnime, this->fwork[GDF_FWORK_1])) { @@ -2265,7 +2265,7 @@ void BossGanon_ChargeLightBall(BossGanon* this, PlayState* play) { if (this->timers[0] == 17) { this->unk_26C = 10; this->unk_270 = Rand_ZeroFloat(M_PI); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_GANON_SPARK); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_GANON_SPARK); } if (this->timers[0] < 10) { @@ -2325,8 +2325,8 @@ void BossGanon_PlayTennis(BossGanon* this, PlayState* play) { if (Animation_OnFrame(&this->skelAnime, 11.0f)) { this->unk_25C = 1; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_GANON_THROW); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_GANON_THROW_MASIC); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_GANON_THROW); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_GANON_THROW_MASIC); Actor_SpawnAsChild(&play->actorCtx, &this->actor, play, ACTOR_BOSS_GANON, this->unk_260.x, this->unk_260.y, this->unk_260.z, 0, 0, 0, 0x64); } @@ -2338,7 +2338,7 @@ void BossGanon_PlayTennis(BossGanon* this, PlayState* play) { this->fwork[GDF_FWORK_1] = Animation_GetLastFrame(volleyAnims[rand]); Animation_MorphToPlayOnce(&this->skelAnime, volleyAnims[rand], 0.0f); sCape->attachRightArmTimer = capeRightArmDurations[rand]; - Audio_PlayActorSound2(&this->actor, NA_SE_EV_GANON_MANTLE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_GANON_MANTLE); this->startVolley = false; } break; @@ -2366,7 +2366,7 @@ void BossGanon_SetupBlock(BossGanon* this, PlayState* play) { this->unk_1C2 = 0; sCape->attachLeftArmTimer = this->timers[0] = 10; - Audio_PlayActorSound2(&this->actor, NA_SE_EV_GANON_MANTLE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_GANON_MANTLE); this->handLightBallScale = 0.0f; } @@ -2385,7 +2385,7 @@ void BossGanon_Block(BossGanon* this, PlayState* play) { this->fwork[GDF_FWORK_1] = Animation_GetLastFrame(&gDorfBlockReleaseAnim); SkelAnime_Update(&this->skelAnime); sCape->attachShouldersTimer = 15.0f; - Audio_PlayActorSound2(&this->actor, NA_SE_EV_GANON_MANTLE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_GANON_MANTLE); } } else { sCape->sideSwayMagnitude = -13.0f; @@ -2449,8 +2449,8 @@ void BossGanon_HitByLightBall(BossGanon* this, PlayState* play) { this->unk_1C2 = 2; SkelAnime_Update(&this->skelAnime); sCape->attachShouldersTimer = 18.0f; - Audio_PlayActorSound2(&this->actor, NA_SE_EV_GANON_MANTLE); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_GANON_RESTORE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_GANON_MANTLE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_GANON_RESTORE); this->timers[2] = 130; } } else { @@ -2463,7 +2463,7 @@ void BossGanon_HitByLightBall(BossGanon* this, PlayState* play) { BossGanonEff_SpawnSparkle(play, &this->unk_1FC, &sp50, &sZeroVec, Rand_ZeroFloat(200.0f) + 500.0f, 0x14); } - Audio_PlayActorSound2(&this->actor, NA_SE_PL_WALK_WATER2); + Audio_PlayActorSfx2(&this->actor, NA_SE_PL_WALK_WATER2); } if (Animation_OnFrame(&this->skelAnime, this->fwork[GDF_FWORK_1])) { @@ -2581,7 +2581,7 @@ void BossGanon_Vulnerable(BossGanon* this, PlayState* play) { case 4: if (Animation_OnFrame(&this->skelAnime, 5.0f)) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_GANON_DOWN); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_GANON_DOWN); } if (this->timers[0] == 0) { @@ -2629,8 +2629,8 @@ void BossGanon_Vulnerable(BossGanon* this, PlayState* play) { this->unk_1C2 = 8; SkelAnime_Update(&this->skelAnime); sCape->attachShouldersTimer = 18.0f; - Audio_PlayActorSound2(&this->actor, NA_SE_EV_GANON_MANTLE); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_GANON_RESTORE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_GANON_MANTLE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_GANON_RESTORE); break; case 8: @@ -2645,7 +2645,7 @@ void BossGanon_Vulnerable(BossGanon* this, PlayState* play) { 0x14); } - Audio_PlayActorSound2(&this->actor, NA_SE_PL_WALK_WATER2); + Audio_PlayActorSfx2(&this->actor, NA_SE_PL_WALK_WATER2); this->timers[3] = 50; } @@ -2695,7 +2695,7 @@ void BossGanon_UpdateDamage(BossGanon* this, PlayState* play) { if (acHitInfo->toucher.dmgFlags & DMG_ARROW_LIGHT) { BossGanon_SetupVulnerable(this, play); this->timers[2] = 0; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_GANON_DAMAGE1); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_GANON_DAMAGE1); this->unk_1A6 = 15; } } else if ((this->actionFunc == BossGanon_Vulnerable) && (this->unk_1C2 >= 3)) { @@ -2734,21 +2734,21 @@ void BossGanon_UpdateDamage(BossGanon* this, PlayState* play) { if ((s8)this->actor.colChkInfo.health <= 0) { BossGanon_SetupDeathCutscene(this, play); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_GANON_DEAD); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_GANON_DD_THUNDER); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_GANON_DEAD); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_GANON_DD_THUNDER); func_80078914(&sZeroVec, NA_SE_EN_LAST_DAMAGE); Audio_QueueSeqCmd(0x100100FF); this->screenFlashTimer = 4; } else { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_GANON_DAMAGE2); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_GANON_CUTBODY); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_GANON_DAMAGE2); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_GANON_CUTBODY); BossGanon_SetupDamaged(this, play); this->unk_1A6 = 15; sCape->tearTimer = 1; } } } else if (acHitInfo->toucher.dmgFlags & DMG_RANGED) { - Audio_PlayActorSound2(&this->actor, 0); + Audio_PlayActorSfx2(&this->actor, 0); for (i = 0; i < ARRAY_COUNT(sCape->strands); i++) { for (j = 1; j < 12; j++) { @@ -2897,11 +2897,11 @@ void BossGanon_Update(Actor* thisx, PlayState* play2) { Math_SmoothStepToF(&this->legRot.z, legRotZ, 1.0f, 100.0f, 0.0f); if (this->timers[2] == 1) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_GANON_LAUGH); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_GANON_LAUGH); } if (this->timers[2] == 100) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_FANTOM_ST_LAUGH); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_FANTOM_ST_LAUGH); this->timers[2] = 0; } @@ -2915,7 +2915,7 @@ void BossGanon_Update(Actor* thisx, PlayState* play2) { } } - // player hit, spawn shock and play sound + // player hit, spawn shock and play sound effect if (this->unk_2E8 != 0) { func_80078914(&player->actor.projectedPos, NA_SE_PL_SPARK - SFX_FLAG); BossGanonEff_SpawnShock(play, 700.0f, GDF_SHOCK_PLAYER_YELLOW); @@ -3894,7 +3894,7 @@ void BossGanon_LightBall_Update(Actor* thisx, PlayState* play2) { Actor_Kill(&this->actor); } } else { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_GANON_FIRE - SFX_FLAG); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_GANON_FIRE - SFX_FLAG); if ((this->unk_1A2 % 2) != 0) { Actor_SetScale(&this->actor, 6.0f); @@ -3939,9 +3939,9 @@ void BossGanon_LightBall_Update(Actor* thisx, PlayState* play2) { if ((hitWithBottle == false) && (acHitInfo->toucher.dmgFlags & DMG_SHIELD)) { spBA = 2; - Audio_PlaySoundGeneral(NA_SE_IT_SHIELD_REFLECT_MG, &player->actor.projectedPos, 4, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_IT_SHIELD_REFLECT_MG, &player->actor.projectedPos, 4, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultReverb); func_800AA000(this->actor.xyzDistToPlayerSq, 0xFF, 0x14, 0x96); } else { spBA = 1; @@ -3950,9 +3950,9 @@ void BossGanon_LightBall_Update(Actor* thisx, PlayState* play2) { Math_Atan2S(sqrtf(SQ(xDistFromGanondorf) + SQ(zDistFromGanondorf)), yDistFromGanondorf); this->unk_1A4++; this->timers[1] = 2; - Audio_PlaySoundGeneral(NA_SE_IT_SWORD_REFLECT_MG, &player->actor.projectedPos, 4, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_IT_SWORD_REFLECT_MG, &player->actor.projectedPos, 4, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultReverb); func_800AA000(this->actor.xyzDistToPlayerSq, 0xB4, 0x14, 0x64); if (hitWithBottle == false) { @@ -3981,8 +3981,7 @@ void BossGanon_LightBall_Update(Actor* thisx, PlayState* play2) { if (sqrtf(SQ(xDistFromLink) + SQ(yDistFromLink) + SQ(zDistFromLink)) <= 25.0f) { spBA = 5; func_8002F6D4(play, &this->actor, 3.0f, this->actor.world.rot.y, 0.0f, 0x30); - SoundSource_PlaySfxAtFixedWorldPos(play, &this->actor.world.pos, 40, - NA_SE_EN_GANON_HIT_THUNDER); + SfxSource_PlaySfxAtFixedWorldPos(play, &this->actor.world.pos, 40, NA_SE_EN_GANON_HIT_THUNDER); ganondorf->timers[2] = 20; for (i = 0; i < ARRAY_COUNT(ganondorf->unk_4E4); i++) { @@ -4015,8 +4014,8 @@ void BossGanon_LightBall_Update(Actor* thisx, PlayState* play2) { this->actor.world.rot.y = Math_Atan2S(zDistFromLink, xDistFromLink); this->actor.world.rot.x = Math_Atan2S(sqrtf(SQ(xDistFromLink) + SQ(zDistFromLink)), yDistFromLink); this->timers[1] = 2; - Audio_PlayActorSound2(&this->actor, NA_SE_IT_SWORD_REFLECT_MG); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_GANON_AT_RETURN); + Audio_PlayActorSfx2(&this->actor, NA_SE_IT_SWORD_REFLECT_MG); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_GANON_AT_RETURN); this->unk_1C2 = 0; break; } @@ -4024,8 +4023,8 @@ void BossGanon_LightBall_Update(Actor* thisx, PlayState* play2) { case 4: if (sqrtf(SQ(xDistFromGanondorf) + SQ(yDistFromGanondorf) + SQ(zDistFromGanondorf)) < 30.0f) { spBA = 3; - SoundSource_PlaySfxAtFixedWorldPos(play, &this->actor.world.pos, 40, NA_SE_EN_GANON_DAMAGE1); - SoundSource_PlaySfxAtFixedWorldPos(play, &this->actor.world.pos, 40, NA_SE_EN_GANON_HIT_THUNDER); + SfxSource_PlaySfxAtFixedWorldPos(play, &this->actor.world.pos, 40, NA_SE_EN_GANON_DAMAGE1); + SfxSource_PlaySfxAtFixedWorldPos(play, &this->actor.world.pos, 40, NA_SE_EN_GANON_HIT_THUNDER); } break; @@ -4081,7 +4080,7 @@ void BossGanon_LightBall_Update(Actor* thisx, PlayState* play2) { sp54 = 15.0f; phi_f20 = 30.0f; sp4E = 70; - SoundSource_PlaySfxAtFixedWorldPos(play, &this->actor.world.pos, 80, NA_SE_EN_GANON_HIT_THUNDER); + SfxSource_PlaySfxAtFixedWorldPos(play, &this->actor.world.pos, 80, NA_SE_EN_GANON_HIT_THUNDER); } for (i = 0; i < sp4E; i++) { @@ -4459,7 +4458,7 @@ void func_808E2544(Actor* thisx, PlayState* play) { if (dorf->timers[2] == 0) { func_8002F6D4(play, &this->actor, 3.0f, this->actor.world.rot.y, 0.0f, 0x50); - SoundSource_PlaySfxAtFixedWorldPos(play, &this->actor.world.pos, 40, NA_SE_EN_GANON_HIT_THUNDER); + SfxSource_PlaySfxAtFixedWorldPos(play, &this->actor.world.pos, 40, NA_SE_EN_GANON_HIT_THUNDER); dorf->timers[2] = 20; for (i = 0; i < ARRAY_COUNT(this->unk_4E4); i++) { @@ -4527,7 +4526,7 @@ void func_808E2544(Actor* thisx, PlayState* play) { } if (numEffects) { - SoundSource_PlaySfxAtFixedWorldPos(play, &this->actor.world.pos, 80, NA_SE_EN_FANTOM_THUNDER); + SfxSource_PlaySfxAtFixedWorldPos(play, &this->actor.world.pos, 80, NA_SE_EN_FANTOM_THUNDER); for (i = 0; i < numEffects; i++) { sp60.x = Rand_CenteredFloat(30.0f); diff --git a/src/overlays/actors/ovl_Boss_Ganon2/z_boss_ganon2.c b/src/overlays/actors/ovl_Boss_Ganon2/z_boss_ganon2.c index 2ca2f67746..ae461f65c8 100644 --- a/src/overlays/actors/ovl_Boss_Ganon2/z_boss_ganon2.c +++ b/src/overlays/actors/ovl_Boss_Ganon2/z_boss_ganon2.c @@ -168,7 +168,7 @@ void func_808FD4D4(BossGanon2* this, PlayState* play, s16 arg2, s16 arg3) { Actor_SpawnFloorDustRing(play, &this->actor, &this->unk_1DC, 25.0f, arg3, 8.0f, 500, 10, true); } - Audio_PlayActorSound2(&this->actor, NA_SE_EN_MGANON_WALK); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_MGANON_WALK); func_80033E88(&this->actor, play, 2, 0xA); } @@ -482,12 +482,12 @@ void func_808FD5F4(BossGanon2* this, PlayState* play) { this->subCamAt.x = this->actor.world.pos.x; } if ((play->gameplayFrames % 32) == 0) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_GANON_BREATH); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_GANON_BREATH); } break; case 15: if (((play->gameplayFrames % 32) == 0) && (this->unk_398 < 100)) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_GANON_BREATH); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_GANON_BREATH); } SkelAnime_Update(&this->skelAnime); Math_ApproachF(&this->subCamAt.y, this->actor.world.pos.y + 77.0f, 0.05f, 5.0f); @@ -512,7 +512,7 @@ void func_808FD5F4(BossGanon2* this, PlayState* play) { this->unk_194 = Animation_GetLastFrame(&object_ganon_anime3_Anim_003754); this->unk_339 = 55; play->envCtx.lightBlend = 1.0f; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_GANON_CASBREAK); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_GANON_CASBREAK); } else { break; } @@ -538,8 +538,8 @@ void func_808FD5F4(BossGanon2* this, PlayState* play) { Math_ApproachF(&this->subCamEye.y, ((this->actor.world.pos.y + 60.0f) - 60.0f) - 70.0f, 0.1f, 13.0f); Math_ApproachF(&this->subCamAt.y, this->actor.world.pos.y + 40.0f, 0.1f, 3.6999998f); if (this->unk_398 == 30) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_GANON_BIGMASIC); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_GANON_THROW_BIG); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_GANON_BIGMASIC); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_GANON_THROW_BIG); } if (this->unk_398 <= 50) { sp8D = true; @@ -865,7 +865,7 @@ void func_808FD5F4(BossGanon2* this, PlayState* play) { player->actor.world.pos.x = 140.0f; player->actor.world.pos.z = -196.0f; if (this->unk_398 == 50) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_MGANON_ROAR); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_MGANON_ROAR); } if (Animation_OnFrame(&this->skelAnime, this->unk_194)) { Camera* camera = Play_GetCamera(play, CAM_ID_MAIN); @@ -888,7 +888,7 @@ void func_808FD5F4(BossGanon2* this, PlayState* play) { } if ((this->unk_30C > 4.0f) && !sp8D) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_GANON_BODY_SPARK - SFX_FLAG); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_GANON_BODY_SPARK - SFX_FLAG); } if (this->subCamId != SUB_CAM_ID_DONE) { @@ -1064,7 +1064,7 @@ void func_808FFDB0(BossGanon2* this, PlayState* play) { void func_808FFEBC(BossGanon2* this, PlayState* play) { if (this->unk_390 == 0) { this->unk_390 = (s16)Rand_ZeroFloat(50.0f) + 30; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_MGANON_UNARI); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_MGANON_UNARI); } SkelAnime_Update(&this->skelAnime); @@ -1167,7 +1167,7 @@ void func_80900344(BossGanon2* this, PlayState* play) { if (this->unk_390 == 0) { this->unk_390 = (s16)Rand_ZeroFloat(50.0f) + 30; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_MGANON_UNARI); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_MGANON_UNARI); } Math_ApproachF(&this->unk_324, 255.0f, 1.0f, 10.0f); @@ -1230,8 +1230,8 @@ void func_80900650(BossGanon2* this, PlayState* play) { SkelAnime_Update(&this->skelAnime); if (Animation_OnFrame(&this->skelAnime, this->unk_198)) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_MGANON_SWORD); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_MGANON_ROAR); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_MGANON_SWORD); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_MGANON_ROAR); } if (this->unk_311 == 0) { @@ -1271,7 +1271,7 @@ void func_80900818(BossGanon2* this, PlayState* play) { this->actionFunc = func_80900890; this->unk_1AC = 0; this->unk_39C = 0; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_MGANON_DEAD1); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_MGANON_DEAD1); this->unk_336 = 0; } @@ -1398,7 +1398,7 @@ void func_80900890(BossGanon2* this, PlayState* play) { break; case 1: if ((play->gameplayFrames % 32) == 0) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_MGANON_BREATH); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_MGANON_BREATH); } if ((this->unk_1A2[0] == 0) || (this->unk_334 != 0)) { @@ -1410,7 +1410,7 @@ void func_80900890(BossGanon2* this, PlayState* play) { this->unk_194 = Animation_GetLastFrame(&object_ganon2_Anim_0334F8); this->unk_1AC = 2; this->unk_1A2[0] = 40; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_MGANON_ROAR); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_MGANON_ROAR); } } break; @@ -1436,7 +1436,7 @@ void func_80901020(BossGanon2* this, PlayState* play) { this->actionFunc = func_8090120C; this->unk_1AC = 0; this->unk_39C = 0; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_MGANON_DEAD1); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_MGANON_DEAD1); this->unk_314 = 4; } @@ -1514,8 +1514,8 @@ void func_8090120C(BossGanon2* this, PlayState* play) { } if (this->unk_398 >= 110) { if (this->unk_398 == 110) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_GANON_HIT_THUNDER); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_MGANON_DAMAGE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_GANON_HIT_THUNDER); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_MGANON_DAMAGE); } Math_ApproachF(&this->unk_30C, 10.0f, 0.2f, 5.0f); this->skelAnime.playSpeed = 3.0f; @@ -1718,7 +1718,7 @@ void func_8090120C(BossGanon2* this, PlayState* play) { break; case 8: if (this->unk_398 == 1025) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_MGANON_STAND); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_MGANON_STAND); } if (this->unk_398 >= 1000) { if (this->unk_398 < 1040) { @@ -1727,7 +1727,7 @@ void func_8090120C(BossGanon2* this, PlayState* play) { } } if (this->unk_398 == 1040) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_MGANON_DEAD2); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_MGANON_DEAD2); this->unk_336 = 2; this->unk_339 = 0; play->envCtx.prevLightSetting = 0; @@ -1745,7 +1745,7 @@ void func_8090120C(BossGanon2* this, PlayState* play) { this->subCamAt.y = this->unk_1B8.y; this->subCamAt.z = this->unk_1B8.z; if ((this->unk_398 < 1000) && ((this->unk_398 % 16) == 0)) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_MGANON_SWORD); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_MGANON_SWORD); } if (this->unk_398 == 40) { this->unk_39C = 9; @@ -1778,7 +1778,7 @@ void func_8090120C(BossGanon2* this, PlayState* play) { if ((this->unk_398 >= 40) && (this->unk_398 <= 110)) { Math_ApproachF(&play->envCtx.lightBlend, 1.0f, 1.0f, 0.02f); Math_ApproachF(&this->unk_384, 10.0f, 0.1f, 0.2f); - Audio_PlayActorSound2(&sZelda->actor, NA_SE_EV_GOD_LIGHTBALL_2 - SFX_FLAG); + Audio_PlayActorSfx2(&sZelda->actor, NA_SE_EV_GOD_LIGHTBALL_2 - SFX_FLAG); } else { Math_ApproachZeroF(&this->unk_384, 1.0f, 0.2f); } @@ -1797,7 +1797,7 @@ void func_8090120C(BossGanon2* this, PlayState* play) { sZelda->unk_3C8 = 13; } if (this->unk_398 == 140) { - Audio_PlayActorSound2(&sZelda->actor, NA_SE_EV_HUMAN_BOUND); + Audio_PlayActorSfx2(&sZelda->actor, NA_SE_EV_HUMAN_BOUND); } if (this->unk_398 < 160) { break; @@ -1825,7 +1825,7 @@ void func_8090120C(BossGanon2* this, PlayState* play) { break; case 1: if ((this->unk_39C < 7) && ((play->gameplayFrames % 32) == 0)) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_MGANON_BREATH); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_MGANON_BREATH); } break; } @@ -1898,14 +1898,14 @@ void func_80902524(BossGanon2* this, PlayState* play) { acHitInfo = this->unk_424.elements[0].info.acHitInfo; if ((acHitInfo->toucher.dmgFlags & DMG_ARROW_LIGHT) && (this->actionFunc != func_80900890)) { func_809000A0(this, play); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_FANTOM_HIT_THUNDER); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_MGANON_DAMAGE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_FANTOM_HIT_THUNDER); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_MGANON_DAMAGE); Audio_StopSfxById(NA_SE_EN_MGANON_UNARI); } else if ((this->actionFunc == func_80900890) && (acHitInfo->toucher.dmgFlags & (DMG_JUMP_MASTER | DMG_SPIN_MASTER | DMG_SLASH_MASTER))) { this->unk_316 = 60; this->unk_342 = 5; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_MGANON_DAMAGE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_MGANON_DAMAGE); Audio_StopSfxById(NA_SE_EN_MGANON_UNARI); this->actor.colChkInfo.health -= 2; temp_v0_4 = this->actor.colChkInfo.health; @@ -1920,7 +1920,7 @@ void func_80902524(BossGanon2* this, PlayState* play) { } } else if (this->actionFunc != func_80900890) { func_808FFF90(this, play); - Audio_PlayActorSound2(&this->actor, NA_SE_IT_HOOKSHOT_REFLECT); + Audio_PlayActorSfx2(&this->actor, NA_SE_IT_HOOKSHOT_REFLECT); } } } @@ -1931,7 +1931,7 @@ void func_80902524(BossGanon2* this, PlayState* play) { this->unk_316 = 60; this->unk_344 = 0x32; this->unk_342 = 5; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_MGANON_DAMAGE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_MGANON_DAMAGE); Audio_StopSfxById(NA_SE_EN_MGANON_UNARI); phi_v1_2 = 1; if (acHitInfo->toucher.dmgFlags & (DMG_JUMP_MASTER | DMG_SPIN_MASTER | DMG_SLASH_MASTER)) { diff --git a/src/overlays/actors/ovl_Boss_Ganondrof/z_boss_ganondrof.c b/src/overlays/actors/ovl_Boss_Ganondrof/z_boss_ganondrof.c index c4e7a24728..244ecf8627 100644 --- a/src/overlays/actors/ovl_Boss_Ganondrof/z_boss_ganondrof.c +++ b/src/overlays/actors/ovl_Boss_Ganondrof/z_boss_ganondrof.c @@ -462,7 +462,7 @@ void BossGanondrof_Paintings(BossGanondrof* this, PlayState* play) { this->colliderBody.dim.radius = 20; this->colliderBody.dim.height = 60; this->colliderBody.dim.yShift = -33; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_FANTOM_LAUGH); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_FANTOM_LAUGH); this->actor.naviEnemyId = NAVI_ENEMY_PHANTOM_GANON_PHASE_2; } else { horse->bossGndSignal = FHG_NO_SIGNAL; @@ -504,12 +504,12 @@ void BossGanondrof_Neutral(BossGanondrof* this, PlayState* play) { this->flyMode = GND_FLY_CHARGE; this->timers[0] = 60; this->fwork[GND_FLOAT_SPEED] = 0.0f; - Audio_PlayActorSound2(thisx, NA_SE_EN_FANTOM_LAUGH); + Audio_PlayActorSfx2(thisx, NA_SE_EN_FANTOM_LAUGH); } else { this->flyMode = GND_FLY_VOLLEY; this->timers[0] = 60; this->fwork[GND_FLOAT_SPEED] = 0.0f; - Audio_PlayActorSound2(thisx, NA_SE_EN_FANTOM_LAUGH); + Audio_PlayActorSfx2(thisx, NA_SE_EN_FANTOM_LAUGH); } } else if ((rand01 < 0.5f) || (this->work[GND_THROW_COUNT] < 5)) { BossGanondrof_SetupThrow(this, play); @@ -517,7 +517,7 @@ void BossGanondrof_Neutral(BossGanondrof* this, PlayState* play) { this->flyMode = GND_FLY_VOLLEY; this->timers[0] = 60; this->fwork[GND_FLOAT_SPEED] = 0.0f; - Audio_PlayActorSound2(thisx, NA_SE_EN_FANTOM_LAUGH); + Audio_PlayActorSfx2(thisx, NA_SE_EN_FANTOM_LAUGH); } } @@ -613,7 +613,7 @@ void BossGanondrof_Neutral(BossGanondrof* this, PlayState* play) { BossGanondrof_SetupBlock(this, play); } - Audio_PlayActorSound2(thisx, NA_SE_EN_FANTOM_FLOAT - SFX_FLAG); + Audio_PlayActorSfx2(thisx, NA_SE_EN_FANTOM_FLOAT - SFX_FLAG); } void BossGanondrof_SetupThrow(BossGanondrof* this, PlayState* play) { @@ -638,7 +638,7 @@ void BossGanondrof_SetupThrow(BossGanondrof* this, PlayState* play) { this->spearTip.z, lightTime, FHGFIRE_LIGHT_GREEN, 0, FHGFIRE_SPEAR_LIGHT); this->actor.child = &horseTemp->actor; this->work[GND_THROW_COUNT]++; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_FANTOM_STICK); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_FANTOM_STICK); } void BossGanondrof_Throw(BossGanondrof* this, PlayState* play) { @@ -657,12 +657,12 @@ void BossGanondrof_Throw(BossGanondrof* this, PlayState* play) { if (Animation_OnFrame(&this->skelAnime, this->work[GND_THROW_FRAME])) { if (this->flyMode <= GND_FLY_NEUTRAL) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_FANTOM_MASIC2); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_FANTOM_MASIC2); } else { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_FANTOM_MASIC1); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_FANTOM_MASIC1); } - Audio_PlayActorSound2(&this->actor, NA_SE_EN_FANTOM_VOICE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_FANTOM_VOICE); } if (Animation_OnFrame(&this->skelAnime, this->work[GND_THROW_FRAME])) { @@ -693,7 +693,7 @@ void BossGanondrof_SetupReturn(BossGanondrof* this, PlayState* play) { void BossGanondrof_Return(BossGanondrof* this, PlayState* play) { SkelAnime_Update(&this->skelAnime); if (Animation_OnFrame(&this->skelAnime, 5.0f)) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_FANTOM_VOICE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_FANTOM_VOICE); osSyncPrintf("VOISE 2 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n"); osSyncPrintf("VOISE 2 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n"); } @@ -745,7 +745,7 @@ void BossGanondrof_Stunned(BossGanondrof* this, PlayState* play) { this->actor.velocity.y = 0.0f; this->actor.gravity = 0.0f; if (Animation_OnFrame(&this->skelAnime, this->fwork[GND_END_FRAME])) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_FANTOM_DAMAGE2); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_FANTOM_DAMAGE2); } this->actor.flags |= ACTOR_FLAG_10; @@ -769,7 +769,7 @@ void BossGanondrof_SetupBlock(BossGanondrof* this, PlayState* play) { Animation_MorphToLoop(&this->skelAnime, &gPhantomGanonBlockAnim, -3.0f); this->actionFunc = BossGanondrof_Block; this->timers[0] = 10; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_FANTOM_STICK); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_FANTOM_STICK); } void BossGanondrof_Block(BossGanondrof* this, PlayState* play) { @@ -807,11 +807,11 @@ void BossGanondrof_Charge(BossGanondrof* this, PlayState* play) { switch (this->work[GND_ACTION_STATE]) { case CHARGE_WINDUP: if (this->timers[0] == 218) { - Audio_PlayActorSound2(thisx, NA_SE_EN_FANTOM_STICK); + Audio_PlayActorSfx2(thisx, NA_SE_EN_FANTOM_STICK); } if (this->timers[0] == 19) { - Audio_PlayActorSound2(thisx, NA_SE_EN_FANTOM_ATTACK); + Audio_PlayActorSfx2(thisx, NA_SE_EN_FANTOM_ATTACK); } thisx->world.pos.x += thisx->velocity.x; @@ -929,7 +929,7 @@ void BossGanondrof_SetupDeath(BossGanondrof* this, PlayState* play) { this->fwork[GND_END_FRAME] = Animation_GetLastFrame(&gPhantomGanonDeathBlowAnim); this->actionFunc = BossGanondrof_Death; Audio_QueueSeqCmd(0x1 << 28 | SEQ_PLAYER_BGM_MAIN << 24 | 0x100FF); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_FANTOM_DEAD); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_FANTOM_DEAD); this->deathState = DEATH_START; this->actor.flags &= ~ACTOR_FLAG_0; this->work[GND_VARIANCE_TIMER] = 0; @@ -950,7 +950,7 @@ void BossGanondrof_Death(BossGanondrof* this, PlayState* play) { this->work[GND_DEATH_SFX_TIMER]++; if (((60 < this->work[GND_DEATH_SFX_TIMER]) && (this->work[GND_DEATH_SFX_TIMER] < 500)) || ((501 < this->work[GND_DEATH_SFX_TIMER]) && (this->work[GND_DEATH_SFX_TIMER] < 620))) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_GOMA_LAST - SFX_FLAG); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_GOMA_LAST - SFX_FLAG); } switch (this->deathState) { @@ -1063,7 +1063,7 @@ void BossGanondrof_Death(BossGanondrof* this, PlayState* play) { this->actor.world.pos.z = GND_BOSSROOM_CENTER_Z; this->actor.shape.rot.y = 0; this->work[GND_BODY_DECAY_INDEX] = 0; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_FANTOM_LAST); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_FANTOM_LAST); } holdCamera = true; @@ -1239,7 +1239,7 @@ void BossGanondrof_CollisionCheck(BossGanondrof* this, PlayState* play) { } if (this->flyMode != GND_FLY_PAINTING) { if (acHit && (this->actionFunc != BossGanondrof_Stunned) && (hurtbox->toucher.dmgFlags & DMG_RANGED)) { - Audio_PlayActorSound2(&this->actor, NA_SE_PL_WALK_GROUND - SFX_FLAG); + Audio_PlayActorSfx2(&this->actor, NA_SE_PL_WALK_GROUND - SFX_FLAG); osSyncPrintf("hit != 0 \n"); } else if (this->actionFunc != BossGanondrof_Charge) { if (this->returnCount == 0) { @@ -1268,15 +1268,15 @@ void BossGanondrof_CollisionCheck(BossGanondrof* this, PlayState* play) { } this->work[GND_INVINC_TIMER] = 10; horse->hitTimer = 20; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_FANTOM_DAMAGE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_FANTOM_DAMAGE); } else { - Audio_PlayActorSound2(&this->actor, NA_SE_PL_WALK_GROUND - SFX_FLAG); + Audio_PlayActorSfx2(&this->actor, NA_SE_PL_WALK_GROUND - SFX_FLAG); } } else if (acHit && (hurtbox->toucher.dmgFlags & DMG_RANGED)) { this->work[GND_INVINC_TIMER] = 10; this->actor.colChkInfo.health -= 2; horse->hitTimer = 20; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_FANTOM_DAMAGE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_FANTOM_DAMAGE); } this->returnCount = 0; } diff --git a/src/overlays/actors/ovl_Boss_Goma/z_boss_goma.c b/src/overlays/actors/ovl_Boss_Goma/z_boss_goma.c index 8ed2be9324..6d6b79370b 100644 --- a/src/overlays/actors/ovl_Boss_Goma/z_boss_goma.c +++ b/src/overlays/actors/ovl_Boss_Goma/z_boss_goma.c @@ -379,9 +379,9 @@ void BossGoma_PlayEffectsAndSfx(BossGoma* this, PlayState* play, s16 arg2, s16 a } if (arg2 == 0) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_GOMA_DOWN); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_GOMA_DOWN); } else { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_GOMA_WALK); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_GOMA_WALK); } } @@ -408,7 +408,7 @@ void BossGoma_SetupDefeated(BossGoma* this, PlayState* play) { this->actor.speedXZ = 0.0f; this->actor.shape.shadowScale = 0.0f; Audio_QueueSeqCmd(0x1 << 28 | SEQ_PLAYER_BGM_MAIN << 24 | 0x100FF); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_GOMA_DEAD); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_GOMA_DEAD); } /** @@ -617,7 +617,7 @@ void BossGoma_UpdateCeilingMovement(BossGoma* this, PlayState* play, f32 dz, f32 pos.z = Rand_CenteredFloat(70.0f) + basePos->z; EffectSsHahen_Spawn(play, &pos, &vel, &accel, 0, (s16)(Rand_ZeroOne() * 5.0f) + 10, -1, 10, NULL); } - Audio_PlayActorSound2(&this->actor, NA_SE_EN_GOMA_HIGH); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_GOMA_HIGH); } } @@ -793,7 +793,7 @@ void BossGoma_Encounter(BossGoma* this, PlayState* play) { case 4: // focus Gohma on the ceiling if (Animation_OnFrame(&this->skelanime, 15.0f)) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_GOMA_DEMO_EYE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_GOMA_DEMO_EYE); } if (this->framesUntilNextAction <= 40) { @@ -917,7 +917,7 @@ void BossGoma_Encounter(BossGoma* this, PlayState* play) { } if (Animation_OnFrame(&this->skelanime, 40.0f)) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_GOMA_CRY1); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_GOMA_CRY1); if (!GET_EVENTCHKINF(EVENTCHKINF_70)) { TitleCard_InitBossName(play, &play->actorCtx.titleCtx, SEGMENTED_TO_VIRTUAL(gGohmaTitleCardTex), @@ -1021,7 +1021,7 @@ void BossGoma_Defeated(BossGoma* this, PlayState* play) { if (this->framesUntilNextAction < 1080 && this->actionState < 3) { if (this->framesUntilNextAction < 1070) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_GOMA_LAST - SFX_FLAG); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_GOMA_LAST - SFX_FLAG); } for (i = 0; i < 4; i++) { @@ -1275,14 +1275,14 @@ void BossGoma_FloorAttackPosture(BossGoma* this, PlayState* play) { } /** - * Only lasts 1 frame. Plays a sound. + * Only lasts 1 frame. Plays a sound effect. */ void BossGoma_FloorPrepareAttack(BossGoma* this, PlayState* play) { SkelAnime_Update(&this->skelanime); if (this->framesUntilNextAction == 0) { BossGoma_SetupFloorAttack(this); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_GOMA_CRY1); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_GOMA_CRY1); } this->eyeState = EYESTATE_IRIS_FOLLOW_NO_IFRAMES; @@ -1325,7 +1325,7 @@ void BossGoma_FloorAttack(BossGoma* this, PlayState* play) { case 1: if (Animation_OnFrame(&this->skelanime, 3.0f)) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_GOMA_UNARI2); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_GOMA_UNARI2); } if (this->timer == 0) { @@ -1398,7 +1398,7 @@ void BossGoma_FloorLand(BossGoma* this, PlayState* play) { */ void BossGoma_FloorStunned(BossGoma* this, PlayState* play) { if (this->sfxFaintTimer <= 90) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_GOMA_FAINT - 0x800); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_GOMA_FAINT - 0x800); } SkelAnime_Update(&this->skelanime); @@ -1452,7 +1452,7 @@ void BossGoma_FallStruckDown(BossGoma* this, PlayState* play) { this->actor.velocity.y = 0.0f; BossGoma_PlayEffectsAndSfx(this, play, 0, 8); func_80033E88(&this->actor, play, 0xA, 0xF); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_GOMA_DAM1); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_GOMA_DAM1); } } @@ -1465,7 +1465,7 @@ void BossGoma_CeilingSpawnGohmas(BossGoma* this, PlayState* play) { SkelAnime_Update(&this->skelanime); if (this->frameCount % 16 == 0) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_GOMA_UNARI); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_GOMA_UNARI); } Math_ApproachZeroF(&this->actor.speedXZ, 0.5f, 2.0f); @@ -1600,7 +1600,7 @@ void BossGoma_FloorMain(BossGoma* this, PlayState* play) { } if (this->frameCount % 64 == 0) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_GOMA_CRY2); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_GOMA_CRY2); } if (!this->doNotMoveThisFrame) { @@ -1654,7 +1654,7 @@ void BossGoma_WallClimb(BossGoma* this, PlayState* play) { SkelAnime_Update(&this->skelanime); if (this->frameCount % 8 == 0) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_GOMA_CLIM); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_GOMA_CLIM); } Math_ApproachF(&this->actor.velocity.y, 5.0f, 0.5f, 2.0f); @@ -1679,7 +1679,7 @@ void BossGoma_CeilingMoveToCenter(BossGoma* this, PlayState* play) { BossGoma_UpdateCeilingMovement(this, play, 0.0f, -5.0f, true); if (this->frameCount % 64 == 0) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_GOMA_CRY2); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_GOMA_CRY2); } Math_ApproachS(&this->actor.shape.rot.x, -0x8000, 3, 0x3E8); @@ -1817,13 +1817,13 @@ void BossGoma_UpdateHit(BossGoma* this, PlayState* play) { if (this->actionFunc == BossGoma_CeilingMoveToCenter || this->actionFunc == BossGoma_CeilingIdle || this->actionFunc == BossGoma_CeilingPrepareSpawnGohmas) { BossGoma_SetupFallStruckDown(this); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_GOMA_DAM2); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_GOMA_DAM2); } else if (this->actionFunc == BossGoma_FloorStunned && (damage = CollisionCheck_GetSwordDamage(acHitInfo->toucher.dmgFlags)) != 0) { this->actor.colChkInfo.health -= damage; if ((s8)this->actor.colChkInfo.health > 0) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_GOMA_DAM1); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_GOMA_DAM1); BossGoma_SetupFloorDamaged(this); EffectSsSibuki_SpawnBurst(play, &this->actor.focus.pos); } else { @@ -1834,7 +1834,7 @@ void BossGoma_UpdateHit(BossGoma* this, PlayState* play) { this->invincibilityFrames = 10; } else if (this->actionFunc != BossGoma_FloorStunned && this->patienceTimer != 0 && (acHitInfo->toucher.dmgFlags & (DMG_SLINGSHOT | DMG_DEKU_NUT))) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_GOMA_DAM2); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_GOMA_DAM2); Audio_StopSfxById(NA_SE_EN_GOMA_CRY1); this->invincibilityFrames = 10; BossGoma_SetupFloorStunned(this); diff --git a/src/overlays/actors/ovl_Boss_Mo/z_boss_mo.c b/src/overlays/actors/ovl_Boss_Mo/z_boss_mo.c index ec476e2d03..679820a71e 100644 --- a/src/overlays/actors/ovl_Boss_Mo/z_boss_mo.c +++ b/src/overlays/actors/ovl_Boss_Mo/z_boss_mo.c @@ -490,7 +490,7 @@ void BossMo_Tentacle(BossMo* this, PlayState* play) { swingRateAccel = 30.0f; swingSizeAccel = 60.0f; if (((this->sfxTimer % 16) == 0) && (this->timers[0] < 30)) { - Audio_PlaySoundIncreasinglyTransposed(&this->tentTipPos, NA_SE_EN_MOFER_WAVE, gMorphaTransposeTable); + Audio_PlaySfxIncreasinglyTransposed(&this->tentTipPos, NA_SE_EN_MOFER_WAVE, gMorphaTransposeTable); } } else if (this->work[MO_TENT_ACTION_STATE] == MO_TENT_SHAKE) { if (this->timers[0] > 40) { @@ -503,8 +503,7 @@ void BossMo_Tentacle(BossMo* this, PlayState* play) { swingRateAccel = 30.0f; swingSizeAccel = 60.0f; if ((this->sfxTimer % 32) == 0) { - Audio_PlaySoundIncreasinglyTransposed(&this->tentTipPos, NA_SE_EN_MOFER_WAVE, - gMorphaTransposeTable); + Audio_PlaySfxIncreasinglyTransposed(&this->tentTipPos, NA_SE_EN_MOFER_WAVE, gMorphaTransposeTable); func_800AA000(0, 100, 5, 2); func_8002F7DC(&player->actor, NA_SE_VO_LI_FREEZE + player->ageProperties->unk_92); } @@ -518,8 +517,7 @@ void BossMo_Tentacle(BossMo* this, PlayState* play) { swingRateAccel = 70.0f; swingSizeAccel = 70.0f; if ((this->sfxTimer % 16) == 0) { - Audio_PlaySoundIncreasinglyTransposed(&this->tentTipPos, NA_SE_EN_MOFER_WAVE, - gMorphaTransposeTable); + Audio_PlaySfxIncreasinglyTransposed(&this->tentTipPos, NA_SE_EN_MOFER_WAVE, gMorphaTransposeTable); func_800AA000(0, 160, 5, 4); func_8002F7DC(&player->actor, NA_SE_VO_LI_FREEZE + player->ageProperties->unk_92); } @@ -732,9 +730,9 @@ void BossMo_Tentacle(BossMo* this, PlayState* play) { player->actor.parent = &this->actor; this->work[MO_TENT_ACTION_STATE] = MO_TENT_GRAB; func_80078914(&this->tentTipPos, NA_SE_EN_MOFER_CATCH); - Audio_PlaySoundGeneral(NA_SE_VO_LI_DAMAGE_S, &player->actor.projectedPos, 4, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_VO_LI_DAMAGE_S, &player->actor.projectedPos, 4, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultReverb); } else { this->work[MO_TENT_ACTION_STATE] = MO_TENT_READY; this->tentMaxAngle = .001f; @@ -1548,7 +1546,7 @@ void BossMo_DeathCs(BossMo* this, PlayState* play) { Math_ApproachF(&this->subCamEye.y, 100.0f, 0.05f, 2.0f); this->subCamAt = this->subCamAtNext = this->actor.world.pos; if (this->timers[0] > 20) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_MOFER_DEAD - SFX_FLAG); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_MOFER_DEAD - SFX_FLAG); } if (this->timers[0] == 20) { for (i = 0; i < 300; i++) { @@ -1564,8 +1562,8 @@ void BossMo_DeathCs(BossMo* this, PlayState* play) { } this->drawActor = false; this->actor.flags &= ~ACTOR_FLAG_0; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_MOFER_CORE_JUMP); - SoundSource_PlaySfxAtFixedWorldPos(play, &this->actor.world.pos, 70, NA_SE_EN_MOFER_LASTVOICE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_MOFER_CORE_JUMP); + SfxSource_PlaySfxAtFixedWorldPos(play, &this->actor.world.pos, 70, NA_SE_EN_MOFER_LASTVOICE); } if (this->timers[0] == 0) { this->csState = MO_DEATH_DRAIN_WATER_1; @@ -1769,7 +1767,7 @@ void BossMo_CoreCollisionCheck(BossMo* this, PlayState* play) { this->actor.world.rot.y = this->actor.yawTowardsPlayer + 0x8000; this->work[MO_CORE_DMG_FLASH_TIMER] = 15; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_MOFER_CORE_DAMAGE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_MOFER_CORE_DAMAGE); this->actor.colChkInfo.health -= damage; this->hitCount++; if ((s8)this->actor.colChkInfo.health <= 0) { @@ -2069,7 +2067,7 @@ void BossMo_Core(BossMo* this, PlayState* play) { } } else { this->timers[1] = 2; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_MOFER_CORE_LAND); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_MOFER_CORE_LAND); for (i = 0; i < 10; i++) { effectVelocity.x = Rand_CenteredFloat(4.0f); effectVelocity.y = Rand_ZeroFloat(2.0f) + 3.0f; @@ -2090,7 +2088,7 @@ void BossMo_Core(BossMo* this, PlayState* play) { } else if (this->actor.world.pos.y < MO_WATER_LEVEL(play)) { this->actor.velocity.y = BossMo_NearLand(&this->actor.world.pos, 40.0f) ? 15.0f : 6.0f; if ((this->actor.world.pos.y + 15.0f) >= MO_WATER_LEVEL(play)) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_MOFER_CORE_JUMP); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_MOFER_CORE_JUMP); } } } else if (this->work[MO_TENT_ACTION_STATE] >= MO_CORE_MOVE) { @@ -2124,7 +2122,7 @@ void BossMo_Core(BossMo* this, PlayState* play) { if (this->timers[0] == 0) { this->work[MO_CORE_WAIT_IN_WATER] = false; this->timers[0] = (s16)Rand_ZeroFloat(20.0f) + 20; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_MOFER_CORE_MOVE_WT); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_MOFER_CORE_MOVE_WT); } break; } @@ -2156,9 +2154,9 @@ void BossMo_Core(BossMo* this, PlayState* play) { } if ((this->actor.world.pos.y < MO_WATER_LEVEL(play)) && (MO_WATER_LEVEL(play) <= this->actor.prevPos.y)) { if (this->actor.velocity.y < -5.0f) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_MOFER_CORE_JUMP); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_MOFER_CORE_JUMP); } else { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_MOFER_CORE_SMJUMP); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_MOFER_CORE_SMJUMP); } if ((this->timers[3] != 0) || ((sMorphaTent1->fwork[MO_TENT_MAX_STRETCH] > 0.2f) && (fabsf(this->actor.world.pos.x - sMorphaTent1->actor.world.pos.x) < 30.0f) && diff --git a/src/overlays/actors/ovl_Boss_Sst/z_boss_sst.c b/src/overlays/actors/ovl_Boss_Sst/z_boss_sst.c index 106ce0b266..72cd6b88d2 100644 --- a/src/overlays/actors/ovl_Boss_Sst/z_boss_sst.c +++ b/src/overlays/actors/ovl_Boss_Sst/z_boss_sst.c @@ -434,7 +434,7 @@ void BossSst_HeadIntro(BossSst* this, PlayState* play) { sFloor->dyna.actor.params = BONGOFLOOR_HIT; this->ready = true; func_800AA000(this->actor.xyzDistToPlayerSq, 0xFF, 0x14, 0x96); - Audio_PlayActorSound2(&sFloor->dyna.actor, NA_SE_EN_SHADEST_TAIKO_HIGH); + Audio_PlayActorSfx2(&sFloor->dyna.actor, NA_SE_EN_SHADEST_TAIKO_HIGH); } else if (GET_EVENTCHKINF(EVENTCHKINF_77)) { sHands[RIGHT]->actor.draw = BossSst_DrawHand; sHands[LEFT]->actor.draw = BossSst_DrawHand; @@ -1283,7 +1283,7 @@ void BossSst_HandDownbeat(BossSst* this, PlayState* play) { BossSst_HandSetupDownbeatEnd(this); } func_800AA000(this->actor.xyzDistToPlayerSq, 0xFF, 0x14, 0x96); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_SHADEST_TAIKO_HIGH); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_SHADEST_TAIKO_HIGH); } } } @@ -1335,7 +1335,7 @@ void BossSst_HandOffbeat(BossSst* this, PlayState* play) { } if (this->timer == 0) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_SHADEST_TAIKO_LOW); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_SHADEST_TAIKO_LOW); BossSst_HandSetupOffbeatEnd(this); } } @@ -1463,7 +1463,7 @@ void BossSst_HandSetupSlam(BossSst* this) { Animation_MorphToPlayOnce(&this->skelAnime, sHandFlatPoses[this->actor.params], 10.0f); BossSst_HandSetDamage(this, 0x20); this->ready = false; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_SHADEST_FLY_ATTACK); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_SHADEST_FLY_ATTACK); this->actionFunc = BossSst_HandSlam; } @@ -1493,7 +1493,7 @@ void BossSst_HandSlam(BossSst* this, PlayState* play) { this->actor.velocity.y *= 1.5f; if (Math_StepToF(&this->actor.world.pos.y, this->actor.floorHeight, this->actor.velocity.y)) { this->ready = true; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_SHADEST_TAIKO_LOW); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_SHADEST_TAIKO_LOW); BossSst_SpawnShockwave(this); this->colliderCyl.base.atFlags |= AT_ON; Collider_UpdateCylinder(&this->actor, &this->colliderCyl); @@ -1549,7 +1549,7 @@ void BossSst_HandSetupSweep(BossSst* this) { this->handMaxSpeed = 0x300; this->handAngSpeed = 0; this->ready = false; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_SHADEST_FLY_ATTACK); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_SHADEST_FLY_ATTACK); this->actionFunc = BossSst_HandSweep; } @@ -1726,7 +1726,7 @@ void BossSst_HandClap(BossSst* this, PlayState* play) { if (Math_ScaledStepToS(&this->actor.shape.rot.y, this->actor.home.rot.y, this->handAngSpeed)) { if (this->actor.params == BONGO_LEFT_HAND) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_SHADEST_CLAP); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_SHADEST_CLAP); } this->ready = true; } else { @@ -1826,7 +1826,7 @@ void BossSst_HandGrab(BossSst* this, PlayState* play) { if (this->colliderJntSph.base.atFlags & AT_HIT) { this->colliderJntSph.base.atFlags &= ~(AT_ON | AT_HIT); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_SHADEST_CATCH); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_SHADEST_CATCH); BossSst_HandGrabPlayer(this, play); this->timer = CLAMP_MAX(this->timer, 5); } @@ -1870,7 +1870,7 @@ void BossSst_HandCrush(BossSst* this, PlayState* play) { play->damagePlayer(play, -8); } if (Animation_OnFrame(&this->skelAnime, 0.0f)) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_SHADEST_CATCH); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_SHADEST_CATCH); } } } @@ -2028,7 +2028,7 @@ void BossSst_HandShake(BossSst* this, PlayState* play) { this->handYRotMod = (this->vParity * -0x2000) + (sinf(this->timer * (M_PI / 4)) * 0x2800); if (!(this->timer % 8)) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_SHADEST_SHAKEHAND); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_SHADEST_SHAKEHAND); } if (HAND_STATE(OTHER_HAND(this)) == HAND_DAMAGED) { @@ -2128,7 +2128,7 @@ void BossSst_HandDamage(BossSst* this, PlayState* play) { if (this->timer == 0) { if (this->actor.floorHeight >= 0.0f) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_SHADEST_TAIKO_HIGH); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_SHADEST_TAIKO_HIGH); } BossSst_HandSetupStunned(this); } @@ -2165,7 +2165,7 @@ void BossSst_HandThrash(BossSst* this, PlayState* play) { this->amplitude = 0; Animation_MorphToPlayOnce(&this->skelAnime, sHandFlatPoses[this->actor.params], 5.0f); } else { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_SHADEST_TAIKO_HIGH); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_SHADEST_TAIKO_HIGH); this->amplitude = -0x800; Animation_MorphToPlayOnce(&this->skelAnime, sHandOpenPoses[this->actor.params], 5.0f); } @@ -2366,7 +2366,7 @@ void BossSst_HandBreakIce(BossSst* this, PlayState* play) { } if (this->timer != 0) { - Audio_PlayActorSound2(&this->actor, NA_SE_EV_ICE_BROKEN); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_ICE_BROKEN); } OTHER_HAND(this)->handAngSpeed = 5; @@ -2532,7 +2532,7 @@ void BossSst_HandCollisionCheck(BossSst* this, PlayState* play) { BossSst_HeadSetupDamagedHand(sHead, bothHands); Item_DropCollectible(play, &this->actor.world.pos, (Rand_ZeroOne() < 0.5f) ? ITEM00_ARROWS_SMALL : ITEM00_MAGIC_SMALL); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_SHADEST_DAMAGE_HAND); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_SHADEST_DAMAGE_HAND); } } } @@ -2973,7 +2973,7 @@ void BossSst_SpawnShockwave(BossSst* this) { s32 scale = 120; s32 alpha = 250; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_SHADEST_HAND_WAVE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_SHADEST_HAND_WAVE); this->effectMode = BONGO_SHOCKWAVE; for (i = 0; i < 3; i++) { @@ -3030,7 +3030,7 @@ void BossSst_SpawnIceCrystal(BossSst* this, s32 index) { ice->scale = 4000; if ((index % 2) == 0) { - Audio_PlayActorSound2(&this->actor, NA_SE_PL_FREEZE_S); + Audio_PlayActorSfx2(&this->actor, NA_SE_PL_FREEZE_S); } } @@ -3069,7 +3069,7 @@ void BossSst_IceShatter(BossSst* this) { s32 i; this->effects[0].status = 1; - Audio_PlayActorSound2(&this->actor, NA_SE_PL_ICE_BROKEN); + Audio_PlayActorSfx2(&this->actor, NA_SE_PL_ICE_BROKEN); for (i = 0; i < 18; i++) { BossSstEffect* ice = &this->effects[i]; diff --git a/src/overlays/actors/ovl_Boss_Tw/z_boss_tw.c b/src/overlays/actors/ovl_Boss_Tw/z_boss_tw.c index 6d7d586ab6..88bb6ae71d 100644 --- a/src/overlays/actors/ovl_Boss_Tw/z_boss_tw.c +++ b/src/overlays/actors/ovl_Boss_Tw/z_boss_tw.c @@ -680,7 +680,7 @@ void BossTw_FlyTo(BossTw* this, PlayState* play) { f32 yawTarget; f32 xzDist; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_TWINROBA_FLY - SFX_FLAG); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_TWINROBA_FLY - SFX_FLAG); Math_ApproachF(&this->scepterAlpha, 0.0f, 1.0f, 10.0f); SkelAnime_Update(&this->skelAnime); @@ -1002,7 +1002,7 @@ void BossTw_ShootBeam(BossTw* this, PlayState* play) { if (this->timers[1] == 9) { play->envCtx.lightBlend = 0.5f; play->envCtx.lightSetting = 3 - this->actor.params; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_TWINROBA_MASIC_SET); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_TWINROBA_MASIC_SET); } if (this->timers[1] == 5) { @@ -1039,9 +1039,9 @@ void BossTw_ShootBeam(BossTw* this, PlayState* play) { } else { Math_ApproachF(&this->flameAlpha, 255.0f, 1.0f, 10.0f); if (this->actor.params == 1) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_TWINROBA_MS_FIRE - SFX_FLAG); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_TWINROBA_MS_FIRE - SFX_FLAG); } else { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_TWINROBA_MS_FREEZE - SFX_FLAG); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_TWINROBA_MS_FREEZE - SFX_FLAG); } } @@ -1075,8 +1075,8 @@ void BossTw_ShootBeam(BossTw* this, PlayState* play) { } if (Animation_OnFrame(&this->skelAnime, this->workf[ANIM_SW_TGT] - 13.0f)) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_TWINROBA_THROW_MASIC); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_TWINROBA_SHOOT_VOICE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_TWINROBA_THROW_MASIC); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_TWINROBA_SHOOT_VOICE); } xDiff = this->targetPos.x - this->beamOrigin.x; @@ -1133,13 +1133,11 @@ void BossTw_ShootBeam(BossTw* this, PlayState* play) { &this->actor.projectedW); if (this->actor.params == 1) { - Audio_PlaySoundGeneral(NA_SE_EN_TWINROBA_SHOOT_FIRE - SFX_FLAG, &this->unk_54C, 4, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EN_TWINROBA_SHOOT_FIRE - SFX_FLAG, &this->unk_54C, 4, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } else { - Audio_PlaySoundGeneral(NA_SE_EN_TWINROBA_SHOOT_FREEZE - SFX_FLAG, &this->unk_54C, 4, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EN_TWINROBA_SHOOT_FREEZE - SFX_FLAG, &this->unk_54C, 4, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } break; @@ -1165,19 +1163,15 @@ void BossTw_ShootBeam(BossTw* this, PlayState* play) { &this->actor.projectedW); if (this->actor.params == 1) { - Audio_PlaySoundGeneral(NA_SE_EN_TWINROBA_SHOOT_FIRE - SFX_FLAG, &this->unk_558, 4U, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultReverb); - Audio_PlaySoundGeneral(NA_SE_EN_TWINROBA_REFL_FIRE - SFX_FLAG, &this->unk_558, 4, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EN_TWINROBA_SHOOT_FIRE - SFX_FLAG, &this->unk_558, 4U, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EN_TWINROBA_REFL_FIRE - SFX_FLAG, &this->unk_558, 4, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } else { - Audio_PlaySoundGeneral(NA_SE_EN_TWINROBA_SHOOT_FREEZE - SFX_FLAG, &this->unk_558, 4, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultReverb); - Audio_PlaySoundGeneral(NA_SE_EN_TWINROBA_REFL_FREEZE - SFX_FLAG, &this->unk_558, 4, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EN_TWINROBA_SHOOT_FREEZE - SFX_FLAG, &this->unk_558, 4, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EN_TWINROBA_REFL_FREEZE - SFX_FLAG, &this->unk_558, 4, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } break; } @@ -1316,7 +1310,7 @@ void BossTw_ShootBeam(BossTw* this, PlayState* play) { } BossTw_SetupHitByBeam(otherTw, play); - Audio_PlayActorSound2(&otherTw->actor, NA_SE_EN_TWINROBA_DAMAGE_VOICE); + Audio_PlayActorSfx2(&otherTw->actor, NA_SE_EN_TWINROBA_DAMAGE_VOICE); play->envCtx.lightBlend = 1.0f; otherTw->actor.colChkInfo.health++; } @@ -1421,9 +1415,9 @@ void BossTw_Laugh(BossTw* this, PlayState* play) { if (Animation_OnFrame(&this->skelAnime, 10.0f)) { if (this->actor.params == TW_KOUME) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_TWINROBA_LAUGH); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_TWINROBA_LAUGH); } else { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_TWINROBA_LAUGH2); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_TWINROBA_LAUGH2); } } @@ -1447,7 +1441,7 @@ void BossTw_Spin(BossTw* this, PlayState* play) { this->actor.shape.rot.y -= 0x3000; if ((this->timers[0] % 4) == 0) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_TWINROBA_ROLL); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_TWINROBA_ROLL); } } else { SkelAnime_Update(&this->skelAnime); @@ -1575,8 +1569,8 @@ void BossTw_TwinrovaMergeCS(BossTw* this, PlayState* play) { switch (this->csState1) { case 0: - Audio_PlayActorSound2(&sKotakePtr->actor, NA_SE_EN_TWINROBA_FLY - SFX_FLAG); - Audio_PlayActorSound2(&sKoumePtr->actor, NA_SE_EN_TWINROBA_FLY - SFX_FLAG); + Audio_PlayActorSfx2(&sKotakePtr->actor, NA_SE_EN_TWINROBA_FLY - SFX_FLAG); + Audio_PlayActorSfx2(&sKoumePtr->actor, NA_SE_EN_TWINROBA_FLY - SFX_FLAG); spB0.x = this->workf[UNK_F11]; spB0.y = 400.0f; spB0.z = 0.0f; @@ -1595,7 +1589,7 @@ void BossTw_TwinrovaMergeCS(BossTw* this, PlayState* play) { Math_ApproachF(&this->workf[UNK_F10], 0.5f, 1, 0.0039999997f); if (this->workf[UNK_F11] < 10.0f) { if (!this->work[PLAYED_CHRG_SFX]) { - Audio_PlayActorSound2(&sKoumePtr->actor, NA_SE_EN_TWINROBA_POWERUP); + Audio_PlayActorSfx2(&sKoumePtr->actor, NA_SE_EN_TWINROBA_POWERUP); this->work[PLAYED_CHRG_SFX] = true; } @@ -1646,7 +1640,7 @@ void BossTw_TwinrovaMergeCS(BossTw* this, PlayState* play) { this->workf[ANIM_SW_TGT] = Animation_GetLastFrame(&object_tw_Anim_038E2C); this->timers[0] = 50; func_8002DF54(play, &this->actor, 2); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_TWINROBA_TRANSFORM); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_TWINROBA_TRANSFORM); Audio_QueueSeqCmd(SEQ_PLAYER_BGM_MAIN << 24 | NA_BGM_BOSS); } } @@ -1975,7 +1969,7 @@ void BossTw_TwinrovaIntroCS(BossTw* this, PlayState* play) { BossTw_AddFlameEffect(play, &pos, &velocity, &sZeroVector, Rand_ZeroFloat(10.0f) + 25.0f, 1); } - Audio_PlayActorSound2(&sKoumePtr->actor, NA_SE_EN_TWINROBA_TRANSFORM); + Audio_PlayActorSfx2(&sKoumePtr->actor, NA_SE_EN_TWINROBA_TRANSFORM); play->envCtx.lightBlend = 0; } @@ -1991,7 +1985,7 @@ void BossTw_TwinrovaIntroCS(BossTw* this, PlayState* play) { } if (this->work[CS_TIMER_1] == 60) { - Audio_PlayActorSound2(&sKoumePtr->actor, NA_SE_EN_TWINROBA_LAUGH); + Audio_PlayActorSfx2(&sKoumePtr->actor, NA_SE_EN_TWINROBA_LAUGH); } if (Animation_OnFrame(&sKoumePtr->skelAnime, this->workf[ANIM_SW_TGT])) { @@ -2032,7 +2026,7 @@ void BossTw_TwinrovaIntroCS(BossTw* this, PlayState* play) { } } else { if ((this->work[CS_TIMER_1] % 8) == 0) { - Audio_PlayActorSound2(&sKoumePtr->actor, NA_SE_EN_TWINROBA_ROLL); + Audio_PlayActorSfx2(&sKoumePtr->actor, NA_SE_EN_TWINROBA_ROLL); } sKoumePtr->actor.shape.rot.y = sKoumePtr->actor.shape.rot.y + (s16)this->subCamYawStep; @@ -2136,7 +2130,7 @@ void BossTw_TwinrovaIntroCS(BossTw* this, PlayState* play) { BossTw_AddFlameEffect(play, &pos, &velocity, &sZeroVector, Rand_ZeroFloat(10.f) + 25.0f, 0); } - Audio_PlayActorSound2(&sKotakePtr->actor, NA_SE_EN_TWINROBA_TRANSFORM); + Audio_PlayActorSfx2(&sKotakePtr->actor, NA_SE_EN_TWINROBA_TRANSFORM); play->envCtx.lightBlend = 0.0f; } @@ -2152,7 +2146,7 @@ void BossTw_TwinrovaIntroCS(BossTw* this, PlayState* play) { } if (this->work[CS_TIMER_1] == 60) { - Audio_PlayActorSound2(&sKotakePtr->actor, NA_SE_EN_TWINROBA_LAUGH2); + Audio_PlayActorSfx2(&sKotakePtr->actor, NA_SE_EN_TWINROBA_LAUGH2); } if (Animation_OnFrame(&sKotakePtr->skelAnime, this->workf[ANIM_SW_TGT])) { @@ -2192,7 +2186,7 @@ void BossTw_TwinrovaIntroCS(BossTw* this, PlayState* play) { } } else { if ((this->work[CS_TIMER_1] % 8) == 0) { - Audio_PlayActorSound2(&sKotakePtr->actor, NA_SE_EN_TWINROBA_ROLL); + Audio_PlayActorSfx2(&sKotakePtr->actor, NA_SE_EN_TWINROBA_ROLL); } sKotakePtr->actor.shape.rot.y = sKotakePtr->actor.shape.rot.y + (s16)this->subCamYawStep; @@ -2239,8 +2233,8 @@ void BossTw_TwinrovaIntroCS(BossTw* this, PlayState* play) { } if (this->work[CS_TIMER_1] < 200) { - Audio_PlayActorSound2(&sKoumePtr->actor, NA_SE_EN_TWINROBA_FLY - SFX_FLAG); - Audio_PlayActorSound2(&sKotakePtr->actor, NA_SE_EN_TWINROBA_FLY - SFX_FLAG); + Audio_PlayActorSfx2(&sKoumePtr->actor, NA_SE_EN_TWINROBA_FLY - SFX_FLAG); + Audio_PlayActorSfx2(&sKotakePtr->actor, NA_SE_EN_TWINROBA_FLY - SFX_FLAG); sp90.x = this->workf[UNK_F11]; sp90.y = 400.0f; sp90.z = 0.0f; @@ -2319,7 +2313,7 @@ void BossTw_DeathBall(BossTw* this, PlayState* play) { s16 yaw; if ((this->work[CS_TIMER_1] % 16) == 0) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_TWINROBA_FB_FLY); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_TWINROBA_FB_FLY); } if (sTwinrovaPtr->csState2 < 2) { @@ -2420,7 +2414,7 @@ void BossTw_DeathCSMsgSfx(BossTw* this, PlayState* play) { kotakeAnim = 3; sKotakePtr->work[YAW_TGT] = -0x4000; sKotakePtr->rotateSpeed = 0.0f; - Audio_PlayActorSound2(&sKotakePtr->actor, NA_SE_EN_TWINROBA_SENSE); + Audio_PlayActorSfx2(&sKotakePtr->actor, NA_SE_EN_TWINROBA_SENSE); msgId2 = 0x604C; } @@ -2432,7 +2426,7 @@ void BossTw_DeathCSMsgSfx(BossTw* this, PlayState* play) { koumeAnim = 3; sKoumePtr->work[YAW_TGT] = 0x4000; sKoumePtr->rotateSpeed = 0.0f; - Audio_PlayActorSound2(&sKoumePtr->actor, NA_SE_EN_TWINROBA_SENSE); + Audio_PlayActorSfx2(&sKoumePtr->actor, NA_SE_EN_TWINROBA_SENSE); } if (this->work[CS_TIMER_2] == 290) { @@ -2526,8 +2520,8 @@ void BossTw_DeathCSMsgSfx(BossTw* this, PlayState* play) { } if (this->work[CS_TIMER_2] == 900) { - Audio_PlayActorSound2(&sKoumePtr->actor, NA_SE_EN_TWINROBA_DIE); - Audio_PlayActorSound2(&sKotakePtr->actor, NA_SE_EN_TWINROBA_DIE); + Audio_PlayActorSfx2(&sKoumePtr->actor, NA_SE_EN_TWINROBA_DIE); + Audio_PlayActorSfx2(&sKotakePtr->actor, NA_SE_EN_TWINROBA_DIE); } if (this->work[CS_TIMER_2] == 930) { @@ -2598,7 +2592,7 @@ void BossTw_DeathCSMsgSfx(BossTw* this, PlayState* play) { Math_ApproachF(&this->workf[UNK_F18], 0.0f, 1.0f, 3.0f); } - Audio_PlayActorSound2(&this->actor, NA_SE_EV_GOTO_HEAVEN - SFX_FLAG); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_GOTO_HEAVEN - SFX_FLAG); } else { f32 yTarget = Math_CosS(this->work[CS_TIMER_2] * 1700) * 4.0f; Math_ApproachF(&sKotakePtr->actor.world.pos.y, 20.0f + (263.0f + yTarget), 0.1f, this->actor.speedXZ); @@ -2649,7 +2643,7 @@ void BossTw_TwinrovaDeathCS(BossTw* this, PlayState* play) { this->workf[UNK_F13] += this->actor.speedXZ; if (this->workf[UNK_F13] > 65536.0f) { this->workf[UNK_F13] -= 65536.0f; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_TWINROBA_ROLL); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_TWINROBA_ROLL); } Math_ApproachF(&this->actor.speedXZ, 12288.0f, 1.0f, 256.0f); if (this->work[CS_TIMER_1] == 135) { @@ -3095,7 +3089,7 @@ void BossTw_TwinrovaUpdate(Actor* thisx, PlayState* play2) { this->twinrovaStun = 0; this->work[FOG_TIMER] = 10; BossTw_TwinrovaDamage(this, play, 0); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_TWINROBA_YOUNG_DAMAGE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_TWINROBA_YOUNG_DAMAGE); } else if (this->collider.base.acFlags & AC_HIT) { ColliderInfo* info = this->collider.info.acHitInfo; @@ -3941,7 +3935,7 @@ void BossTw_BlastFire(BossTw* this, PlayState* play) { if (this->timers[0] == 0) { func_8002D908(&this->actor); func_8002D7EC(&this->actor); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_TWINROBA_SHOOT_FIRE & ~SFX_FLAG); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_TWINROBA_SHOOT_FIRE & ~SFX_FLAG); } else { Vec3f velocity; Vec3f velDir; @@ -3963,8 +3957,8 @@ void BossTw_BlastFire(BossTw* this, PlayState* play) { } if (this->timers[0] <= 50) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_TWINROBA_SHOOT_FIRE & ~SFX_FLAG); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_TWINROBA_REFL_FIRE & ~SFX_FLAG); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_TWINROBA_SHOOT_FIRE & ~SFX_FLAG); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_TWINROBA_REFL_FIRE & ~SFX_FLAG); Matrix_RotateY((this->magicDir.y / 32678.0f) * M_PI, MTXMODE_NEW); Matrix_RotateX((this->magicDir.x / 32678.0f) * M_PI, MTXMODE_APPLY); velDir.x = 0.0f; @@ -4050,7 +4044,7 @@ void BossTw_BlastFire(BossTw* this, PlayState* play) { this->timers[0] = 0; } - Audio_PlayActorSound2(&this->actor, NA_SE_EN_TWINROBA_FIRE_EXP - SFX_FLAG); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_TWINROBA_FIRE_EXP - SFX_FLAG); xDiff = sKoumePtr->groundBlastPos2.x - player->actor.world.pos.x; yDiff = sKoumePtr->groundBlastPos2.y - player->actor.world.pos.y; @@ -4130,7 +4124,7 @@ void BossTw_BlastIce(BossTw* this, PlayState* play) { if (this->timers[0] == 0) { func_8002D908(&this->actor); func_8002D7EC(&this->actor); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_TWINROBA_SHOOT_FREEZE - SFX_FLAG); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_TWINROBA_SHOOT_FREEZE - SFX_FLAG); } else { Vec3f velocity; Vec3f spF4; @@ -4152,8 +4146,8 @@ void BossTw_BlastIce(BossTw* this, PlayState* play) { } if (this->timers[0] <= 50) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_TWINROBA_SHOOT_FREEZE - SFX_FLAG); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_TWINROBA_REFL_FREEZE - SFX_FLAG); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_TWINROBA_SHOOT_FREEZE - SFX_FLAG); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_TWINROBA_REFL_FREEZE - SFX_FLAG); Matrix_RotateY((this->magicDir.y / 32678.0f) * M_PI, MTXMODE_NEW); Matrix_RotateX((this->magicDir.x / 32678.0f) * M_PI, MTXMODE_APPLY); spF4.x = 0.0f; @@ -4240,7 +4234,7 @@ void BossTw_BlastIce(BossTw* this, PlayState* play) { this->timers[0] = 0; } - Audio_PlayActorSound2(&this->actor, NA_SE_EV_ICE_FREEZE - SFX_FLAG); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_ICE_FREEZE - SFX_FLAG); if (this->timers[0] > (sTwinrovaPtr->actionFunc == BossTw_Wait ? 70 : 20)) { s32 pad; @@ -5180,8 +5174,8 @@ void BossTw_TwinrovaShootBlast(BossTw* this, PlayState* play) { SkelAnime_Update(&this->skelAnime); if (Animation_OnFrame(&this->skelAnime, 8.0f)) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_TWINROBA_THROW_MASIC); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_TWINROBA_YOUNG_SHOOTVC); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_TWINROBA_THROW_MASIC); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_TWINROBA_YOUNG_SHOOTVC); } if (Animation_OnFrame(&this->skelAnime, 12.0f)) { @@ -5265,12 +5259,12 @@ void BossTw_TwinrovaDamage(BossTw* this, PlayState* play, u8 damage) { if ((s8)this->actor.colChkInfo.health <= 0) { BossTw_TwinrovaSetupDeathCS(this, play); Enemy_StartFinishingBlow(play, &this->actor); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_TWINROBA_YOUNG_DEAD); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_TWINROBA_YOUNG_DEAD); return; } - Audio_PlayActorSound2(&this->actor, NA_SE_EN_TWINROBA_YOUNG_DAMAGE2); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_TWINROBA_CUTBODY); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_TWINROBA_YOUNG_DAMAGE2); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_TWINROBA_CUTBODY); } this->actionFunc = BossTw_TwinrovaStun; @@ -5392,7 +5386,7 @@ void BossTw_TwinrovaFly(BossTw* this, PlayState* play) { f32 yaw; f32 xzDist; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_TWINROBA_FLY - SFX_FLAG); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_TWINROBA_FLY - SFX_FLAG); SkelAnime_Update(&this->skelAnime); xDiff = this->targetPos.x - this->actor.world.pos.x; yDiff = this->targetPos.y - this->actor.world.pos.y; @@ -5429,7 +5423,7 @@ void BossTw_TwinrovaSpin(BossTw* this, PlayState* play) { this->actor.shape.rot.y -= 0x3000; if ((this->timers[0] % 4) == 0) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_TWINROBA_ROLL); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_TWINROBA_ROLL); } } else { BossTw_TwinrovaSetupFly(this, play); @@ -5447,7 +5441,7 @@ void BossTw_TwinrovaLaugh(BossTw* this, PlayState* play) { SkelAnime_Update(&this->skelAnime); if (Animation_OnFrame(&this->skelAnime, 10.0f)) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_TWINROBA_YOUNG_LAUGH); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_TWINROBA_YOUNG_LAUGH); } if (Animation_OnFrame(&this->skelAnime, this->workf[ANIM_SW_TGT])) { diff --git a/src/overlays/actors/ovl_Boss_Va/z_boss_va.c b/src/overlays/actors/ovl_Boss_Va/z_boss_va.c index bae9216c0d..370bd5d124 100644 --- a/src/overlays/actors/ovl_Boss_Va/z_boss_va.c +++ b/src/overlays/actors/ovl_Boss_Va/z_boss_va.c @@ -820,7 +820,7 @@ void BossVa_BodyIntro(BossVa* this, PlayState* play) { sCsState++; } if (Rand_ZeroOne() < 0.1f) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_BALINADE_BL_SPARK - SFX_FLAG); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_BALINADE_BL_SPARK - SFX_FLAG); } break; case INTRO_CRACKLE: @@ -935,7 +935,7 @@ void BossVa_BodyIntro(BossVa* this, PlayState* play) { for (i = 10; i >= 1; i--) { if (sBodyBari[i - 1]) { if (sBodyBari[i - 1] == 1) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_BALINADE_STICK); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_BALINADE_STICK); BossVa_SetSparkEnv(play); if (this->onCeiling == 0) { this->onCeiling = 2; // Not used by body @@ -978,7 +978,7 @@ void BossVa_BodyIntro(BossVa* this, PlayState* play) { } if (Rand_ZeroOne() < 0.1f) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_BALINADE_BL_SPARK - SFX_FLAG); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_BALINADE_BL_SPARK - SFX_FLAG); } this->timer = 40; @@ -1076,7 +1076,7 @@ void BossVa_BodyPhase1(BossVa* this, PlayState* play) { if (sBodyState & 0x7F) { this->skelAnime.curFrame = 0.0f; Actor_SetColorFilter(&this->actor, 0, 255, 0, 12); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_BALINADE_DAMAGE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_BALINADE_DAMAGE); } if (SkelAnime_Update(&this->skelAnime) && (sFightPhase >= PHASE_2)) { @@ -1093,7 +1093,7 @@ void BossVa_BodyPhase1(BossVa* this, PlayState* play) { } if (Rand_ZeroOne() < 0.1f) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_BALINADE_BL_SPARK - SFX_FLAG); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_BALINADE_BL_SPARK - SFX_FLAG); } Collider_UpdateCylinder(&this->actor, &this->colliderBody); @@ -1152,7 +1152,7 @@ void BossVa_BodyPhase2(BossVa* this, PlayState* play) { Actor_SetColorFilter(&this->actor, 0x4000, 255, 0, 12); } - Audio_PlayActorSound2(&this->actor, NA_SE_EN_BALINADE_FAINT); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_BALINADE_FAINT); } if (this->colliderBody.base.atFlags & AT_HIT) { @@ -1161,7 +1161,7 @@ void BossVa_BodyPhase2(BossVa* this, PlayState* play) { sPhase2Timer = (sPhase2Timer + 0x18) & 0xFFF0; if (this->colliderBody.base.at == &player->actor) { func_8002F71C(play, &this->actor, 8.0f, this->actor.yawTowardsPlayer, 8.0f); - Audio_PlayActorSound2(&player->actor, NA_SE_PL_BODY_HIT); + Audio_PlayActorSfx2(&player->actor, NA_SE_PL_BODY_HIT); } } @@ -1174,7 +1174,7 @@ void BossVa_BodyPhase2(BossVa* this, PlayState* play) { } if (Rand_ZeroOne() < 0.1f) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_BALINADE_BL_SPARK - SFX_FLAG); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_BALINADE_BL_SPARK - SFX_FLAG); } Math_SmoothStepToS(&this->actor.shape.rot.x, this->actor.world.rot.x, 1, 0xC8, 0); @@ -1237,14 +1237,14 @@ void BossVa_BodyPhase3(BossVa* this, PlayState* play) { if (this->colliderBody.base.at == &player->actor) { func_8002F71C(play, &this->actor, 8.0f, this->actor.yawTowardsPlayer, 8.0f); this->actor.world.rot.y += (s16)Rand_CenteredFloat(0x2EE0) + 0x8000; - Audio_PlayActorSound2(&player->actor, NA_SE_PL_BODY_HIT); + Audio_PlayActorSfx2(&player->actor, NA_SE_PL_BODY_HIT); } } if (this->colliderBody.base.acFlags & AC_HIT) { this->skelAnime.curFrame = 0.0f; Actor_SetColorFilter(&this->actor, 0, 255, 0, 12); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_BALINADE_FAINT); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_BALINADE_FAINT); sBodyState = 1; this->timer = 131; this->actor.flags &= ~ACTOR_FLAG_0; @@ -1316,7 +1316,7 @@ void BossVa_BodyPhase3(BossVa* this, PlayState* play) { this->actor.focus.pos = this->actor.world.pos; this->actor.focus.pos.y += 20.0f; if (Rand_ZeroOne() < 0.1f) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_BALINADE_BL_SPARK - SFX_FLAG); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_BALINADE_BL_SPARK - SFX_FLAG); } Collider_UpdateCylinder(&this->actor, &this->colliderBody); @@ -1358,11 +1358,11 @@ void BossVa_BodyPhase4(BossVa* this, PlayState* play) { if (this->colliderBody.base.at == &player->actor) { func_8002F71C(play, &this->actor, 8.0f, this->actor.yawTowardsPlayer, 8.0f); this->actor.world.rot.y += (s16)Rand_CenteredFloat(0x2EE0) + 0x8000; - Audio_PlayActorSound2(&player->actor, NA_SE_PL_BODY_HIT); + Audio_PlayActorSfx2(&player->actor, NA_SE_PL_BODY_HIT); } } if (Rand_ZeroOne() < 0.1f) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_BALINADE_BL_SPARK - SFX_FLAG); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_BALINADE_BL_SPARK - SFX_FLAG); } if (this->colliderBody.base.acFlags & AC_HIT) { @@ -1373,7 +1373,7 @@ void BossVa_BodyPhase4(BossVa* this, PlayState* play) { this->invincibilityTimer = 8; if (this->actor.colChkInfo.damageEffect != 1) { this->actor.world.rot.y = this->actor.yawTowardsPlayer; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_BALINADE_DAMAGE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_BALINADE_DAMAGE); Actor_SetColorFilter(&this->actor, 0x4000, 255, 0, 12); sPhase4HP -= this->actor.colChkInfo.damage; if (sPhase4HP <= 0) { @@ -1393,7 +1393,7 @@ void BossVa_BodyPhase4(BossVa* this, PlayState* play) { this->vaBodySpinRate = 0; this->actor.speedXZ = 0.0f; Actor_SetColorFilter(&this->actor, 0, 125, 0, 255); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_BALINADE_FAINT); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_BALINADE_FAINT); } } } else if (this->colliderBody.base.ac->id == ACTOR_EN_BOOM) { @@ -1401,7 +1401,7 @@ void BossVa_BodyPhase4(BossVa* this, PlayState* play) { boomerang->returnTimer = 0; boomerang->moveTo = &player->actor; boomerang->actor.world.rot.y = boomerang->actor.yawTowardsPlayer; - Audio_PlayActorSound2(&this->actor, NA_SE_IT_SHIELD_REFLECT_SW); + Audio_PlayActorSfx2(&this->actor, NA_SE_IT_SHIELD_REFLECT_SW); } } else if ((this->timer2 == 0) && (this->actor.shape.yOffset == 0.0f)) { this->timer = -220 - (s16)(Rand_ZeroOne() * 200.0f); @@ -1703,7 +1703,7 @@ void BossVa_SupportIntro(BossVa* this, PlayState* play) { SkelAnime_Update(&this->skelAnime); Math_SmoothStepToF(&this->skelAnime.playSpeed, 1.0f, 1.0f, 0.05f, 0.0f); if (Rand_ZeroOne() < 0.1f) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_BALINADE_BL_SPARK - SFX_FLAG); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_BALINADE_BL_SPARK - SFX_FLAG); } } } @@ -1735,7 +1735,7 @@ void BossVa_SupportAttached(BossVa* this, PlayState* play) { BossVa_AttachToBody(this); if (Rand_ZeroOne() < 0.1f) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_BALINADE_BL_SPARK - SFX_FLAG); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_BALINADE_BL_SPARK - SFX_FLAG); } if (this->colliderSph.base.acFlags & AC_HIT) { @@ -1834,7 +1834,7 @@ void BossVa_SupportCut(BossVa* this, PlayState* play) { if (this->timer2 >= 32) { this->burst++; this->isDead = true; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_BALINADE_BREAK2); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_BALINADE_BREAK2); if (this->actor.params == BOSSVA_SUPPORT_3) { sCsState++; } @@ -2045,7 +2045,7 @@ void BossVa_ZapperAttack(BossVa* this, PlayState* play) { } if (Rand_ZeroOne() < 0.1f) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_BALINADE_BL_SPARK - SFX_FLAG); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_BALINADE_BL_SPARK - SFX_FLAG); } } } @@ -2053,7 +2053,7 @@ void BossVa_ZapperAttack(BossVa* this, PlayState* play) { if (this->burst || (this->timer2 < 0)) { if (this->colliderLightning.base.atFlags & AT_HIT) { if (this->timer2 > 0) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_BALINADE_HIT_RINK); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_BALINADE_HIT_RINK); BossVa_SetSparkEnv(play); this->timer2 = -1; GET_BODY(this)->onCeiling = 6; // not used by body @@ -2079,7 +2079,7 @@ void BossVa_ZapperAttack(BossVa* this, PlayState* play) { if (this->burst && (this->burst != 2)) { // burst can never be 2 if (this->timer2 >= 32) { if (this->timer2 == 32) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_BALINADE_THUNDER); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_BALINADE_THUNDER); } BossVa_Spark(play, this, 2, 110, 15.0f, 15.0f, SPARK_BLAST, 5.0f, true); BossVa_Spark(play, this, 2, 110, 15.0f, 15.0f, SPARK_BLAST, 6.0f, true); @@ -2196,7 +2196,7 @@ void BossVa_ZapperDeath(BossVa* this, PlayState* play) { this->burst++; this->isDead = true; BossVa_SetDeathEnv(play); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_BALINADE_BREAK2); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_BALINADE_BREAK2); } } else { this->burst++; @@ -2304,7 +2304,7 @@ void BossVa_ZapperEnraged(BossVa* this, PlayState* play) { this->burst++; this->unk_1D8 = sp54; if (Rand_ZeroOne() < 0.1f) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_BALINADE_BL_SPARK - SFX_FLAG); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_BALINADE_BL_SPARK - SFX_FLAG); } } } @@ -2312,7 +2312,7 @@ void BossVa_ZapperEnraged(BossVa* this, PlayState* play) { if (this->burst || (this->timer2 < 0)) { if (this->colliderLightning.base.atFlags & AT_HIT) { if (this->timer2 > 0) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_BALINADE_HIT_RINK); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_BALINADE_HIT_RINK); BossVa_SetSparkEnv(play); this->timer2 = -1; GET_BODY(this)->onCeiling = 6; // not used by body @@ -2338,7 +2338,7 @@ void BossVa_ZapperEnraged(BossVa* this, PlayState* play) { if (this->burst && (this->burst != 2)) { // burst can never be 2 if (this->timer2 >= 16) { if (this->timer2 == 18) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_BALINADE_THUNDER); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_BALINADE_THUNDER); } BossVa_Spark(play, this, 2, 110, 15.0f, 15.0f, SPARK_BLAST, 5.0f, true); @@ -2509,7 +2509,7 @@ void BossVa_BariIntro(BossVa* this, PlayState* play) { } if (Rand_ZeroOne() < 0.1f) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_BALINADE_BL_SPARK - SFX_FLAG); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_BALINADE_BL_SPARK - SFX_FLAG); } } @@ -2543,7 +2543,7 @@ void BossVa_BariPhase3Attack(BossVa* this, PlayState* play) { if ((this->colliderLightning.base.atFlags & AT_HIT) || (this->colliderSph.base.atFlags & AT_HIT)) { if ((this->colliderLightning.base.at == &player->actor) || (this->colliderSph.base.at == &player->actor)) { func_8002F71C(play, &this->actor, 8.0f, GET_BODY(this)->actor.yawTowardsPlayer, 8.0f); - Audio_PlayActorSound2(&player->actor, NA_SE_PL_BODY_HIT); + Audio_PlayActorSfx2(&player->actor, NA_SE_PL_BODY_HIT); this->colliderSph.base.at = NULL; this->colliderLightning.base.at = NULL; } @@ -2559,7 +2559,7 @@ void BossVa_BariPhase3Attack(BossVa* this, PlayState* play) { boomerang->returnTimer = 0; boomerang->moveTo = &player->actor; boomerang->actor.world.rot.y = boomerang->actor.yawTowardsPlayer; - Audio_PlayActorSound2(&this->actor, NA_SE_IT_SHIELD_REFLECT_SW); + Audio_PlayActorSfx2(&this->actor, NA_SE_IT_SHIELD_REFLECT_SW); } } @@ -2591,7 +2591,7 @@ void BossVa_BariPhase3Attack(BossVa* this, PlayState* play) { } if (Rand_ZeroOne() < 0.1f) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_BALINADE_BL_SPARK - SFX_FLAG); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_BALINADE_BL_SPARK - SFX_FLAG); } this->actor.world.rot.y += this->unk_1AC; @@ -2638,7 +2638,7 @@ void BossVa_BariPhase2Attack(BossVa* this, PlayState* play) { if ((this->colliderLightning.base.atFlags & AT_HIT) || (this->colliderSph.base.atFlags & AT_HIT)) { if ((this->colliderLightning.base.at == &player->actor) || (this->colliderSph.base.at == &player->actor)) { func_8002F71C(play, &this->actor, 8.0f, GET_BODY(this)->actor.yawTowardsPlayer, 8.0f); - Audio_PlayActorSound2(&player->actor, NA_SE_PL_BODY_HIT); + Audio_PlayActorSfx2(&player->actor, NA_SE_PL_BODY_HIT); this->colliderSph.base.at = NULL; this->colliderLightning.base.at = NULL; } @@ -2673,7 +2673,7 @@ void BossVa_BariPhase2Attack(BossVa* this, PlayState* play) { boomerang->returnTimer = 0; boomerang->moveTo = &player->actor; boomerang->actor.world.rot.y = boomerang->actor.yawTowardsPlayer; - Audio_PlayActorSound2(&this->actor, NA_SE_IT_SHIELD_REFLECT_SW); + Audio_PlayActorSfx2(&this->actor, NA_SE_IT_SHIELD_REFLECT_SW); } } @@ -2704,7 +2704,7 @@ void BossVa_BariPhase2Attack(BossVa* this, PlayState* play) { } if (Rand_ZeroOne() < 0.1f) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_BALINADE_BL_SPARK - SFX_FLAG); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_BALINADE_BL_SPARK - SFX_FLAG); } if (GET_BODY(this)->actor.colorFilterTimer == 0) { @@ -2764,7 +2764,7 @@ void BossVa_BariPhase3Stunned(BossVa* this, PlayState* play) { void BossVa_SetupBariDeath(BossVa* this) { this->actor.flags &= ~ACTOR_FLAG_0; this->timer = 30; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_BALINADE_BL_DEAD); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_BALINADE_BL_DEAD); this->isDead++; BossVa_SetupAction(this, BossVa_BariDeath); } @@ -2786,7 +2786,7 @@ void BossVa_SetupDoor(BossVa* this, PlayState* play) { void BossVa_Door(BossVa* this, PlayState* play) { if (sDoorState == 29) { - Audio_PlayActorSound2(&this->actor, NA_SE_EV_BUYODOOR_CLOSE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_BUYODOOR_CLOSE); } if (sCsState <= INTRO_DOOR_SHUT) { @@ -3891,8 +3891,8 @@ void BossVa_SpawnTumor(PlayState* play, BossVaEffect* effect, BossVa* this, Vec3 effect->scale = 0.0f; if (((i % 4) == 0) || (mode == 2)) { - Audio_PlaySoundGeneral(NA_SE_EN_BALINADE_BREAK, &effect->pos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EN_BALINADE_BREAK, &effect->pos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } break; } diff --git a/src/overlays/actors/ovl_Demo_6K/z_demo_6k.c b/src/overlays/actors/ovl_Demo_6K/z_demo_6k.c index 82f925a478..8353e66de4 100644 --- a/src/overlays/actors/ovl_Demo_6K/z_demo_6k.c +++ b/src/overlays/actors/ovl_Demo_6K/z_demo_6k.c @@ -142,7 +142,7 @@ void Demo6K_Init(Actor* thisx, PlayState* play) { Actor_SetScale(&this->actor, 0.0f); this->initActionFunc = func_8096784C; this->actor.velocity.x = this->actor.velocity.y = this->actor.velocity.z = 0.0f; - Audio_PlayActorSound2(&this->actor, NA_SE_EV_NABALL_VANISH); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_NABALL_VANISH); break; case 12: Actor_SetScale(&this->actor, 0.0f); @@ -388,7 +388,7 @@ void func_809674E0(Demo6K* this, PlayState* play) { this->actor.world.pos.y += (19.0f - this->actor.world.pos.y) * temp; this->actor.world.pos.z += (1613.0f - this->actor.world.pos.z) * temp; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_FANTOM_FIRE - SFX_FLAG); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_FANTOM_FIRE - SFX_FLAG); } Lights_PointNoGlowSetInfo(&this->lightInfo, this->actor.world.pos.x, this->actor.world.pos.y, @@ -506,7 +506,7 @@ void func_80967BF8(Player* player, PlayState* play) { } void func_80967DBC(Demo6K* this, PlayState* play) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_GANON_ATTACK_DEMO - SFX_FLAG); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_GANON_ATTACK_DEMO - SFX_FLAG); this->timer2++; @@ -520,13 +520,13 @@ void func_80967DBC(Demo6K* this, PlayState* play) { if (this->timer2 > 104) { func_80967BF8(GET_PLAYER(play), play); Actor_Kill(&this->actor); - Audio_PlayActorSound2(&GET_PLAYER(play)->actor, NA_SE_EN_FANTOM_HIT_THUNDER); + Audio_PlayActorSfx2(&GET_PLAYER(play)->actor, NA_SE_EN_FANTOM_HIT_THUNDER); } else if (this->timer2 > 94) { Actor_SetScale(&this->actor, this->actor.scale.x + 0.03f); if (this->timer2 == 95) { osSyncPrintf(VT_FGCOL(CYAN) " NA_SE_EN_GANON_FIRE_DEMO\n" VT_RST); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_GANON_FIRE_DEMO); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_GANON_FIRE_DEMO); } } diff --git a/src/overlays/actors/ovl_Demo_Du/z_demo_du.c b/src/overlays/actors/ovl_Demo_Du/z_demo_du.c index 5f709f8092..f9e253ea51 100644 --- a/src/overlays/actors/ovl_Demo_Du/z_demo_du.c +++ b/src/overlays/actors/ovl_Demo_Du/z_demo_du.c @@ -320,8 +320,8 @@ void DemoDu_CsPlaySfx_DaruniaHitsLink(PlayState* play) { s32 pad; func_80078914(&player->actor.projectedPos, NA_SE_EN_DARUNIA_HIT_LINK); - Audio_PlaySoundGeneral(NA_SE_VO_LI_DAMAGE_S_KID, &player->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_VO_LI_DAMAGE_S_KID, &player->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } // Cutscene: Darunia gives Link the Goron's Ruby. @@ -335,8 +335,8 @@ void DemoDu_CsPlaySfx_LinkEscapeFromGorons(PlayState* play) { if (play->csCtx.frames == 1400) { Player* player = GET_PLAYER(play); - Audio_PlaySoundGeneral(NA_SE_VO_LI_FALL_L_KID, &player->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_VO_LI_FALL_L_KID, &player->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } } @@ -346,8 +346,8 @@ void DemoDu_CsPlaySfx_LinkSurprised(PlayState* play) { if (play->csCtx.frames == 174) { Player* player = GET_PLAYER(play); - Audio_PlaySoundGeneral(NA_SE_VO_LI_SURPRISE_KID, &player->actor.projectedPos, 4U, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_VO_LI_SURPRISE_KID, &player->actor.projectedPos, 4U, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } } diff --git a/src/overlays/actors/ovl_Demo_Effect/z_demo_effect.c b/src/overlays/actors/ovl_Demo_Effect/z_demo_effect.c index f91f5fcd66..5168c3a293 100644 --- a/src/overlays/actors/ovl_Demo_Effect/z_demo_effect.c +++ b/src/overlays/actors/ovl_Demo_Effect/z_demo_effect.c @@ -644,7 +644,7 @@ void DemoEffect_UpdateGetItem(DemoEffect* this, PlayState* play) { switch (play->csCtx.npcActions[this->csActionId]->action) { case 2: if (gSaveContext.entranceIndex == ENTR_TOKINOMA_0) { - Audio_PlayActorSound2(thisx, NA_SE_EV_MEDAL_APPEAR_L - SFX_FLAG); + Audio_PlayActorSfx2(thisx, NA_SE_EV_MEDAL_APPEAR_L - SFX_FLAG); } else { func_800788CC(NA_SE_EV_MEDAL_APPEAR_S - SFX_FLAG); } @@ -659,13 +659,13 @@ void DemoEffect_UpdateGetItem(DemoEffect* this, PlayState* play) { this->actor.shape.rot.y += this->getItem.rotation; } if (gSaveContext.entranceIndex == ENTR_TOKINOMA_0) { - Audio_PlayActorSound2(thisx, NA_SE_EV_MEDAL_APPEAR_L - SFX_FLAG); + Audio_PlayActorSfx2(thisx, NA_SE_EV_MEDAL_APPEAR_L - SFX_FLAG); } else { func_800788CC(NA_SE_EV_MEDAL_APPEAR_S - SFX_FLAG); } break; case 4: - Audio_PlayActorSound2(thisx, NA_SE_EV_MEDAL_APPEAR_S - SFX_FLAG); + Audio_PlayActorSfx2(thisx, NA_SE_EV_MEDAL_APPEAR_S - SFX_FLAG); break; } } @@ -854,7 +854,7 @@ void DemoEffect_UpdateTriforceSpot(DemoEffect* this, PlayState* play) { if (gSaveContext.entranceIndex == ENTR_HIRAL_DEMO_0 && gSaveContext.sceneSetupIndex == 6 && play->csCtx.frames == 143) { - Audio_PlayActorSound2(&this->actor, NA_SE_IT_DM_RING_EXPLOSION); + Audio_PlayActorSfx2(&this->actor, NA_SE_IT_DM_RING_EXPLOSION); } } } @@ -1069,15 +1069,15 @@ void DemoEffect_UpdateLightEffect(DemoEffect* this, PlayState* play) { } if (play->sceneNum == SCENE_SPOT04 && gSaveContext.sceneSetupIndex == 6 && play->csCtx.frames == 197) { - Audio_PlayActorSound2(&this->actor, NA_SE_EV_WHITE_OUT); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_WHITE_OUT); } if (play->sceneNum == SCENE_SPOT16 && gSaveContext.sceneSetupIndex == 5) { if (!DemoEffect_CheckCsAction(this, play, 1)) { - Audio_PlayActorSound2(&this->actor, NA_SE_EV_LIGHT_GATHER - SFX_FLAG); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_LIGHT_GATHER - SFX_FLAG); } if (play->csCtx.frames == 640) { - Audio_PlayActorSound2(&this->actor, NA_SE_EV_WHITE_OUT); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_WHITE_OUT); } if (0) {} @@ -1085,10 +1085,10 @@ void DemoEffect_UpdateLightEffect(DemoEffect* this, PlayState* play) { if (play->sceneNum == SCENE_SPOT08 && gSaveContext.sceneSetupIndex == 4) { if (!DemoEffect_CheckCsAction(this, play, 1)) { - Audio_PlayActorSound2(&this->actor, NA_SE_EV_LIGHT_GATHER - SFX_FLAG); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_LIGHT_GATHER - SFX_FLAG); } if (play->csCtx.frames == 648) { - Audio_PlayActorSound2(&this->actor, NA_SE_EV_WHITE_OUT); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_WHITE_OUT); } // Necessary to match @@ -1099,13 +1099,13 @@ void DemoEffect_UpdateLightEffect(DemoEffect* this, PlayState* play) { if (1) {} if (play->csCtx.npcActions[this->csActionId]->action == 2) { - Audio_PlayActorSound2(&this->actor, NA_SE_EV_LIGHT_GATHER - SFX_FLAG); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_LIGHT_GATHER - SFX_FLAG); } } if (play->sceneNum == SCENE_DAIYOUSEI_IZUMI || play->sceneNum == SCENE_YOUSEI_IZUMI_YOKO) { if (play->csCtx.npcActions[this->csActionId]->action == 2) { - Audio_PlayActorSound2(&this->actor, NA_SE_EV_LIGHT_GATHER - SFX_FLAG); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_LIGHT_GATHER - SFX_FLAG); } } } @@ -1155,22 +1155,22 @@ void DemoEffect_UpdateGodLgtDin(DemoEffect* this, PlayState* play) { switch (gSaveContext.sceneSetupIndex) { case 4: if (play->csCtx.frames == 288) { - Audio_PlayActorSound2(&this->actor, NA_SE_IT_DM_FLYING_GOD_PASS); + Audio_PlayActorSfx2(&this->actor, NA_SE_IT_DM_FLYING_GOD_PASS); } if (play->csCtx.frames == 635) { - Audio_PlayActorSound2(&this->actor, NA_SE_IT_DM_FLYING_GOD_PASS); + Audio_PlayActorSfx2(&this->actor, NA_SE_IT_DM_FLYING_GOD_PASS); } break; case 6: if (play->csCtx.frames == 55) { - Audio_PlayActorSound2(&this->actor, NA_SE_IT_DM_FLYING_GOD_DASH); + Audio_PlayActorSfx2(&this->actor, NA_SE_IT_DM_FLYING_GOD_DASH); } break; case 11: if (play->csCtx.frames == 350) { - Audio_PlayActorSound2(&this->actor, NA_SE_IT_DM_FLYING_GOD_DASH); + Audio_PlayActorSfx2(&this->actor, NA_SE_IT_DM_FLYING_GOD_DASH); } break; } @@ -1210,19 +1210,19 @@ void DemoEffect_UpdateGodLgtNayru(DemoEffect* this, PlayState* play) { switch (gSaveContext.sceneSetupIndex) { case 4: if (play->csCtx.frames == 298) { - Audio_PlayActorSound2(&this->actor, NA_SE_IT_DM_FLYING_GOD_PASS); + Audio_PlayActorSfx2(&this->actor, NA_SE_IT_DM_FLYING_GOD_PASS); } break; case 6: if (play->csCtx.frames == 105) { - Audio_PlayActorSound2(&this->actor, NA_SE_IT_DM_FLYING_GOD_DASH); + Audio_PlayActorSfx2(&this->actor, NA_SE_IT_DM_FLYING_GOD_DASH); } break; case 11: if (play->csCtx.frames == 360) { - Audio_PlayActorSound2(&this->actor, NA_SE_IT_DM_FLYING_GOD_DASH); + Audio_PlayActorSfx2(&this->actor, NA_SE_IT_DM_FLYING_GOD_DASH); } break; } @@ -1230,7 +1230,7 @@ void DemoEffect_UpdateGodLgtNayru(DemoEffect* this, PlayState* play) { if (gSaveContext.entranceIndex == ENTR_SPOT16_0 && gSaveContext.sceneSetupIndex == 4) { if (play->csCtx.frames == 72) { - Audio_PlayActorSound2(&this->actor, NA_SE_IT_DM_FLYING_GOD_DASH); + Audio_PlayActorSfx2(&this->actor, NA_SE_IT_DM_FLYING_GOD_DASH); } if (play->csCtx.frames == 80) { Audio_PlayCutsceneEffectsSequence(SEQ_CS_EFFECTS_NAYRU_MAGIC); @@ -1262,7 +1262,7 @@ void DemoEffect_UpdateGodLgtFarore(DemoEffect* this, PlayState* play) { lgtShower->actor.scale.z = 0.23f; } - Audio_PlayActorSound2(&this->actor, NA_SE_IT_DM_FLYING_GOD_DASH); + Audio_PlayActorSfx2(&this->actor, NA_SE_IT_DM_FLYING_GOD_DASH); Audio_PlayCutsceneEffectsSequence(SEQ_CS_EFFECTS_FARORE_MAGIC); } @@ -1270,19 +1270,19 @@ void DemoEffect_UpdateGodLgtFarore(DemoEffect* this, PlayState* play) { switch (gSaveContext.sceneSetupIndex) { case 4: if (play->csCtx.frames == 315) { - Audio_PlayActorSound2(&this->actor, NA_SE_IT_DM_FLYING_GOD_PASS); + Audio_PlayActorSfx2(&this->actor, NA_SE_IT_DM_FLYING_GOD_PASS); } break; case 6: if (play->csCtx.frames == 80) { - Audio_PlayActorSound2(&this->actor, NA_SE_IT_DM_FLYING_GOD_DASH); + Audio_PlayActorSfx2(&this->actor, NA_SE_IT_DM_FLYING_GOD_DASH); } break; case 11: if (play->csCtx.frames == 370) { - Audio_PlayActorSound2(&this->actor, NA_SE_IT_DM_FLYING_GOD_DASH); + Audio_PlayActorSfx2(&this->actor, NA_SE_IT_DM_FLYING_GOD_DASH); } break; } @@ -1969,7 +1969,7 @@ void DemoEffect_DrawTriforceSpot(Actor* thisx, PlayState* play) { Gfx_SetupDL_25Xlu(play->state.gfxCtx); if (this->triforceSpot.lightColumnOpacity > 0) { - Audio_PlayActorSound2(&this->actor, NA_SE_EV_AURORA - SFX_FLAG); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_AURORA - SFX_FLAG); Matrix_Push(); Matrix_Scale(1.0f, 2.4f, 1.0f, MTXMODE_APPLY); gSPMatrix(POLY_XLU_DISP++, Matrix_NewMtx(play->state.gfxCtx, "../z_demo_effect.c", 3011), @@ -1986,7 +1986,7 @@ void DemoEffect_DrawTriforceSpot(Actor* thisx, PlayState* play) { } if (this->triforceSpot.triforceSpotOpacity != 0) { - Audio_PlayActorSound2(&this->actor, NA_SE_EV_TRIFORCE - SFX_FLAG); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_TRIFORCE - SFX_FLAG); gSPMatrix(POLY_XLU_DISP++, Matrix_NewMtx(play->state.gfxCtx, "../z_demo_effect.c", 3042), G_MTX_NOPUSH | G_MTX_LOAD | G_MTX_MODELVIEW); diff --git a/src/overlays/actors/ovl_Demo_Ext/z_demo_ext.c b/src/overlays/actors/ovl_Demo_Ext/z_demo_ext.c index 780168c190..8552b6b3e2 100644 --- a/src/overlays/actors/ovl_Demo_Ext/z_demo_ext.c +++ b/src/overlays/actors/ovl_Demo_Ext/z_demo_ext.c @@ -45,8 +45,8 @@ void DemoExt_Init(Actor* thisx, PlayState* play) { void DemoExt_PlayVortexSFX(DemoExt* this) { if (this->alphaTimer <= (kREG(35) + 40.0f) - 15.0f) { - Audio_PlaySoundGeneral(NA_SE_EV_FANTOM_WARP_L - SFX_FLAG, &this->actor.projectedPos, 4, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EV_FANTOM_WARP_L - SFX_FLAG, &this->actor.projectedPos, 4, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } } diff --git a/src/overlays/actors/ovl_Demo_Gj/z_demo_gj.c b/src/overlays/actors/ovl_Demo_Gj/z_demo_gj.c index d350ac8582..d8e7b8eee5 100644 --- a/src/overlays/actors/ovl_Demo_Gj/z_demo_gj.c +++ b/src/overlays/actors/ovl_Demo_Gj/z_demo_gj.c @@ -137,7 +137,7 @@ void DemoGj_Destroy(Actor* thisx, PlayState* play) { } void DemoGj_PlayExplosionSfx(DemoGj* this, PlayState* play) { - SoundSource_PlaySfxAtFixedWorldPos(play, &this->dyna.actor.world.pos, 50, NA_SE_EV_GRAVE_EXPLOSION); + SfxSource_PlaySfxAtFixedWorldPos(play, &this->dyna.actor.world.pos, 50, NA_SE_EV_GRAVE_EXPLOSION); } void DemoGj_SpawnSmoke(PlayState* play, Vec3f* pos, f32 arg2) { diff --git a/src/overlays/actors/ovl_Demo_Go/z_demo_go.c b/src/overlays/actors/ovl_Demo_Go/z_demo_go.c index 7cc11aa099..31108fcc8d 100644 --- a/src/overlays/actors/ovl_Demo_Go/z_demo_go.c +++ b/src/overlays/actors/ovl_Demo_Go/z_demo_go.c @@ -75,7 +75,7 @@ void func_8097C8A8(DemoGo* this, PlayState* play) { if ((thisx->params == 0) || (thisx->params == 1)) { SkinMatrix_Vec3fMtxFMultXYZW(&play->viewProjectionMtxF, &thisx->world.pos, &sp20, &sp1C); - SoundSource_PlaySfxAtFixedWorldPos(play, &sp20, 20, NA_SE_EV_OBJECT_FALL); + SfxSource_PlaySfxAtFixedWorldPos(play, &sp20, 20, NA_SE_EV_OBJECT_FALL); } } diff --git a/src/overlays/actors/ovl_Demo_Gt/z_demo_gt.c b/src/overlays/actors/ovl_Demo_Gt/z_demo_gt.c index 083aa26a62..071b8821eb 100644 --- a/src/overlays/actors/ovl_Demo_Gt/z_demo_gt.c +++ b/src/overlays/actors/ovl_Demo_Gt/z_demo_gt.c @@ -24,11 +24,11 @@ void DemoGt_PlayEarthquakeSfx(void) { } void DemoGt_PlayExplosion1Sfx(PlayState* play, Vec3f* pos) { - SoundSource_PlaySfxAtFixedWorldPos(play, pos, 60, NA_SE_IT_BOMB_EXPLOSION); + SfxSource_PlaySfxAtFixedWorldPos(play, pos, 60, NA_SE_IT_BOMB_EXPLOSION); } void DemoGt_PlayExplosion2Sfx(PlayState* play, Vec3f* pos) { - SoundSource_PlaySfxAtFixedWorldPos(play, pos, 60, NA_SE_EV_GRAVE_EXPLOSION); + SfxSource_PlaySfxAtFixedWorldPos(play, pos, 60, NA_SE_EV_GRAVE_EXPLOSION); } void DemoGt_Rumble(PlayState* play) { diff --git a/src/overlays/actors/ovl_Demo_Ik/z_demo_ik.c b/src/overlays/actors/ovl_Demo_Ik/z_demo_ik.c index 5ed9b3216b..4971b6846a 100644 --- a/src/overlays/actors/ovl_Demo_Ik/z_demo_ik.c +++ b/src/overlays/actors/ovl_Demo_Ik/z_demo_ik.c @@ -86,24 +86,24 @@ s32 DemoIk_GetIndexFromParams(s32 params) { return ret; } -void DemoIk_Type1PlaySound(DemoIk* this) { +void DemoIk_Type1PlaySfx(DemoIk* this) { switch (this->actor.params) { case 0: if (Animation_OnFrame(&this->skelAnime, 5.0f)) { - Audio_PlaySoundGeneral(NA_SE_EN_IRONNACK_ARMOR_LAND1_DEMO, &this->actor.projectedPos, 4, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EN_IRONNACK_ARMOR_LAND1_DEMO, &this->actor.projectedPos, 4, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } break; case 1: if (Animation_OnFrame(&this->skelAnime, 10.0f)) { - Audio_PlaySoundGeneral(NA_SE_EN_IRONNACK_ARMOR_LAND3_DEMO, &this->actor.projectedPos, 4, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EN_IRONNACK_ARMOR_LAND3_DEMO, &this->actor.projectedPos, 4, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } break; case 2: if (Animation_OnFrame(&this->skelAnime, 9.0f)) { - Audio_PlaySoundGeneral(NA_SE_EN_IRONNACK_ARMOR_LAND2_DEMO, &this->actor.projectedPos, 4, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EN_IRONNACK_ARMOR_LAND2_DEMO, &this->actor.projectedPos, 4, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } break; } @@ -248,7 +248,7 @@ void DemoIk_Type1Action1(DemoIk* this, PlayState* play) { void DemoIk_Type1Action2(DemoIk* this, PlayState* play) { DemoIk_UpdateSkelAnime(this); - DemoIk_Type1PlaySound(this); + DemoIk_Type1PlaySfx(this); DemoIk_SetMove(this, play); DemoIk_BgCheck(this, play); DemoIk_SpawnDeadDb(this, play); @@ -322,20 +322,20 @@ void DemoIk_Type2Init(DemoIk* this, PlayState* play) { this->drawMode = 0; } -void DemoIk_Type2PlaySoundOnFrame(DemoIk* this, f32 frame) { +void DemoIk_Type2PlaySfxOnFrame(DemoIk* this, f32 frame) { if (Animation_OnFrame(&this->skelAnime, frame)) { - Audio_PlaySoundGeneral(NA_SE_EN_IRONNACK_ARMOR_OFF_DEMO, &this->actor.projectedPos, 4, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EN_IRONNACK_ARMOR_OFF_DEMO, &this->actor.projectedPos, 4, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } } -void DemoIk_Type2PlaySound(DemoIk* this) { +void DemoIk_Type2PlaySfx(DemoIk* this) { switch (this->actor.params) { case 3: - DemoIk_Type2PlaySoundOnFrame(this, 33.0f); + DemoIk_Type2PlaySfxOnFrame(this, 33.0f); break; case 5: - DemoIk_Type2PlaySoundOnFrame(this, 44.0f); + DemoIk_Type2PlaySfxOnFrame(this, 44.0f); break; } } @@ -398,7 +398,7 @@ void DemoIk_Type2Action1(DemoIk* this, PlayState* play) { void DemoIk_Type2Action2(DemoIk* this, PlayState* play) { DemoIk_UpdateSkelAnime(this); - DemoIk_Type2PlaySound(this); + DemoIk_Type2PlaySfx(this); func_80984048(this, play); } diff --git a/src/overlays/actors/ovl_Demo_Im/z_demo_im.c b/src/overlays/actors/ovl_Demo_Im/z_demo_im.c index c27fa42a70..7423fe5b9a 100644 --- a/src/overlays/actors/ovl_Demo_Im/z_demo_im.c +++ b/src/overlays/actors/ovl_Demo_Im/z_demo_im.c @@ -720,8 +720,8 @@ void func_80986570(DemoIm* this, PlayState* play) { u32 sfxId = SFX_FLAG; sfxId += SurfaceType_GetSfx(&play->colCtx, this->actor.floorPoly, this->actor.floorBgId); - Audio_PlaySoundGeneral(sfxId, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(sfxId, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } } diff --git a/src/overlays/actors/ovl_Demo_Kankyo/z_demo_kankyo.c b/src/overlays/actors/ovl_Demo_Kankyo/z_demo_kankyo.c index d303e5847c..9fed45d6db 100644 --- a/src/overlays/actors/ovl_Demo_Kankyo/z_demo_kankyo.c +++ b/src/overlays/actors/ovl_Demo_Kankyo/z_demo_kankyo.c @@ -253,8 +253,8 @@ void DemoKankyo_Init(Actor* thisx, PlayState* play) { this->sparkleCounter = 0; this->actor.scale.x = this->actor.scale.y = this->actor.scale.z = 1.0f; if (this->actor.params == DEMOKANKYO_WARP_OUT) { - Audio_PlaySoundGeneral(NA_SE_EV_SARIA_MELODY, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EV_SARIA_MELODY, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } break; case DEMOKANKYO_SPARKLES: @@ -406,10 +406,10 @@ void DemoKankyo_UpdateClouds(DemoKankyo* this, PlayState* play) { } void DemoKankyo_UpdateDoorOfTime(DemoKankyo* this, PlayState* play) { - Audio_PlayActorSound2(&this->actor, NA_SE_EV_STONE_STATUE_OPEN - SFX_FLAG); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_STONE_STATUE_OPEN - SFX_FLAG); this->unk_150[0].unk_18 += 1.0f; if (this->unk_150[0].unk_18 >= 102.0f) { - Audio_PlayActorSound2(&this->actor, NA_SE_EV_STONEDOOR_STOP); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_STONEDOOR_STOP); SET_EVENTCHKINF(EVENTCHKINF_4B); Actor_Kill(this->actor.child); DemoKankyo_SetupAction(this, DemoKankyo_KillDoorOfTimeCollision); @@ -800,9 +800,8 @@ void DemoKankyo_DrawWarpSparkles(Actor* thisx, PlayState* play) { this->unk_150[i].unk_22++; } } else { - Audio_PlaySoundGeneral(NA_SE_EV_LINK_WARP_OUT - SFX_FLAG, &gSfxDefaultPos, 4, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EV_LINK_WARP_OUT - SFX_FLAG, &gSfxDefaultPos, 4, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); if (func_800BB2B4(&camPos, &sWarpRoll, &sWarpFoV, sWarpInCameraPoints, &this->unk_150[i].unk_20, &this->unk_150[i].unk_1C) != 0) { this->unk_150[i].unk_22++; diff --git a/src/overlays/actors/ovl_Demo_Kekkai/z_demo_kekkai.c b/src/overlays/actors/ovl_Demo_Kekkai/z_demo_kekkai.c index 8f35f57ad0..594a595515 100644 --- a/src/overlays/actors/ovl_Demo_Kekkai/z_demo_kekkai.c +++ b/src/overlays/actors/ovl_Demo_Kekkai/z_demo_kekkai.c @@ -220,7 +220,7 @@ void DemoKekkai_TrialBarrierDispel(Actor* thisx, PlayState* play) { } else if (this->timer < 50) { this->orbScale = 2.0f; } else if (this->timer == 50) { - Audio_PlayActorSound2(&this->actor, NA_SE_IT_DM_RING_EXPLOSION); + Audio_PlayActorSfx2(&this->actor, NA_SE_IT_DM_RING_EXPLOSION); DemoKekkai_SpawnParticles(this, play); } else { this->orbScale = 0.0f; diff --git a/src/overlays/actors/ovl_Demo_Tre_Lgt/z_demo_tre_lgt.c b/src/overlays/actors/ovl_Demo_Tre_Lgt/z_demo_tre_lgt.c index db2921ba28..dd1eadb1ed 100644 --- a/src/overlays/actors/ovl_Demo_Tre_Lgt/z_demo_tre_lgt.c +++ b/src/overlays/actors/ovl_Demo_Tre_Lgt/z_demo_tre_lgt.c @@ -117,8 +117,8 @@ void func_80993848(DemoTreLgt* this, PlayState* play) { } if ((currentFrame > 30.0f) && !(this->status & 1)) { this->status |= 1; - Audio_PlaySoundGeneral(NA_SE_EV_TRE_BOX_FLASH, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EV_TRE_BOX_FLASH, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } if (SkelCurve_Update(play, &this->skelCurve)) { Actor_Kill(&this->actor); diff --git a/src/overlays/actors/ovl_Door_Ana/z_door_ana.c b/src/overlays/actors/ovl_Door_Ana/z_door_ana.c index 36afd889f2..b66acb12de 100644 --- a/src/overlays/actors/ovl_Door_Ana/z_door_ana.c +++ b/src/overlays/actors/ovl_Door_Ana/z_door_ana.c @@ -115,8 +115,8 @@ void DoorAna_WaitClosed(DoorAna* this, PlayState* play) { if (openGrotto) { this->actor.params &= ~0x0300; DoorAna_SetupAction(this, DoorAna_WaitOpen); - Audio_PlaySoundGeneral(NA_SE_SY_CORRECT_CHIME, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_CORRECT_CHIME, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } func_8002F5F0(&this->actor, play); } diff --git a/src/overlays/actors/ovl_Door_Gerudo/z_door_gerudo.c b/src/overlays/actors/ovl_Door_Gerudo/z_door_gerudo.c index aee6f349f5..173d084507 100644 --- a/src/overlays/actors/ovl_Door_Gerudo/z_door_gerudo.c +++ b/src/overlays/actors/ovl_Door_Gerudo/z_door_gerudo.c @@ -101,7 +101,7 @@ void func_8099485C(DoorGerudo* this, PlayState* play) { this->actionFunc = func_8099496C; gSaveContext.inventory.dungeonKeys[gSaveContext.mapIndex] -= 1; Flags_SetSwitch(play, this->dyna.actor.params & 0x3F); - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EV_CHAIN_KEY_UNLOCK); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EV_CHAIN_KEY_UNLOCK); } else { s32 direction = func_80994750(this, play); @@ -124,7 +124,7 @@ void func_8099485C(DoorGerudo* this, PlayState* play) { void func_8099496C(DoorGerudo* this, PlayState* play) { if (DECR(this->unk_166) == 0) { - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EV_SLIDE_DOOR_OPEN); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EV_SLIDE_DOOR_OPEN); this->actionFunc = func_809949C8; } } diff --git a/src/overlays/actors/ovl_Door_Killer/z_door_killer.c b/src/overlays/actors/ovl_Door_Killer/z_door_killer.c index f65c0611eb..26ccfe851b 100644 --- a/src/overlays/actors/ovl_Door_Killer/z_door_killer.c +++ b/src/overlays/actors/ovl_Door_Killer/z_door_killer.c @@ -353,13 +353,13 @@ void DoorKiller_FallOver(DoorKiller* this, PlayState* play) { (playerPosRelToDoor.z < 100.0f) && (playerPosRelToDoor.z > 0.0f)) { this->hasHitPlayerOrGround |= 1; func_8002F6D4(play, &this->actor, 6.0f, this->actor.yawTowardsPlayer, 6.0f, 16); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_KDOOR_HIT); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_KDOOR_HIT); func_8002F7DC(&player->actor, NA_SE_PL_BODY_HIT); } } if (!(this->hasHitPlayerOrGround & 1) && (this->timer == 2)) { this->hasHitPlayerOrGround |= 1; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_KDOOR_HIT_GND); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_KDOOR_HIT_GND); } } @@ -371,7 +371,7 @@ void DoorKiller_Wobble(DoorKiller* this, PlayState* play) { s32 i; if ((this->timer == 16) || (this->timer == 8)) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_KDOOR_WAVE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_KDOOR_WAVE); } if (this->timer > 0) { @@ -428,13 +428,13 @@ void DoorKiller_Wait(DoorKiller* this, PlayState* play) { } else if (this->colliderCylinder.info.acHitInfo->toucher.dmgFlags & (DMG_HAMMER_SWING | DMG_EXPLOSIVE)) { DoorKiller_SpawnRubble(&this->actor, play); this->actionFunc = DoorKiller_Die; - SoundSource_PlaySfxAtFixedWorldPos(play, &this->actor.world.pos, 20, NA_SE_EN_KDOOR_BREAK); + SfxSource_PlaySfxAtFixedWorldPos(play, &this->actor.world.pos, 20, NA_SE_EN_KDOOR_BREAK); } } else if (Actor_GetCollidedExplosive(play, &this->colliderJntSph.base) != NULL) { // AC sphere: die if hit by explosive DoorKiller_SpawnRubble(&this->actor, play); this->actionFunc = DoorKiller_Die; - SoundSource_PlaySfxAtFixedWorldPos(play, &this->actor.world.pos, 20, NA_SE_EN_KDOOR_BREAK); + SfxSource_PlaySfxAtFixedWorldPos(play, &this->actor.world.pos, 20, NA_SE_EN_KDOOR_BREAK); } else if (!Player_InCsMode(play) && (fabsf(playerPosRelToDoor.y) < 20.0f) && (fabsf(playerPosRelToDoor.x) < 20.0f) && (playerPosRelToDoor.z < 50.0f) && (playerPosRelToDoor.z > 0.0f)) { diff --git a/src/overlays/actors/ovl_Door_Shutter/z_door_shutter.c b/src/overlays/actors/ovl_Door_Shutter/z_door_shutter.c index 1432d8bdc1..c2defefefb 100644 --- a/src/overlays/actors/ovl_Door_Shutter/z_door_shutter.c +++ b/src/overlays/actors/ovl_Door_Shutter/z_door_shutter.c @@ -299,7 +299,7 @@ void DoorShutter_SetupType(DoorShutter* this, PlayState* play) { if (this->doorType == SHUTTER_GOHMA_BLOCK) { this->dyna.actor.velocity.y = 0.0f; this->dyna.actor.gravity = -2.0f; - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EV_SLIDE_DOOR_CLOSE); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EV_SLIDE_DOOR_CLOSE); DoorShutter_SetupAction(this, func_809975C0); } else { DoorShutter_SetupAction(this, func_80997744); @@ -374,9 +374,9 @@ void func_80996B0C(DoorShutter* this, PlayState* play) { Flags_SetSwitch(play, this->dyna.actor.params & 0x3F); if (this->doorType != SHUTTER_BOSS) { gSaveContext.inventory.dungeonKeys[gSaveContext.mapIndex]--; - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EV_CHAIN_KEY_UNLOCK); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EV_CHAIN_KEY_UNLOCK); } else { - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EV_CHAIN_KEY_UNLOCK_B); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EV_CHAIN_KEY_UNLOCK_B); } } } else { @@ -424,7 +424,7 @@ void func_80996C60(DoorShutter* this, PlayState* play) { s32 func_80996D14(DoorShutter* this, PlayState* play) { if (this->unk_16C != 3) { if (this->dyna.actor.velocity.y == 0.0f) { - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EV_SLIDE_DOOR_OPEN); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EV_SLIDE_DOOR_OPEN); func_80996C60(this, play); } Math_StepToF(&this->dyna.actor.velocity.y, 15.0f, 3.0f); @@ -434,7 +434,7 @@ s32 func_80996D14(DoorShutter* this, PlayState* play) { } } else { if (this->unk_166 == 100) { - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EV_BUYODOOR_OPEN); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EV_BUYODOOR_OPEN); func_80996C60(this, play); } if (Math_StepToS(&this->unk_166, 0, 10)) { @@ -448,15 +448,15 @@ s32 func_80996E08(DoorShutter* this, PlayState* play, f32 arg2) { if (this->unk_170 == 1.0f - arg2) { if (this->unk_16C != 3) { if (arg2 == 1.0f) { - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EV_METALDOOR_CLOSE); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EV_METALDOOR_CLOSE); } else { - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EV_METALDOOR_OPEN); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EV_METALDOOR_OPEN); } } else { if (arg2 == 1.0f) { - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EV_BUYOSHUTTER_CLOSE); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EV_BUYOSHUTTER_CLOSE); } else { - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EV_BUYOSHUTTER_OPEN); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EV_BUYOSHUTTER_OPEN); } } } @@ -495,13 +495,13 @@ void func_80997004(DoorShutter* this, PlayState* play) { this->dyna.actor.velocity.y = 30.0f; } if (this->unk_16C != 3) { - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EV_SLIDE_DOOR_CLOSE); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EV_SLIDE_DOOR_CLOSE); DoorShutter_SetupAction(this, func_809973E8); } else { - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EV_BUYODOOR_CLOSE); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EV_BUYODOOR_CLOSE); if ((this->doorType == SHUTTER_FRONT_SWITCH || this->doorType == SHUTTER_FRONT_SWITCH_BACK_CLEAR) && !Flags_GetSwitch(play, this->dyna.actor.params & 0x3F)) { - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EV_BUYOSHUTTER_CLOSE); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EV_BUYOSHUTTER_CLOSE); } DoorShutter_SetupAction(this, func_80997528); } @@ -571,7 +571,7 @@ void func_809973E8(DoorShutter* this, PlayState* play) { Actor_SpawnFloorDustRing(play, &this->dyna.actor, &this->dyna.actor.world.pos, 45.0f, 10, 8.0f, 500, 10, false); } - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EV_STONE_BOUND); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EV_STONE_BOUND); quakeId = Quake_Add(Play_GetCamera(play, CAM_ID_MAIN), 3); Quake_SetSpeed(quakeId, -32536); Quake_SetQuakeValues(quakeId, 2, 0, 0, 0); @@ -603,7 +603,7 @@ void func_809975C0(DoorShutter* this, PlayState* play) { BossGoma* parent = (BossGoma*)this->dyna.actor.parent; this->unk_164 = 10; - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EV_STONE_BOUND); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EV_STONE_BOUND); func_8099803C(play, 2, 10, parent->subCamId); Actor_SpawnFloorDustRing(play, &this->dyna.actor, &this->dyna.actor.world.pos, 70.0f, 20, 8.0f, 500, 10, true); diff --git a/src/overlays/actors/ovl_Door_Warp1/z_door_warp1.c b/src/overlays/actors/ovl_Door_Warp1/z_door_warp1.c index 4621934a12..d4b0d6d11a 100644 --- a/src/overlays/actors/ovl_Door_Warp1/z_door_warp1.c +++ b/src/overlays/actors/ovl_Door_Warp1/z_door_warp1.c @@ -265,7 +265,7 @@ void DoorWarp1_SetupPurpleCrystal(DoorWarp1* this, PlayState* play) { this->actor.scale.z = 0.09f; this->crystalAlpha = 255.0f; } else { - Audio_PlayActorSound2(&this->actor, NA_SE_EV_SHUT_BY_CRYSTAL); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_SHUT_BY_CRYSTAL); } DoorWarp1_SetupAction(this, DoorWarp1_PurpleCrystal); } @@ -398,7 +398,7 @@ void func_809995D4(DoorWarp1* this, PlayState* play) { } void DoorWarp1_WarpAppear(DoorWarp1* this, PlayState* play) { - Audio_PlayActorSound2(&this->actor, NA_SE_EV_WARP_HOLE - SFX_FLAG); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_WARP_HOLE - SFX_FLAG); Math_SmoothStepToF(&this->lightRayAlpha, 255.0f, 0.4f, 10.0f, 0.01f); Math_SmoothStepToF(&this->warpAlpha, 255.0f, 0.4f, 10.0f, 0.01f); @@ -433,7 +433,7 @@ void DoorWarp1_WarpAppear(DoorWarp1* this, PlayState* play) { void func_809998A4(DoorWarp1* this, PlayState* play) { if (this->lightRayAlpha != 0.0f) { - Audio_PlayActorSound2(&this->actor, NA_SE_EV_WARP_HOLE - SFX_FLAG); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_WARP_HOLE - SFX_FLAG); } Math_SmoothStepToF(&this->lightRayAlpha, 0.0f, 0.1f, 2.0f, 0.01f); Math_SmoothStepToF(&this->warpAlpha, 0.0f, 0.1f, 2.0f, 0.01f); @@ -456,13 +456,13 @@ s32 DoorWarp1_PlayerInRange(DoorWarp1* this, PlayState* play) { void DoorWarp1_ChildWarpIdle(DoorWarp1* this, PlayState* play) { Player* player; - Audio_PlayActorSound2(&this->actor, NA_SE_EV_WARP_HOLE - SFX_FLAG); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_WARP_HOLE - SFX_FLAG); if (DoorWarp1_PlayerInRange(this, play)) { player = GET_PLAYER(play); - Audio_PlaySoundGeneral(NA_SE_EV_LINK_WARP, &player->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EV_LINK_WARP, &player->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); OnePointCutscene_Init(play, 0x25E7, 999, &this->actor, CAM_ID_MAIN); func_8002DF54(play, &this->actor, 10); @@ -536,7 +536,7 @@ void DoorWarp1_ChildWarpOut(DoorWarp1* this, PlayState* play) { } void DoorWarp1_RutoWarpIdle(DoorWarp1* this, PlayState* play) { - Audio_PlayActorSound2(&this->actor, NA_SE_EV_WARP_HOLE - SFX_FLAG); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_WARP_HOLE - SFX_FLAG); if (this->rutoWarpState != WARP_BLUE_RUTO_STATE_INITIAL && DoorWarp1_PlayerInRange(this, play)) { this->rutoWarpState = WARP_BLUE_RUTO_STATE_ENTERED; @@ -575,8 +575,8 @@ void func_80999EE0(DoorWarp1* this, PlayState* play) { void func_80999FE4(DoorWarp1* this, PlayState* play) { if (Message_GetState(&play->msgCtx) == TEXT_STATE_NONE) { - Audio_PlaySoundGeneral(NA_SE_EV_LINK_WARP, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EV_LINK_WARP, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); OnePointCutscene_Init(play, 0x25E9, 999, &this->actor, CAM_ID_MAIN); // Using `CAM_ID_NONE` here defaults to the active camera Play_CopyCamera(play, CAM_ID_NONE, sRutoWarpSubCamId); @@ -622,7 +622,7 @@ void DoorWarp1_RutoWarpOut(DoorWarp1* this, PlayState* play) { } void func_8099A3A4(DoorWarp1* this, PlayState* play) { - Audio_PlayActorSound2(&this->actor, NA_SE_EV_WARP_HOLE - SFX_FLAG); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_WARP_HOLE - SFX_FLAG); Math_SmoothStepToF(&this->lightRayAlpha, 255.0f, 0.2f, 2.0f, 0.1f); Math_SmoothStepToF(&this->warpAlpha, 255.0f, 0.2f, 2.0f, 0.1f); @@ -642,7 +642,7 @@ void func_8099A3A4(DoorWarp1* this, PlayState* play) { void DoorWarp1_AdultWarpIdle(DoorWarp1* this, PlayState* play) { Player* player; - Audio_PlayActorSound2(&this->actor, NA_SE_EV_WARP_HOLE - SFX_FLAG); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_WARP_HOLE - SFX_FLAG); if (DoorWarp1_PlayerInRange(this, play)) { player = GET_PLAYER(play); @@ -663,8 +663,8 @@ void func_8099A508(DoorWarp1* this, PlayState* play) { this->unk_1B2--; return; } - Audio_PlaySoundGeneral(NA_SE_EV_LINK_WARP, &player->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EV_LINK_WARP, &player->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); Animation_ChangeImpl(&this->skelAnime, &gWarpCrystalAnim, 1.0f, Animation_GetLastFrame(&gWarpCrystalAnim), Animation_GetLastFrame(&gWarpCrystalAnim), ANIMMODE_ONCE, 40.0f, 1); @@ -847,7 +847,7 @@ void DoorWarp1_Destination(DoorWarp1* this, PlayState* play) { this->warpAlpha = 0.0f; DoorWarp1_SetupAction(this, DoorWarp1_DoNothing); } - Audio_PlayActorSound2(&this->actor, NA_SE_EV_WARP_HOLE - SFX_FLAG); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_WARP_HOLE - SFX_FLAG); } void DoorWarp1_DoNothing(DoorWarp1* this, PlayState* play) { @@ -861,7 +861,7 @@ void func_8099B020(DoorWarp1* this, PlayState* play) { Math_StepToF(&this->unk_194, 2.0f, 0.01f); Math_StepToF(&this->unk_198, 10.0f, 0.02f); } - Audio_PlayActorSound2(&this->actor, NA_SE_EV_WARP_HOLE - SFX_FLAG); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_WARP_HOLE - SFX_FLAG); } void DoorWarp1_Update(Actor* thisx, PlayState* play) { diff --git a/src/overlays/actors/ovl_En_Am/z_en_am.c b/src/overlays/actors/ovl_En_Am/z_en_am.c index a0fad6cc7d..9bd69031ba 100644 --- a/src/overlays/actors/ovl_En_Am/z_en_am.c +++ b/src/overlays/actors/ovl_En_Am/z_en_am.c @@ -266,7 +266,7 @@ void EnAm_SpawnEffects(EnAm* this, PlayState* play) { EffectSsKiraKira_SpawnSmall(play, &pos, &velocity, &accel, &primColor, &envColor); } - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EN_AMOS_WALK); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EN_AMOS_WALK); Actor_SpawnFloorDustRing(play, &this->dyna.actor, &this->dyna.actor.world.pos, 4.0f, 3, 8.0f, 300, 15, false); } @@ -338,7 +338,7 @@ void EnAm_SetupRecoilFromDamage(EnAm* this, PlayState* play) { Animation_GetLastFrame(&gArmosDamagedAnim) - 6.0f, ANIMMODE_ONCE, 0.0f); this->behavior = AM_BEHAVIOR_DAMAGED; this->dyna.actor.world.rot.y = this->dyna.actor.yawTowardsPlayer; - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EN_AMOS_DAMAGE); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EN_AMOS_DAMAGE); if (EnAm_CanMove(this, play, -6.0f, this->dyna.actor.world.rot.y)) { this->dyna.actor.speedXZ = -6.0f; @@ -377,8 +377,8 @@ void EnAm_Sleep(EnAm* this, PlayState* play) { this->hurtCollider.base.acFlags &= ~AC_HIT; if (this->textureBlend == 0) { - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EN_AMOS_WAVE); - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EN_AMOS_VOICE); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EN_AMOS_WAVE); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EN_AMOS_VOICE); Actor_SetColorFilter(&this->dyna.actor, 0x4000, 255, 0, 8); } @@ -419,7 +419,7 @@ void EnAm_Sleep(EnAm* this, PlayState* play) { Math_SmoothStepToF(&this->dyna.actor.speedXZ, 0.0f, 1.0f, 1.0f, 0.0f); if (this->dyna.actor.speedXZ != 0.0f) { - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EV_ROCK_SLIDE - SFX_FLAG); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EV_ROCK_SLIDE - SFX_FLAG); } this->dyna.unk_154 = 0.0f; @@ -588,7 +588,7 @@ void EnAm_Cooldown(EnAm* this, PlayState* play) { if (this->unk_258 == 0) { EnAm_SetupLunge(this); - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EN_AMOS_VOICE); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EN_AMOS_VOICE); } this->dyna.actor.shape.rot.y = this->dyna.actor.world.rot.y; @@ -672,7 +672,7 @@ void EnAm_Statue(EnAm* this, PlayState* play) { } } else { this->unk_258 -= 0x800; - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EV_ROCK_SLIDE - SFX_FLAG); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EV_ROCK_SLIDE - SFX_FLAG); if (this->dyna.unk_150 < 0.0f) { temp158f = this->dyna.unk_158 + 0x8000; @@ -699,7 +699,7 @@ void EnAm_Statue(EnAm* this, PlayState* play) { } if (this->dyna.actor.bgCheckFlags & BGCHECKFLAG_GROUND_TOUCH) { - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EV_BLOCK_BOUND); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EV_BLOCK_BOUND); } this->dyna.unk_150 = this->dyna.unk_154 = 0.0f; @@ -724,7 +724,7 @@ void EnAm_SetupStunned(EnAm* this, PlayState* play) { } this->behavior = AM_BEHAVIOR_STUNNED; - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EN_GOMA_JR_FREEZE); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EN_GOMA_JR_FREEZE); EnAm_SetupAction(this, EnAm_Stunned); } @@ -864,7 +864,7 @@ void EnAm_Update(Actor* thisx, PlayState* play) { bomb->timer = 0; } - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EN_AMOS_DEAD); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EN_AMOS_DEAD); Item_DropCollectibleRandom(play, &this->dyna.actor, &this->dyna.actor.world.pos, 0xA0); for (i = 9; i >= 0; i--) { @@ -910,7 +910,7 @@ void EnAm_Update(Actor* thisx, PlayState* play) { Player* player = GET_PLAYER(play); if (this->hitCollider.base.at == &player->actor) { - Audio_PlayActorSound2(&player->actor, NA_SE_PL_BODY_HIT); + Audio_PlayActorSfx2(&player->actor, NA_SE_PL_BODY_HIT); } } CollisionCheck_SetAT(play, &play->colChkCtx, &this->hitCollider.base); diff --git a/src/overlays/actors/ovl_En_Anubice/z_en_anubice.c b/src/overlays/actors/ovl_En_Anubice/z_en_anubice.c index 09b79234b4..bec067a2f6 100644 --- a/src/overlays/actors/ovl_En_Anubice/z_en_anubice.c +++ b/src/overlays/actors/ovl_En_Anubice/z_en_anubice.c @@ -376,7 +376,7 @@ void EnAnubice_Update(Actor* thisx, PlayState* play) { Actor_ChangeCategory(play, &play->actorCtx, &this->actor, ACTORCAT_PROP); this->actor.flags &= ~ACTOR_FLAG_0; Enemy_StartFinishingBlow(play, &this->actor); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_ANUBIS_DEAD); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_ANUBIS_DEAD); this->actionFunc = EnAnubice_SetupDie; return; } @@ -388,7 +388,7 @@ void EnAnubice_Update(Actor* thisx, PlayState* play) { Actor_ChangeCategory(play, &play->actorCtx, &this->actor, ACTORCAT_PROP); this->actor.flags &= ~ACTOR_FLAG_0; Enemy_StartFinishingBlow(play, &this->actor); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_ANUBIS_DEAD); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_ANUBIS_DEAD); this->actionFunc = EnAnubice_SetupDie; return; } @@ -412,7 +412,7 @@ void EnAnubice_Update(Actor* thisx, PlayState* play) { this->knockbackRecoveryVelocity.x = -rotatedKnockbackVelocity.x; this->knockbackRecoveryVelocity.z = -rotatedKnockbackVelocity.z; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_NUTS_CUTBODY); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_NUTS_CUTBODY); } } diff --git a/src/overlays/actors/ovl_En_Anubice_Fire/z_en_anubice_fire.c b/src/overlays/actors/ovl_En_Anubice_Fire/z_en_anubice_fire.c index c758d48be2..f574e52f9f 100644 --- a/src/overlays/actors/ovl_En_Anubice_Fire/z_en_anubice_fire.c +++ b/src/overlays/actors/ovl_En_Anubice_Fire/z_en_anubice_fire.c @@ -110,7 +110,7 @@ void func_809B27D8(EnAnubiceFire* this, PlayState* play) { Actor_Kill(&this->actor); } else if ((this->actor.params == 0) && (this->cylinder.base.atFlags & AT_BOUNCED)) { if (Player_HasMirrorShieldEquipped(play)) { - Audio_PlayActorSound2(&this->actor, NA_SE_IT_SHIELD_REFLECT_SW); + Audio_PlayActorSfx2(&this->actor, NA_SE_IT_SHIELD_REFLECT_SW); this->cylinder.base.atFlags &= ~(AT_HIT | AT_BOUNCED | AT_TYPE_ENEMY); this->cylinder.base.atFlags |= AT_TYPE_PLAYER; this->cylinder.info.toucher.dmgFlags = DMG_DEKU_STICK; @@ -123,7 +123,7 @@ void func_809B27D8(EnAnubiceFire* this, PlayState* play) { this->unk_15A = 0; EffectSsBomb2_SpawnLayered(play, &this->actor.world.pos, &sp78, &sp84, 10, 5); this->actor.velocity.x = this->actor.velocity.y = this->actor.velocity.z = 0.0f; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_ANUBIS_FIREBOMB); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_ANUBIS_FIREBOMB); this->actionFunc = func_809B2B48; } } else if (!(this->scale < .4f)) { @@ -137,7 +137,7 @@ void func_809B27D8(EnAnubiceFire* this, PlayState* play) { pos.z = this->actor.world.pos.z; EffectSsKiraKira_SpawnDispersed(play, &pos, &velocity, &accel, &primColor, &envColor, scale, life); } - Audio_PlayActorSound2(&this->actor, NA_SE_EN_ANUBIS_FIRE - SFX_FLAG); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_ANUBIS_FIRE - SFX_FLAG); } } @@ -209,7 +209,7 @@ void EnAnubiceFire_Update(Actor* thisx, PlayState* play) { if (BgCheck_SphVsFirstPoly(&play->colCtx, &this->actor.world.pos, 30.0f)) { this->actor.velocity.x = this->actor.velocity.y = this->actor.velocity.z = 0.0f; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_ANUBIS_FIREBOMB); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_ANUBIS_FIREBOMB); this->actionFunc = func_809B2B48; } } diff --git a/src/overlays/actors/ovl_En_Arrow/z_en_arrow.c b/src/overlays/actors/ovl_En_Arrow/z_en_arrow.c index 411edcd259..7b9b59d9b6 100644 --- a/src/overlays/actors/ovl_En_Arrow/z_en_arrow.c +++ b/src/overlays/actors/ovl_En_Arrow/z_en_arrow.c @@ -279,7 +279,7 @@ void EnArrow_Fly(EnArrow* this, PlayState* play) { } EffectSsStone1_Spawn(play, &this->actor.world.pos, 0); - SoundSource_PlaySfxAtFixedWorldPos(play, &this->actor.world.pos, 20, sfxId); + SfxSource_PlaySfxAtFixedWorldPos(play, &this->actor.world.pos, 20, sfxId); Actor_Kill(&this->actor); } else { EffectSsHitMark_SpawnCustomScale(play, 0, 150, &this->actor.world.pos); @@ -307,7 +307,7 @@ void EnArrow_Fly(EnArrow* this, PlayState* play) { } func_809B3CEC(play, this); - Audio_PlayActorSound2(&this->actor, NA_SE_IT_ARROW_STICK_CRE); + Audio_PlayActorSfx2(&this->actor, NA_SE_IT_ARROW_STICK_CRE); } } else if (this->touchedPoly) { EnArrow_SetupAction(this, func_809B45E0); @@ -319,7 +319,7 @@ void EnArrow_Fly(EnArrow* this, PlayState* play) { this->timer = 20; } - Audio_PlayActorSound2(&this->actor, NA_SE_IT_ARROW_STICK_OBJ); + Audio_PlayActorSfx2(&this->actor, NA_SE_IT_ARROW_STICK_OBJ); this->hitFlags |= 1; } } diff --git a/src/overlays/actors/ovl_En_Attack_Niw/z_en_attack_niw.c b/src/overlays/actors/ovl_En_Attack_Niw/z_en_attack_niw.c index f1544067bb..e7d1718ee3 100644 --- a/src/overlays/actors/ovl_En_Attack_Niw/z_en_attack_niw.c +++ b/src/overlays/actors/ovl_En_Attack_Niw/z_en_attack_niw.c @@ -365,11 +365,11 @@ void EnAttackNiw_Update(Actor* thisx, PlayState* play) { } if (this->unk_25E == 0) { this->unk_25E = 30; - Audio_PlayActorSound2(&this->actor, NA_SE_EV_CHICKEN_CRY_A); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_CHICKEN_CRY_A); } if (this->unk_260 == 0) { this->unk_260 = 7; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_DEKU_WAKEUP); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_DEKU_WAKEUP); } } diff --git a/src/overlays/actors/ovl_En_Ba/z_en_ba.c b/src/overlays/actors/ovl_En_Ba/z_en_ba.c index 711327f138..a5f5e32671 100644 --- a/src/overlays/actors/ovl_En_Ba/z_en_ba.c +++ b/src/overlays/actors/ovl_En_Ba/z_en_ba.c @@ -237,7 +237,7 @@ void EnBa_SwingAtPlayer(EnBa* this, PlayState* play) { Math_SmoothStepToF(&this->actor.world.pos.y, this->actor.home.pos.y + 60.0f, 1.0f, 10.0f, 0.0f); if ((this->actor.xzDistToPlayer <= 175.0f) || (this->unk_31A != 0)) { if (this->unk_318 == 20) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_BALINADE_HAND_UP); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_BALINADE_HAND_UP); this->unk_31C = 1500; } if (this->unk_318 != 0) { @@ -267,7 +267,7 @@ void EnBa_SwingAtPlayer(EnBa* this, PlayState* play) { } } else { if (this->unk_31A == 10) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_BALINADE_HAND_DOWN); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_BALINADE_HAND_DOWN); } if (this->unk_31A != 0) { this->unk_31C = 8000; @@ -324,7 +324,7 @@ void func_809B7174(EnBa* this) { this->unk_318 = 20; this->actor.colChkInfo.mass = MASS_IMMOVABLE; this->actor.speedXZ = 10.0f; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_BALINADE_HAND_DAMAGE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_BALINADE_HAND_DAMAGE); Actor_SetColorFilter(&this->actor, 0x4000, 255, 0, 12); EnBa_SetupAction(this, EnBa_RecoilFromDamage); } diff --git a/src/overlays/actors/ovl_En_Bb/z_en_bb.c b/src/overlays/actors/ovl_En_Bb/z_en_bb.c index 70edb68e6b..3f7e11aac3 100644 --- a/src/overlays/actors/ovl_En_Bb/z_en_bb.c +++ b/src/overlays/actors/ovl_En_Bb/z_en_bb.c @@ -505,7 +505,7 @@ void EnBb_Death(EnBb* this, PlayState* play) { void EnBb_SetupDamage(EnBb* this) { this->action = BB_DAMAGE; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_BUBLE_DAMAGE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_BUBLE_DAMAGE); if (this->actor.params > ENBB_GREEN) { this->actor.world.rot.y = this->actor.yawTowardsPlayer; if (!(this->actor.bgCheckFlags & BGCHECKFLAG_WALL)) { @@ -640,7 +640,7 @@ void EnBb_Blue(EnBb* this, PlayState* play) { afterHitAngle = -0x8000; } else { afterHitAngle = 0x4000; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_BUBLE_BITE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_BUBLE_BITE); if (play->gameplayFrames & 1) { afterHitAngle = -0x4000; } @@ -652,17 +652,17 @@ void EnBb_Blue(EnBb* this, PlayState* play) { if (this->maxSpeed >= 6.0f) { if ((s32)this->skelAnime.curFrame == 0 || (s32)this->skelAnime.curFrame == 5) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_BUBLE_MOUTH); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_BUBLE_MOUTH); } else if ((s32)this->skelAnime.curFrame == 2 || (s32)this->skelAnime.curFrame == 7) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_BUBLE_WING); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_BUBLE_WING); } } else { if ((s32)this->skelAnime.curFrame == 5) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_BUBLE_WING); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_BUBLE_WING); } } if (((s32)this->skelAnime.curFrame == 0) && (Rand_ZeroOne() < 0.1f)) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_BUBLE_LAUGH); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_BUBLE_LAUGH); } this->actor.shape.rot.y = this->actor.world.rot.y; } @@ -677,7 +677,7 @@ void EnBb_SetupDown(EnBb* this) { this->flameScaleX = 0.0f; this->flameScaleY = 0.0f; this->actor.gravity = -2.0f; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_BUBLE_DOWN); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_BUBLE_DOWN); EnBb_SetupAction(this, EnBb_Down); } @@ -705,7 +705,7 @@ void EnBb_Down(EnBb* this, PlayState* play) { return; } } - Audio_PlayActorSound2(&this->actor, NA_SE_EN_DODO_M_GND); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_DODO_M_GND); if (this->actor.velocity.y < -14.0f) { this->actor.velocity.y *= -0.7f; } else { @@ -717,10 +717,10 @@ void EnBb_Down(EnBb* this, PlayState* play) { } this->actor.shape.rot.y = this->actor.world.rot.y; if ((s32)this->skelAnime.curFrame == 5) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_BUBLE_WING); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_BUBLE_WING); } if (this->timer == 0) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_BUBLE_UP); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_BUBLE_UP); switch (this->actor.params) { case ENBB_BLUE: this->actor.velocity.y = 0.0f; @@ -847,9 +847,9 @@ void EnBb_Red(EnBb* this, PlayState* play) { } if (this->actionState != BBRED_WAIT) { if (((s32)this->skelAnime.curFrame == 0) || ((s32)this->skelAnime.curFrame == 5)) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_BUBLE_MOUTH); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_BUBLE_MOUTH); } - Audio_PlayActorSound2(&this->actor, NA_SE_EN_BUBLEFALL_FIRE - SFX_FLAG); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_BUBLEFALL_FIRE - SFX_FLAG); } } @@ -919,7 +919,7 @@ void EnBb_White(EnBb* this, PlayState* play) { this->maxSpeed = 10.0f; } if (this->collider.base.atFlags & AT_HIT) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_BUBLE_BITE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_BUBLE_BITE); this->collider.base.atFlags &= ~AT_HIT; } this->actor.shape.rot.y = this->actor.world.rot.y; @@ -928,13 +928,13 @@ void EnBb_White(EnBb* this, PlayState* play) { } SkelAnime_Update(&this->skelAnime); if (((s32)this->skelAnime.curFrame == 0) && (Rand_ZeroOne() <= 0.1f)) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_BUBLE_LAUGH); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_BUBLE_LAUGH); } if ((this->maxSpeed != 0.0f) && (((s32)this->skelAnime.curFrame == 0) || ((s32)this->skelAnime.curFrame == 5))) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_BUBLE_MOUTH); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_BUBLE_MOUTH); } else if (((s32)this->skelAnime.curFrame == 2) || ((s32)this->skelAnime.curFrame == 7)) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_BUBLE_WING); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_BUBLE_WING); } } @@ -1005,7 +1005,7 @@ void EnBb_Green(EnBb* this, PlayState* play) { this->moveMode = BBMOVE_NOCLIP; this->maxSpeed = 10.0f; if (this->collider.base.atFlags & AT_HIT) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_BUBLE_BITE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_BUBLE_BITE); this->collider.base.atFlags &= ~AT_HIT; } if (Math_CosF(this->bobPhase) == 0.0f) { @@ -1013,7 +1013,7 @@ void EnBb_Green(EnBb* this, PlayState* play) { this->bobSpeedMod = Rand_ZeroOne(); } else { this->bobSpeedMod = Rand_ZeroOne() * 3.0f; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_BUBLE_LAUGH); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_BUBLE_LAUGH); } } this->actor.shape.rot.y = this->actor.world.rot.y; @@ -1043,14 +1043,14 @@ void EnBb_Green(EnBb* this, PlayState* play) { if (this->vFlameTimer != 0) { this->collider.base.acFlags &= ~AC_HIT; } - Audio_PlayActorSound2(&this->actor, NA_SE_EN_BUBLE_DOWN); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_BUBLE_DOWN); } if (this->actionState != BBGREEN_FLAME_ON) { this->timer--; if (this->timer == 0) { this->actionState = BBGREEN_FLAME_ON; this->vFlameTimer = (Rand_ZeroOne() * 30.0f) + 180.0f; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_BUBLE_UP); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_BUBLE_UP); } Math_SmoothStepToF(&this->flameScaleY, 0.0f, 1.0f, 10.0f, 0.0f); Math_SmoothStepToF(&this->flameScaleX, 0.0f, 1.0f, 10.0f, 0.0f); @@ -1059,10 +1059,10 @@ void EnBb_Green(EnBb* this, PlayState* play) { Math_SmoothStepToF(&this->flameScaleX, 100.0f, 1.0f, 10.0f, 0.0f); } if ((s32)this->skelAnime.curFrame == 5) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_BUBLE_WING); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_BUBLE_WING); } if (((s32)this->skelAnime.curFrame == 0) && (Rand_ZeroOne() < 0.1f)) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_BUBLE_LAUGH); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_BUBLE_LAUGH); } } @@ -1089,7 +1089,7 @@ void EnBb_SetupStunned(EnBb* this) { this->fireIceTimer = 0x30; FALLTHROUGH; case 15: - Audio_PlayActorSound2(&this->actor, NA_SE_EN_GOMA_JR_FREEZE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_GOMA_JR_FREEZE); Actor_SetColorFilter(&this->actor, 0, 0xB4, 0, 0x50); break; } @@ -1107,7 +1107,7 @@ void EnBb_Stunned(EnBb* this, PlayState* play) { this->actor.bgCheckFlags &= ~BGCHECKFLAG_WALL; } if (this->actor.bgCheckFlags & BGCHECKFLAG_GROUND_TOUCH) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_DODO_M_GND); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_DODO_M_GND); if (this->actor.velocity.y < -14.0f) { this->actor.velocity.y *= -0.4f; } else { @@ -1209,7 +1209,7 @@ void EnBb_CollisionCheck(EnBb* this, PlayState* play) { this->actor.speedXZ = -8.0f; this->maxSpeed = 0.0f; this->actor.world.rot.y = this->actor.yawTowardsPlayer; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_BUBLE_DAMAGE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_BUBLE_DAMAGE); } else if (((this->action == BB_DOWN) && (this->timer < 190)) || ((this->actor.params != ENBB_WHITE) && (this->flameScaleX < 20.0f))) { EnBb_SetupDamage(this); diff --git a/src/overlays/actors/ovl_En_Bdfire/z_en_bdfire.c b/src/overlays/actors/ovl_En_Bdfire/z_en_bdfire.c index 6731fee916..11bae83af1 100644 --- a/src/overlays/actors/ovl_En_Bdfire/z_en_bdfire.c +++ b/src/overlays/actors/ovl_En_Bdfire/z_en_bdfire.c @@ -129,8 +129,8 @@ void func_809BC598(EnBdfire* this, PlayState* play) { this->unk_158 = bossDodongo->unk_1A2; quarterTurn = false; if (this->actor.params == 0) { - Audio_PlaySoundGeneral(NA_SE_EN_DODO_K_FIRE - SFX_FLAG, &this->actor.projectedPos, 4, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EN_DODO_K_FIRE - SFX_FLAG, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } Math_SmoothStepToF(&this->actor.scale.x, this->unk_188, 0.3f, 0.5f, 0.0f); Actor_SetScale(&this->actor, this->actor.scale.x); diff --git a/src/overlays/actors/ovl_En_Bigokuta/z_en_bigokuta.c b/src/overlays/actors/ovl_En_Bigokuta/z_en_bigokuta.c index 0fcc182810..c6a9f89a88 100644 --- a/src/overlays/actors/ovl_En_Bigokuta/z_en_bigokuta.c +++ b/src/overlays/actors/ovl_En_Bigokuta/z_en_bigokuta.c @@ -260,8 +260,8 @@ void func_809BD1C8(EnBigokuta* this, PlayState* play) { EffectSsGSplash_Spawn(play, &effectPos, NULL, NULL, 1, 2000); } - Audio_PlayActorSound2(&this->actor, NA_SE_EN_DAIOCTA_LAND_WATER); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_GOLON_LAND_BIG); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_DAIOCTA_LAND_WATER); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_GOLON_LAND_BIG); func_80033E88(&this->actor, play, 0xA, 8); } @@ -283,7 +283,7 @@ void func_809BD318(EnBigokuta* this) { void func_809BD370(EnBigokuta* this) { this->unk_196 = 21; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_STAL_JUMP); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_STAL_JUMP); this->actionFunc = func_809BD8DC; } @@ -332,7 +332,7 @@ void func_809BD524(EnBigokuta* this) { this->unk_196 = 80; this->unk_19A = 0; this->cylinder[0].base.atFlags |= AT_ON; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_DAIOCTA_MAHI); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_DAIOCTA_MAHI); if (this->collider.elements->info.acHitInfo->toucher.dmgFlags & DMG_DEKU_NUT) { this->unk_195 = true; this->unk_196 = 20; @@ -355,7 +355,7 @@ void func_809BD5E0(EnBigokuta* this) { void func_809BD658(EnBigokuta* this) { Animation_MorphToPlayOnce(&this->skelAnime, &object_bigokuta_Anim_000A74, -5.0f); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_DAIOCTA_DEAD2); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_DAIOCTA_DEAD2); this->unk_196 = 38; this->unk_198 = 10; this->actionFunc = func_809BE26C; @@ -385,7 +385,7 @@ void func_809BD768(EnBigokuta* this) { this->unk_19A = 0; this->actor.flags &= ~ACTOR_FLAG_0; this->cylinder[0].base.atFlags &= ~AT_ON; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_DAIOCTA_SINK); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_DAIOCTA_SINK); this->actionFunc = func_809BE4A4; } @@ -402,7 +402,7 @@ void func_809BD84C(EnBigokuta* this, PlayState* play) { this->unk_196--; if (this->unk_196 == 13 || this->unk_196 == -20) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_DAIOCTA_VOICE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_DAIOCTA_VOICE); } if (this->unk_196 == 1) { func_800F5ACC(NA_BGM_MINI_BOSS); @@ -433,8 +433,8 @@ void func_809BD8DC(EnBigokuta* this, PlayState* play) { EffectSsGSplash_Spawn(play, &effectPos, NULL, NULL, 1, 2000); effectPos.x = this->actor.world.pos.x - 40.0f; EffectSsGSplash_Spawn(play, &effectPos, NULL, NULL, 1, 2000); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_DAIOCTA_LAND_WATER); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_GOLON_LAND_BIG); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_DAIOCTA_LAND_WATER); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_GOLON_LAND_BIG); func_800AA000(0.0f, 0xFF, 0x14, 0x96); } } else if (this->unk_196 < -1) { @@ -455,7 +455,7 @@ void func_809BDAE8(EnBigokuta* this, PlayState* play) { this->actor.home.pos.y = this->actor.world.pos.y; Actor_ChangeCategory(play, &play->actorCtx, &this->actor, ACTORCAT_ENEMY); this->actor.params = 2; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_DAIOCTA_VOICE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_DAIOCTA_VOICE); func_809BD3E0(this); } } @@ -483,7 +483,7 @@ void func_809BDC08(EnBigokuta* this, PlayState* play) { SkelAnime_Update(&this->skelAnime); if (Animation_OnFrame(&this->skelAnime, 0.0f)) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_OCTAROCK_BUBLE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_OCTAROCK_BUBLE); } if (this->unk_196 < 0) { @@ -562,7 +562,7 @@ void func_809BDFC8(EnBigokuta* this, PlayState* play) { this->unk_196--; } if (this->unk_196 == 20) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_DAIOCTA_VOICE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_DAIOCTA_VOICE); } if ((this->unk_196 == 0) && Math_ScaledStepToS(&this->actor.shape.rot.y, this->actor.world.rot.x, 0x800)) { this->unk_194 = -this->unk_194; @@ -636,13 +636,13 @@ void func_809BE26C(EnBigokuta* this, PlayState* play) { effectPos.z = this->actor.world.pos.z; func_8002829C(play, &effectPos, &sEffectPosAccel, &sEffectPosAccel, &sEffectPrimColor, &sEffectEnvColor, 1200, 20); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_OCTAROCK_DEAD2); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_OCTAROCK_DEAD2); } if (this->unk_198 == 0 && Math_StepToF(&this->actor.scale.y, 0.0f, 0.001f)) { Flags_SetClear(play, this->actor.room); Camera_ChangeSetting(play->cameraPtrs[CAM_ID_MAIN], CAM_SET_DUNGEON0); func_8005ACFC(play->cameraPtrs[CAM_ID_MAIN], 4); - SoundSource_PlaySfxAtFixedWorldPos(play, &this->actor.world.pos, 50, NA_SE_EN_OCTAROCK_BUBLE); + SfxSource_PlaySfxAtFixedWorldPos(play, &this->actor.world.pos, 50, NA_SE_EN_OCTAROCK_BUBLE); Item_DropCollectibleRandom(play, &this->actor, &this->actor.world.pos, 0xB0); Actor_Kill(&this->actor); } @@ -756,10 +756,10 @@ void EnBigokuta_UpdateDamage(EnBigokuta* this, PlayState* play) { func_809BD47C(this); } else if (!Actor_IsFacingPlayer(&this->actor, 0x4000)) { if (Actor_ApplyDamage(&this->actor) == 0) { // Dead - Audio_PlayActorSound2(&this->actor, NA_SE_EN_DAIOCTA_DEAD); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_DAIOCTA_DEAD); Enemy_StartFinishingBlow(play, &this->actor); } else { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_DAIOCTA_DAMAGE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_DAIOCTA_DAMAGE); } func_809BD5E0(this); } diff --git a/src/overlays/actors/ovl_En_Bili/z_en_bili.c b/src/overlays/actors/ovl_En_Bili/z_en_bili.c index 72963957d6..6c49419a9c 100644 --- a/src/overlays/actors/ovl_En_Bili/z_en_bili.c +++ b/src/overlays/actors/ovl_En_Bili/z_en_bili.c @@ -122,7 +122,7 @@ void EnBili_Init(Actor* thisx, PlayState* play) { Collider_InitCylinder(play, &this->collider); Collider_SetCylinder(play, &this->collider, &this->actor, &sCylinderInit); CollisionCheck_SetInfo2(&this->actor.colChkInfo, &sDamageTable, &sColChkInfoInit); - this->playFlySound = false; + this->playFlySfx = false; if (this->actor.params == EN_BILI_TYPE_NORMAL) { EnBili_SetupFloatIdle(this); @@ -241,7 +241,7 @@ void EnBili_SetupStunned(EnBili* this) { this->actor.gravity = -1.0f; this->actor.speedXZ = 0.0f; Actor_SetColorFilter(&this->actor, 0, 0x96, 0x2000, 0x50); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_GOMA_JR_FREEZE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_GOMA_JR_FREEZE); this->collider.base.atFlags &= ~AT_ON; this->actionFunc = EnBili_Stunned; } @@ -396,7 +396,7 @@ void EnBili_Climb(EnBili* this, PlayState* play) { f32 curFrame = this->skelAnime.curFrame; if (Animation_OnFrame(&this->skelAnime, 9.0f)) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_BIRI_JUMP); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_BIRI_JUMP); } if (curFrame > 9.0f) { @@ -509,7 +509,7 @@ void EnBili_Die(EnBili* this, PlayState* play) { } if (this->timer == 14) { - SoundSource_PlaySfxAtFixedWorldPos(play, &this->actor.world.pos, 40, NA_SE_EN_BIRI_BUBLE); + SfxSource_PlaySfxAtFixedWorldPos(play, &this->actor.world.pos, 40, NA_SE_EN_BIRI_BUBLE); } } @@ -519,7 +519,7 @@ void EnBili_Stunned(EnBili* this, PlayState* play) { } if (this->actor.bgCheckFlags & BGCHECKFLAG_GROUND_TOUCH) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_DODO_M_GND); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_DODO_M_GND); } if (this->timer == 0) { @@ -553,7 +553,7 @@ void EnBili_UpdateDamage(EnBili* this, PlayState* play) { if ((this->actor.colChkInfo.damageEffect != 0) || (this->actor.colChkInfo.damage != 0)) { if (Actor_ApplyDamage(&this->actor) == 0) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_BIRI_DEAD); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_BIRI_DEAD); Enemy_StartFinishingBlow(play, &this->actor); this->actor.flags &= ~ACTOR_FLAG_0; } @@ -610,11 +610,11 @@ void EnBili_Update(Actor* thisx, PlayState* play2) { if (Animation_OnFrame(&this->skelAnime, 9.0f)) { if ((this->actionFunc == EnBili_FloatIdle) || (this->actionFunc == EnBili_SetNewHomeHeight) || (this->actionFunc == EnBili_ApproachPlayer) || (this->actionFunc == EnBili_Recoil)) { - if (this->playFlySound) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_BIRI_FLY); - this->playFlySound = false; + if (this->playFlySfx) { + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_BIRI_FLY); + this->playFlySfx = false; } else { - this->playFlySound = true; + this->playFlySfx = true; } } } diff --git a/src/overlays/actors/ovl_En_Bili/z_en_bili.h b/src/overlays/actors/ovl_En_Bili/z_en_bili.h index 782412af87..eac275950f 100644 --- a/src/overlays/actors/ovl_En_Bili/z_en_bili.h +++ b/src/overlays/actors/ovl_En_Bili/z_en_bili.h @@ -22,7 +22,7 @@ typedef struct EnBili { /* 0x014C */ SkelAnime skelAnime; /* 0x0190 */ EnBiliActionFunc actionFunc; /* 0x0194 */ u8 tentaclesTexIndex; - /* 0x0195 */ u8 playFlySound; + /* 0x0195 */ u8 playFlySfx; /* 0x0196 */ s16 timer; /* 0x0198 */ Vec3s jointTable[EN_BILI_LIMB_MAX]; /* 0x01B6 */ Vec3s morphTable[EN_BILI_LIMB_MAX]; diff --git a/src/overlays/actors/ovl_En_Bom/z_en_bom.c b/src/overlays/actors/ovl_En_Bom/z_en_bom.c index 0d3e85b865..85b390822d 100644 --- a/src/overlays/actors/ovl_En_Bom/z_en_bom.c +++ b/src/overlays/actors/ovl_En_Bom/z_en_bom.c @@ -135,7 +135,7 @@ void EnBom_Move(EnBom* this, PlayState* play) { if (ABS((s16)(this->actor.wallYaw - this->actor.world.rot.y)) > 0x4000) { this->actor.world.rot.y = ((this->actor.wallYaw - this->actor.world.rot.y) + this->actor.wallYaw) - 0x8000; } - Audio_PlayActorSound2(&this->actor, NA_SE_EV_BOMB_BOUND); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_BOMB_BOUND); Actor_MoveForward(&this->actor); this->actor.speedXZ *= 0.7f; this->actor.bgCheckFlags &= ~BGCHECKFLAG_WALL; @@ -235,7 +235,7 @@ void EnBom_Update(Actor* thisx, PlayState* play2) { } if (this->timer == 67) { - Audio_PlayActorSound2(thisx, NA_SE_PL_TAKE_OUT_SHIELD); + Audio_PlayActorSfx2(thisx, NA_SE_PL_TAKE_OUT_SHIELD); Actor_SetScale(thisx, 0.01f); } @@ -260,7 +260,7 @@ void EnBom_Update(Actor* thisx, PlayState* play2) { EffectSsGSpk_SpawnFuse(play, thisx, &effPos, &effVelocity, &effAccel); } - Audio_PlayActorSound2(thisx, NA_SE_IT_BOMB_IGNIT - SFX_FLAG); + Audio_PlayActorSfx2(thisx, NA_SE_IT_BOMB_IGNIT - SFX_FLAG); effPos.y += 3.0f; func_8002829C(play, &effPos, &effVelocity, &dustAccel, &dustColor, &dustColor, 50, 5); @@ -313,7 +313,7 @@ void EnBom_Update(Actor* thisx, PlayState* play2) { EffectSsBlast_SpawnWhiteShockwave(play, &effPos, &effVelocity, &effAccel); } - Audio_PlayActorSound2(thisx, NA_SE_IT_BOMB_EXPLOSION); + Audio_PlayActorSfx2(thisx, NA_SE_IT_BOMB_EXPLOSION); play->envCtx.adjLight1Color[0] = play->envCtx.adjLight1Color[1] = play->envCtx.adjLight1Color[2] = 250; @@ -349,7 +349,7 @@ void EnBom_Update(Actor* thisx, PlayState* play2) { } if (thisx->bgCheckFlags & BGCHECKFLAG_WATER_TOUCH) { thisx->bgCheckFlags &= ~BGCHECKFLAG_WATER_TOUCH; - Audio_PlayActorSound2(thisx, NA_SE_EV_BOMB_DROP_WATER); + Audio_PlayActorSfx2(thisx, NA_SE_EV_BOMB_DROP_WATER); } } } diff --git a/src/overlays/actors/ovl_En_Bom_Bowl_Man/z_en_bom_bowl_man.c b/src/overlays/actors/ovl_En_Bom_Bowl_Man/z_en_bom_bowl_man.c index 2ea9ea0bed..0217e222e5 100644 --- a/src/overlays/actors/ovl_En_Bom_Bowl_Man/z_en_bom_bowl_man.c +++ b/src/overlays/actors/ovl_En_Bom_Bowl_Man/z_en_bom_bowl_man.c @@ -366,7 +366,7 @@ void EnBomBowMan_SetupChooseShowPrize(EnBomBowlMan* this, PlayState* play) { pos.y = 40.0f; pos.z = 300.0f; EffectSsBomb2_SpawnLayered(play, &pos, &velocity, &accel, 50, 15); - Audio_PlayActorSound2(&this->actor, NA_SE_IT_GOODS_APPEAR); + Audio_PlayActorSfx2(&this->actor, NA_SE_IT_GOODS_APPEAR); this->prizeRevealTimer = 10; this->actionFunc = EnBomBowMan_ChooseShowPrize; } diff --git a/src/overlays/actors/ovl_En_Bombf/z_en_bombf.c b/src/overlays/actors/ovl_En_Bombf/z_en_bombf.c index a5b05d10b0..b9ddf45ba0 100644 --- a/src/overlays/actors/ovl_En_Bombf/z_en_bombf.c +++ b/src/overlays/actors/ovl_En_Bombf/z_en_bombf.c @@ -156,7 +156,7 @@ void EnBombf_GrowBomb(EnBombf* this, PlayState* play) { func_8002F5C4(&this->actor, &bombFlower->actor, play); this->timer = 180; this->flowerBombScale = 0.0f; - Audio_PlayActorSound2(&this->actor, NA_SE_PL_PULL_UP_ROCK); + Audio_PlayActorSfx2(&this->actor, NA_SE_PL_PULL_UP_ROCK); this->actor.flags &= ~ACTOR_FLAG_0; } else { player->actor.child = NULL; @@ -356,7 +356,7 @@ void EnBombf_Update(Actor* thisx, PlayState* play) { if (1) {} thisx->world.rot.y = ((thisx->wallYaw - thisx->world.rot.y) + thisx->wallYaw) - 0x8000; } - Audio_PlayActorSound2(thisx, NA_SE_EV_BOMB_BOUND); + Audio_PlayActorSfx2(thisx, NA_SE_EV_BOMB_BOUND); Actor_MoveForward(thisx); DREG(6) = 1; Actor_UpdateBgCheckInfo(play, thisx, 5.0f, 10.0f, 0.0f, @@ -387,7 +387,7 @@ void EnBombf_Update(Actor* thisx, PlayState* play) { if ((play->gameplayFrames % 2) == 0) { EffectSsGSpk_SpawnFuse(play, thisx, &effPos, &effVelocity, &effAccel); } - Audio_PlayActorSound2(thisx, NA_SE_IT_BOMB_IGNIT - SFX_FLAG); + Audio_PlayActorSfx2(thisx, NA_SE_IT_BOMB_IGNIT - SFX_FLAG); effPos.y += 3.0f; func_8002829C(play, &effPos, &effVelocity, &dustAccel, &dustColor, &dustColor, 50, 5); @@ -424,7 +424,7 @@ void EnBombf_Update(Actor* thisx, PlayState* play) { EffectSsBlast_SpawnWhiteShockwave(play, &effPos, &effVelocity, &effAccel); } - Audio_PlayActorSound2(thisx, NA_SE_IT_BOMB_EXPLOSION); + Audio_PlayActorSfx2(thisx, NA_SE_IT_BOMB_EXPLOSION); play->envCtx.adjLight1Color[0] = play->envCtx.adjLight1Color[1] = play->envCtx.adjLight1Color[2] = 250; play->envCtx.adjAmbientColor[0] = play->envCtx.adjAmbientColor[1] = play->envCtx.adjAmbientColor[2] = 250; @@ -460,7 +460,7 @@ void EnBombf_Update(Actor* thisx, PlayState* play) { } if (thisx->bgCheckFlags & BGCHECKFLAG_WATER_TOUCH) { thisx->bgCheckFlags &= ~BGCHECKFLAG_WATER_TOUCH; - Audio_PlayActorSound2(thisx, NA_SE_EV_BOMB_DROP_WATER); + Audio_PlayActorSfx2(thisx, NA_SE_EV_BOMB_DROP_WATER); } } } diff --git a/src/overlays/actors/ovl_En_Boom/z_en_boom.c b/src/overlays/actors/ovl_En_Boom/z_en_boom.c index 2d2fdd40c2..54de253a23 100644 --- a/src/overlays/actors/ovl_En_Boom/z_en_boom.c +++ b/src/overlays/actors/ovl_En_Boom/z_en_boom.c @@ -147,7 +147,7 @@ void EnBoom_Fly(EnBoom* this, PlayState* play) { } } - // Set xyz speed, move forward, and play the boomerang sound + // Set xyz speed, move forward, and play the boomerang sound effect func_8002D9A4(&this->actor, 12.0f); Actor_MoveForward(&this->actor); func_8002F974(&this->actor, NA_SE_IT_BOOMERANG_FLY - SFX_FLAG); @@ -202,7 +202,7 @@ void EnBoom_Fly(EnBoom* this, PlayState* play) { if (collided) { // If the boomerang collides with something and it's is a Jabu Object actor with params equal to 0, then // set collided to 0 so that the boomerang will go through the wall. - // Otherwise play a clank sound and keep collided set to bounce back. + // Otherwise play a clank sound effect and keep collided set to bounce back. if (func_8002F9EC(play, &this->actor, this->actor.wallPoly, hitDynaID, &hitPoint) != 0 || (hitDynaID != BGCHECK_SCENE && ((hitActor = DynaPoly_GetActor(&play->colCtx, hitDynaID)) != NULL) && hitActor->actor.id == ACTOR_BG_BDAN_OBJECTS && hitActor->actor.params == 0)) { diff --git a/src/overlays/actors/ovl_En_Box/z_en_box.c b/src/overlays/actors/ovl_En_Box/z_en_box.c index ae8f96e8f0..a70632c1a5 100644 --- a/src/overlays/actors/ovl_En_Box/z_en_box.c +++ b/src/overlays/actors/ovl_En_Box/z_en_box.c @@ -251,8 +251,8 @@ void EnBox_Fall(EnBox* this, PlayState* play) { EnBox_SetupAction(this, EnBox_WaitOpen); OnePointCutscene_EndCutscene(play, this->subCamId); } - Audio_PlaySoundGeneral(NA_SE_EV_COFFIN_CAP_BOUND, &this->dyna.actor.projectedPos, 4, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EV_COFFIN_CAP_BOUND, &this->dyna.actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); EnBox_SpawnDust(this, play); } yDiff = this->dyna.actor.world.pos.y - this->dyna.actor.floorHeight; @@ -361,8 +361,8 @@ void EnBox_AppearInit(EnBox* this, PlayState* play) { this->unk_1A8 = 0; Actor_Spawn(&play->actorCtx, play, ACTOR_DEMO_KANKYO, this->dyna.actor.home.pos.x, this->dyna.actor.home.pos.y, this->dyna.actor.home.pos.z, 0, 0, 0, DEMOKANKYO_SPARKLES); - Audio_PlaySoundGeneral(NA_SE_EV_TRE_BOX_APPEAR, &this->dyna.actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EV_TRE_BOX_APPEAR, &this->dyna.actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } } @@ -433,7 +433,7 @@ void EnBox_WaitOpen(EnBox* this, PlayState* play) { } /** - * Plays an animation to its end, playing sounds at key points + * Plays an animation to its end, playing sound effects at key points */ void EnBox_Open(EnBox* this, PlayState* play) { u16 sfxId; @@ -464,8 +464,8 @@ void EnBox_Open(EnBox* this, PlayState* play) { } if (sfxId != 0) { - Audio_PlaySoundGeneral(sfxId, &this->dyna.actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(sfxId, &this->dyna.actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } if (this->skelanime.jointTable[3].z > 0) { diff --git a/src/overlays/actors/ovl_En_Brob/z_en_brob.c b/src/overlays/actors/ovl_En_Brob/z_en_brob.c index 4ed8125175..fa7d745823 100644 --- a/src/overlays/actors/ovl_En_Brob/z_en_brob.c +++ b/src/overlays/actors/ovl_En_Brob/z_en_brob.c @@ -128,7 +128,7 @@ void func_809CAEF4(EnBrob* this) { Animation_MorphToPlayOnce(&this->skelAnime, &object_brob_Anim_000290, -5.0f); this->unk_1AE -= 125.0f; Actor_SetColorFilter(&this->dyna.actor, 0, 0xFF, 0, 0x50); - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EN_GOMA_JR_FREEZE); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EN_GOMA_JR_FREEZE); this->actionFunc = func_809CB2B8; } @@ -181,7 +181,7 @@ void func_809CB114(EnBrob* this, PlayState* play) { void func_809CB218(EnBrob* this, PlayState* play) { SkelAnime_Update(&this->skelAnime); if (Animation_OnFrame(&this->skelAnime, 6.0f) || Animation_OnFrame(&this->skelAnime, 15.0f)) { - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EN_BROB_WAVE); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EN_BROB_WAVE); } if (this->timer != 0) { this->timer--; diff --git a/src/overlays/actors/ovl_En_Bubble/z_en_bubble.c b/src/overlays/actors/ovl_En_Bubble/z_en_bubble.c index 8b0ae2e190..71b4233e68 100644 --- a/src/overlays/actors/ovl_En_Bubble/z_en_bubble.c +++ b/src/overlays/actors/ovl_En_Bubble/z_en_bubble.c @@ -250,7 +250,7 @@ void EnBubble_Fly(EnBubble* this, PlayState* play) { this->velocityFromBounce.y = (this->bounceDirection.y * bounceSpeed); this->velocityFromBounce.z = (this->bounceDirection.z * bounceSpeed); this->sinkSpeed = 0.0f; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_AWA_BOUND); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_AWA_BOUND); this->graphicRotSpeed = 128.0f; this->graphicEccentricity = 0.48f; } else if ((this->actor.bgCheckFlags & BGCHECKFLAG_WATER) && sp54.y < 0.0f) { @@ -269,7 +269,7 @@ void EnBubble_Fly(EnBubble* this, PlayState* play) { this->velocityFromBounce.y = (this->bounceDirection.y * bounceSpeed); this->velocityFromBounce.z = (this->bounceDirection.z * bounceSpeed); this->sinkSpeed = 0.0f; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_AWA_BOUND); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_AWA_BOUND); this->graphicRotSpeed = 128.0f; this->graphicEccentricity = 0.48f; } @@ -369,7 +369,7 @@ void EnBubble_Wait(EnBubble* this, PlayState* play) { void EnBubble_Pop(EnBubble* this, PlayState* play) { if (EnBubble_Explosion(this, play) >= 0) { - SoundSource_PlaySfxAtFixedWorldPos(play, &this->actor.world.pos, 60, NA_SE_EN_AWA_BREAK); + SfxSource_PlaySfxAtFixedWorldPos(play, &this->actor.world.pos, 60, NA_SE_EN_AWA_BREAK); Actor_Kill(&this->actor); } } diff --git a/src/overlays/actors/ovl_En_Butte/z_en_butte.c b/src/overlays/actors/ovl_En_Butte/z_en_butte.c index 437740daaa..3631d18268 100644 --- a/src/overlays/actors/ovl_En_Butte/z_en_butte.c +++ b/src/overlays/actors/ovl_En_Butte/z_en_butte.c @@ -359,7 +359,7 @@ void EnButte_TransformIntoFairy(EnButte* this, PlayState* play) { EnButte_UpdateTransformationEffect(); if (this->timer == 5) { - SoundSource_PlaySfxAtFixedWorldPos(play, &this->actor.world.pos, 60, NA_SE_EV_BUTTERFRY_TO_FAIRY); + SfxSource_PlaySfxAtFixedWorldPos(play, &this->actor.world.pos, 60, NA_SE_EV_BUTTERFRY_TO_FAIRY); } else if (this->timer == 4) { Actor_Spawn(&play->actorCtx, play, ACTOR_EN_ELF, this->actor.focus.pos.x, this->actor.focus.pos.y, this->actor.focus.pos.z, 0, this->actor.shape.rot.y, 0, FAIRY_HEAL_TIMED); diff --git a/src/overlays/actors/ovl_En_Bw/z_en_bw.c b/src/overlays/actors/ovl_En_Bw/z_en_bw.c index 360cc0f27c..824bbce091 100644 --- a/src/overlays/actors/ovl_En_Bw/z_en_bw.c +++ b/src/overlays/actors/ovl_En_Bw/z_en_bw.c @@ -210,7 +210,7 @@ void func_809CEA24(EnBw* this, PlayState* play) { } } else { if (ABS(sp58) > ABS(sp5C)) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_BUBLEWALK_WALK); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_BUBLEWALK_WALK); this->unk_232 = 0; } } @@ -400,7 +400,7 @@ void func_809CF72C(EnBw* this) { this->unk_222 = 20; this->unk_224 = 0xBB8; this->actor.speedXZ = 0.0f; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_BUBLEWALK_AIM); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_BUBLEWALK_AIM); EnBw_SetupAction(this, func_809CF7AC); } @@ -431,7 +431,7 @@ void func_809CF8F0(EnBw* this) { this->unk_220 = 4; this->unk_222 = 1000; this->actor.velocity.y = 11.0f; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_STAL_JUMP); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_STAL_JUMP); this->actor.flags |= ACTOR_FLAG_24; EnBw_SetupAction(this, func_809CF984); } @@ -450,7 +450,7 @@ void func_809CF984(EnBw* this, PlayState* play) { this->actor.speedXZ = -6.0f; this->actor.world.rot.y = this->actor.yawTowardsPlayer; if ((&player->actor == this->collider1.base.at) && !(this->collider1.base.atFlags & AT_BOUNCED)) { - Audio_PlayActorSound2(&player->actor, NA_SE_PL_BODY_HIT); + Audio_PlayActorSfx2(&player->actor, NA_SE_PL_BODY_HIT); } } SkelAnime_Update(&this->skelAnime); @@ -464,7 +464,7 @@ void func_809CF984(EnBw* this, PlayState* play) { this->unk_222 = 3000; this->actor.flags &= ~ACTOR_FLAG_24; this->actor.speedXZ = 0.0f; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_DODO_M_GND); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_DODO_M_GND); EnBw_SetupAction(this, func_809CE884); } } @@ -478,7 +478,7 @@ void func_809CFBA8(EnBw* this) { this->actor.velocity.y = 11.0f; this->unk_25C = Rand_ZeroOne() * 0.25f + 1.0f; this->unk_224 = 0xBB8; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_BUBLEWALK_REVERSE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_BUBLEWALK_REVERSE); EnBw_SetupAction(this, func_809CFC4C); } @@ -495,7 +495,7 @@ void func_809CFC4C(EnBw* this, PlayState* play) { Math_SmoothStepToF(&this->unk_260, 0.075f, 1.0f, 0.005f, 0.0f); if (this->actor.bgCheckFlags & BGCHECKFLAG_GROUND_TOUCH) { Actor_SpawnFloorDustRing(play, &this->actor, &this->actor.world.pos, 30.0f, 11, 4.0f, 0, 0, false); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_DODO_M_GND); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_DODO_M_GND); } if (this->unk_224 != 0) { this->unk_224 -= 250; @@ -534,7 +534,7 @@ void func_809CFF10(EnBw* this) { this->unk_221 = 3; this->actor.speedXZ = 0.0f; this->actor.velocity.y = 11.0f; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_BUBLEWALK_REVERSE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_BUBLEWALK_REVERSE); this->actor.bgCheckFlags &= ~BGCHECKFLAG_GROUND; EnBw_SetupAction(this, func_809CFF98); } @@ -547,7 +547,7 @@ void func_809CFF98(EnBw* this, PlayState* play) { Actor_SpawnFloorDustRing(play, &this->actor, &this->actor.world.pos, 30.0f, 11, 4.0f, 0, 0, false); this->unk_222 = 0xBB8; this->unk_250 = 0.0f; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_DODO_M_GND); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_DODO_M_GND); EnBw_SetupAction(this, func_809CE884); } if (this->color1.r < 247) { @@ -575,7 +575,7 @@ void func_809D00F4(EnBw* this) { this->unk_222 = 40; this->actor.flags &= ~ACTOR_FLAG_0; this->actor.speedXZ = 0.0f; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_BUBLEWALK_DEAD); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_BUBLEWALK_DEAD); EnBw_SetupAction(this, func_809D014C); } @@ -642,7 +642,7 @@ void func_809D03CC(EnBw* this) { this->iceTimer = 32; } this->unk_23C = this->actor.colorFilterTimer; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_GOMA_JR_FREEZE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_GOMA_JR_FREEZE); EnBw_SetupAction(this, func_809D0424); } @@ -718,7 +718,7 @@ void func_809D0584(EnBw* this, PlayState* play) { func_809D00F4(this); } } else if ((this->unk_220 != 1) && (this->unk_220 != 6)) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_BUBLEWALK_DAMAGE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_BUBLEWALK_DAMAGE); Actor_SetColorFilter(&this->actor, 0x4000, 0xFF, 0, 8); if (this->unk_220 != 5) { func_809D01CC(this); diff --git a/src/overlays/actors/ovl_En_Bx/z_en_bx.c b/src/overlays/actors/ovl_En_Bx/z_en_bx.c index 3a45a56b09..91564562e8 100644 --- a/src/overlays/actors/ovl_En_Bx/z_en_bx.c +++ b/src/overlays/actors/ovl_En_Bx/z_en_bx.c @@ -183,7 +183,7 @@ void EnBx_Update(Actor* thisx, PlayState* play) { } } - Audio_PlayActorSound2(thisx, NA_SE_EN_BIRI_SPARK - SFX_FLAG); + Audio_PlayActorSfx2(thisx, NA_SE_EN_BIRI_SPARK - SFX_FLAG); } thisx->focus.pos = thisx->world.pos; Collider_UpdateCylinder(thisx, &this->collider); diff --git a/src/overlays/actors/ovl_En_Clear_Tag/z_en_clear_tag.c b/src/overlays/actors/ovl_En_Clear_Tag/z_en_clear_tag.c index 68bf2f0c31..d72850a7b3 100644 --- a/src/overlays/actors/ovl_En_Clear_Tag/z_en_clear_tag.c +++ b/src/overlays/actors/ovl_En_Clear_Tag/z_en_clear_tag.c @@ -248,7 +248,7 @@ void EnClearTag_Init(Actor* thisx, PlayState* play) { func_8002D908(&this->actor); Collider_SetCylinder(play, &this->collider, &this->actor, &sLaserCylinderInit); - Audio_PlayActorSound2(&this->actor, NA_SE_IT_SWORD_REFLECT_MG); + Audio_PlayActorSfx2(&this->actor, NA_SE_IT_SWORD_REFLECT_MG); } else { // Initialize the Arwing. this->actor.flags |= ACTOR_FLAG_0; this->actor.targetMode = 5; @@ -353,7 +353,7 @@ void EnClearTag_Update(Actor* thisx, PlayState* play2) { this->acceleration.y = Rand_CenteredFloat(15.0f); this->acceleration.z = Rand_CenteredFloat(15.0f); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_FANTOM_THUNDER_GND); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_FANTOM_THUNDER_GND); this->actor.colChkInfo.health--; if ((s8)this->actor.colChkInfo.health <= 0) { this->state = CLEAR_TAG_STATE_CRASHING; @@ -524,7 +524,7 @@ void EnClearTag_Update(Actor* thisx, PlayState* play2) { this->actor.velocity.y -= 0.2f; this->actor.shape.rot.x += 0x10; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_DODO_K_BREATH - SFX_FLAG); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_DODO_K_BREATH - SFX_FLAG); // Check if the Arwing has hit the ground or a wall. if (this->actor.bgCheckFlags & (BGCHECKFLAG_GROUND | BGCHECKFLAG_WALL)) { @@ -565,8 +565,7 @@ void EnClearTag_Update(Actor* thisx, PlayState* play2) { Actor_Kill(&this->actor); // Player laser sound effect if the laser did not time out. if (this->timers[CLEAR_TAG_TIMER_LASER_DEATH] != 0) { - SoundSource_PlaySfxAtFixedWorldPos(play, &this->actor.world.pos, 20, - NA_SE_EN_FANTOM_THUNDER_GND); + SfxSource_PlaySfxAtFixedWorldPos(play, &this->actor.world.pos, 20, NA_SE_EN_FANTOM_THUNDER_GND); } } break; @@ -634,7 +633,7 @@ void EnClearTag_Update(Actor* thisx, PlayState* play2) { Vec3f debrisEffectAcceleration; this->shouldExplode = false; - SoundSource_PlaySfxAtFixedWorldPos(play, &this->actor.world.pos, 40, NA_SE_IT_BOMB_EXPLOSION); + SfxSource_PlaySfxAtFixedWorldPos(play, &this->actor.world.pos, 40, NA_SE_IT_BOMB_EXPLOSION); // Spawn flash effect. crashEffectLocation.x = this->actor.world.pos.x; diff --git a/src/overlays/actors/ovl_En_Cow/z_en_cow.c b/src/overlays/actors/ovl_En_Cow/z_en_cow.c index e1e41ff69d..162d8f2bd3 100644 --- a/src/overlays/actors/ovl_En_Cow/z_en_cow.c +++ b/src/overlays/actors/ovl_En_Cow/z_en_cow.c @@ -305,7 +305,7 @@ void EnCow_Update(Actor* thisx, PlayState* play2) { Actor_UpdateBgCheckInfo(play, thisx, 0.0f, 0.0f, 0.0f, UPDBGCHECKINFO_FLAG_2); if (SkelAnime_Update(&this->skelAnime) != 0) { if (this->skelAnime.animation == &gCowBodyChewAnim) { - Audio_PlayActorSound2(thisx, NA_SE_EV_COW_CRY); + Audio_PlayActorSfx2(thisx, NA_SE_EV_COW_CRY); Animation_Change(&this->skelAnime, &gCowBodyMoveHeadAnim, 1.0f, 0.0f, Animation_GetLastFrame(&gCowBodyMoveHeadAnim), ANIMMODE_ONCE, 1.0f); } else { diff --git a/src/overlays/actors/ovl_En_Crow/z_en_crow.c b/src/overlays/actors/ovl_En_Crow/z_en_crow.c index b216014e58..ab67053149 100644 --- a/src/overlays/actors/ovl_En_Crow/z_en_crow.c +++ b/src/overlays/actors/ovl_En_Crow/z_en_crow.c @@ -154,7 +154,7 @@ void EnCrow_SetupDamaged(EnCrow* this, PlayState* play) { this->actor.bgCheckFlags &= ~BGCHECKFLAG_GROUND; this->actor.shape.yOffset = 0.0f; this->actor.targetArrowOffset = 0.0f; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_KAICHO_DEAD); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_KAICHO_DEAD); if (this->actor.colChkInfo.damageEffect == 3) { // Ice arrows Actor_SetColorFilter(&this->actor, 0, 255, 0, 40); @@ -197,7 +197,7 @@ void EnCrow_SetupTurnAway(EnCrow* this) { this->aimRotY = this->actor.yawTowardsPlayer + 0x8000; this->skelAnime.playSpeed = 2.0f; Actor_SetColorFilter(&this->actor, 0, 255, 0, 5); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_GOMA_JR_FREEZE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_GOMA_JR_FREEZE); this->actionFunc = EnCrow_TurnAway; } @@ -248,7 +248,7 @@ void EnCrow_FlyIdle(EnCrow* this, PlayState* play) { } else { this->aimRotY -= 0x1000 + (0x1000 * Rand_ZeroOne()); } - Audio_PlayActorSound2(&this->actor, NA_SE_EN_KAICHO_CRY); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_KAICHO_CRY); } if (this->actor.yDistToWater > -40.0f) { @@ -317,7 +317,7 @@ void EnCrow_DiveAttack(EnCrow* this, PlayState* play) { (player->stateFlags1 & PLAYER_STATE1_23) || (this->actor.yDistToWater > -40.0f)) { if (this->collider.base.atFlags & AT_HIT) { this->collider.base.atFlags &= ~AT_HIT; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_KAICHO_ATTACK); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_KAICHO_ATTACK); } EnCrow_SetupFlyIdle(this); @@ -470,7 +470,7 @@ void EnCrow_Update(Actor* thisx, PlayState* play) { Actor_SetFocus(&this->actor, height); if (this->actor.colChkInfo.health != 0 && Animation_OnFrame(&this->skelAnime, 3.0f)) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_KAICHO_FLUTTER); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_KAICHO_FLUTTER); } } diff --git a/src/overlays/actors/ovl_En_Cs/z_en_cs.c b/src/overlays/actors/ovl_En_Cs/z_en_cs.c index 4c1281a70c..083f7d0545 100644 --- a/src/overlays/actors/ovl_En_Cs/z_en_cs.c +++ b/src/overlays/actors/ovl_En_Cs/z_en_cs.c @@ -422,14 +422,14 @@ void EnCs_Update(Actor* thisx, PlayState* play) { if (this->currentAnimIndex == 0) { if (((s32)this->skelAnime.curFrame == 9) || ((s32)this->skelAnime.curFrame == 23)) { - Audio_PlayActorSound2(&this->actor, NA_SE_EV_CHIBI_WALK); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_CHIBI_WALK); } } else if (this->currentAnimIndex == 1) { if (((s32)this->skelAnime.curFrame == 10) || ((s32)this->skelAnime.curFrame == 25)) { - Audio_PlayActorSound2(&this->actor, NA_SE_EV_CHIBI_WALK); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_CHIBI_WALK); } } else if ((this->currentAnimIndex == 2) && ((s32)this->skelAnime.curFrame == 20)) { - Audio_PlayActorSound2(&this->actor, NA_SE_EV_CHIBI_WALK); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_CHIBI_WALK); } Collider_UpdateCylinder(&this->actor, &this->collider); diff --git a/src/overlays/actors/ovl_En_Daiku/z_en_daiku.c b/src/overlays/actors/ovl_En_Daiku/z_en_daiku.c index 5b673d02e6..a36b8a1e36 100644 --- a/src/overlays/actors/ovl_En_Daiku/z_en_daiku.c +++ b/src/overlays/actors/ovl_En_Daiku/z_en_daiku.c @@ -563,7 +563,7 @@ void EnDaiku_Update(Actor* thisx, PlayState* play) { if (this->currentAnimIndex == ENDAIKU_ANIM_RUN) { curFrame = this->skelAnime.curFrame; if (curFrame == 6 || curFrame == 15) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_MORIBLIN_WALK); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_MORIBLIN_WALK); } } diff --git a/src/overlays/actors/ovl_En_Daiku_Kakariko/z_en_daiku_kakariko.c b/src/overlays/actors/ovl_En_Daiku_Kakariko/z_en_daiku_kakariko.c index 41a669f023..b4368bfd98 100644 --- a/src/overlays/actors/ovl_En_Daiku_Kakariko/z_en_daiku_kakariko.c +++ b/src/overlays/actors/ovl_En_Daiku_Kakariko/z_en_daiku_kakariko.c @@ -458,7 +458,7 @@ void EnDaikuKakariko_Update(Actor* thisx, PlayState* play) { if (this->currentAnimIndex == 3) { if (((s32)this->skelAnime.curFrame == 6) || ((s32)this->skelAnime.curFrame == 15)) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_MORIBLIN_WALK); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_MORIBLIN_WALK); } } diff --git a/src/overlays/actors/ovl_En_Dekubaba/z_en_dekubaba.c b/src/overlays/actors/ovl_En_Dekubaba/z_en_dekubaba.c index 3696b0a152..23599adced 100644 --- a/src/overlays/actors/ovl_En_Dekubaba/z_en_dekubaba.c +++ b/src/overlays/actors/ovl_En_Dekubaba/z_en_dekubaba.c @@ -328,7 +328,7 @@ void EnDekubaba_SetupGrow(EnDekubaba* this) { this->collider.base.colType = COLTYPE_HIT6; this->collider.base.acFlags &= ~AC_HARD; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_DUMMY482); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_DUMMY482); this->actionFunc = EnDekubaba_Grow; } @@ -623,9 +623,9 @@ void EnDekubaba_DecideLunge(EnDekubaba* this, PlayState* play) { SkelAnime_Update(&this->skelAnime); if (Animation_OnFrame(&this->skelAnime, 0.0f) || Animation_OnFrame(&this->skelAnime, 12.0f)) { if (this->actor.params == DEKUBABA_BIG) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_DEKU_MOUTH); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_DEKU_MOUTH); } else { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_DEKU_JR_MOUTH); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_DEKU_JR_MOUTH); } } @@ -675,9 +675,9 @@ void EnDekubaba_Lunge(EnDekubaba* this, PlayState* play) { if (this->timer == 0) { if (Animation_OnFrame(&this->skelAnime, 1.0f)) { if (this->actor.params == DEKUBABA_BIG) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_DEKU_ATTACK); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_DEKU_ATTACK); } else { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_DEKU_JR_ATTACK); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_DEKU_JR_ATTACK); } } @@ -712,9 +712,9 @@ void EnDekubaba_Lunge(EnDekubaba* this, PlayState* play) { if (Animation_OnFrame(&this->skelAnime, 0.0f) || Animation_OnFrame(&this->skelAnime, 12.0f)) { if (this->actor.params == DEKUBABA_BIG) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_DEKU_MOUTH); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_DEKU_MOUTH); } else { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_DEKU_JR_MOUTH); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_DEKU_JR_MOUTH); } } } @@ -816,7 +816,7 @@ void EnDekubaba_PullBack(EnDekubaba* this, PlayState* play) { this->timer++; if (this->timer == 10) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_DEKU_SCRAPE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_DEKU_SCRAPE); } if (this->timer >= 12) { @@ -961,7 +961,7 @@ void EnDekubaba_PrunedSomersault(EnDekubaba* this, PlayState* play) { } if (this->actor.bgCheckFlags & BGCHECKFLAG_GROUND_TOUCH) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_DODO_M_GND); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_DODO_M_GND); this->timer = 1; } } else if (this->timer == 1) { @@ -1094,16 +1094,16 @@ void EnDekubaba_UpdateDamage(EnDekubaba* this, PlayState* play) { if (this->actor.colChkInfo.health != 0) { if (this->timer == 2) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_GOMA_JR_FREEZE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_GOMA_JR_FREEZE); } else { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_DEKU_DAMAGE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_DEKU_DAMAGE); } } else { Enemy_StartFinishingBlow(play, &this->actor); if (this->actor.params == DEKUBABA_BIG) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_DEKU_DEAD); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_DEKU_DEAD); } else { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_DEKU_JR_DEAD); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_DEKU_JR_DEAD); } } } diff --git a/src/overlays/actors/ovl_En_Dekunuts/z_en_dekunuts.c b/src/overlays/actors/ovl_En_Dekunuts/z_en_dekunuts.c index 6ade12dbea..f5afb7fb39 100644 --- a/src/overlays/actors/ovl_En_Dekunuts/z_en_dekunuts.c +++ b/src/overlays/actors/ovl_En_Dekunuts/z_en_dekunuts.c @@ -171,7 +171,7 @@ void EnDekunuts_SetupStand(EnDekunuts* this) { void EnDekunuts_SetupBurrow(EnDekunuts* this) { Animation_MorphToPlayOnce(&this->skelAnime, &gDekuNutsBurrowAnim, -5.0f); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_NUTS_DOWN); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_NUTS_DOWN); this->actionFunc = EnDekunuts_Burrow; } @@ -179,7 +179,7 @@ void EnDekunuts_SetupBeginRun(EnDekunuts* this) { Animation_MorphToPlayOnce(&this->skelAnime, &gDekuNutsUnburrowAnim, -3.0f); this->collider.dim.height = 37; this->actor.colChkInfo.mass = 0x32; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_NUTS_DAMAGE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_NUTS_DAMAGE); this->collider.base.acFlags &= ~AC_ON; this->actionFunc = EnDekunuts_BeginRun; } @@ -187,7 +187,7 @@ void EnDekunuts_SetupBeginRun(EnDekunuts* this) { void EnDekunuts_SetupRun(EnDekunuts* this) { Animation_PlayLoop(&this->skelAnime, &gDekuNutsRunAnim); this->animFlagAndTimer = 2; - this->playWalkSound = false; + this->playWalkSfx = false; this->collider.base.acFlags |= AC_ON; this->actionFunc = EnDekunuts_Run; } @@ -212,8 +212,8 @@ void EnDekunuts_SetupBeDamaged(EnDekunuts* this) { this->collider.base.acFlags &= ~AC_ON; this->actionFunc = EnDekunuts_BeDamaged; this->actor.speedXZ = 10.0f; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_NUTS_DAMAGE); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_NUTS_CUTBODY); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_NUTS_DAMAGE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_NUTS_CUTBODY); Actor_SetColorFilter(&this->actor, 0x4000, 0xFF, 0, Animation_GetLastFrame(&gDekuNutsDamageAnim)); } @@ -222,7 +222,7 @@ void EnDekunuts_SetupBeStunned(EnDekunuts* this) { this->animFlagAndTimer = 5; this->actionFunc = EnDekunuts_BeStunned; this->actor.speedXZ = 0.0f; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_GOMA_JR_FREEZE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_GOMA_JR_FREEZE); Actor_SetColorFilter(&this->actor, 0, 0xFF, 0, Animation_GetLastFrame(&gDekuNutsDamageAnim) * this->animFlagAndTimer); } @@ -231,7 +231,7 @@ void EnDekunuts_SetupDie(EnDekunuts* this) { Animation_PlayOnce(&this->skelAnime, &gDekuNutsDieAnim); this->actionFunc = EnDekunuts_Die; this->actor.speedXZ = 0.0f; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_NUTS_DEAD); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_NUTS_DEAD); } void EnDekunuts_Wait(EnDekunuts* this, PlayState* play) { @@ -246,7 +246,7 @@ void EnDekunuts_Wait(EnDekunuts* this, PlayState* play) { if (Animation_OnFrame(&this->skelAnime, 9.0f)) { this->collider.base.acFlags |= AC_ON; } else if (Animation_OnFrame(&this->skelAnime, 8.0f)) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_NUTS_UP); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_NUTS_UP); } this->collider.dim.height = ((CLAMP(this->skelAnime.curFrame, 9.0f, 12.0f) - 9.0f) * 9.0f) + 5.0f; @@ -309,7 +309,7 @@ void EnDekunuts_ThrowNut(EnDekunuts* this, PlayState* play) { spawnPos.z = this->actor.world.pos.z + (Math_CosS(this->actor.shape.rot.y) * 23.0f); if (Actor_Spawn(&play->actorCtx, play, ACTOR_EN_NUTSBALL, spawnPos.x, spawnPos.y, spawnPos.z, this->actor.shape.rot.x, this->actor.shape.rot.y, this->actor.shape.rot.z, 0) != NULL) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_NUTS_THROW); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_NUTS_THROW); } } else if ((this->animFlagAndTimer > 1) && Animation_OnFrame(&this->skelAnime, 12.0f)) { Animation_MorphToPlayOnce(&this->skelAnime, &gDekuNutsSpitAnim, -3.0f); @@ -350,11 +350,11 @@ void EnDekunuts_Run(EnDekunuts* this, PlayState* play) { if (Animation_OnFrame(&this->skelAnime, 0.0f) && (this->animFlagAndTimer != 0)) { this->animFlagAndTimer--; } - if (this->playWalkSound) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_NUTS_WALK); - this->playWalkSound = false; + if (this->playWalkSfx) { + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_NUTS_WALK); + this->playWalkSfx = false; } else { - this->playWalkSound = true; + this->playWalkSfx = true; } Math_StepToF(&this->actor.speedXZ, 7.5f, 1.0f); @@ -414,7 +414,7 @@ void EnDekunuts_BeStunned(EnDekunuts* this, PlayState* play) { if (this->animFlagAndTimer == 0) { EnDekunuts_SetupRun(this); } else { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_NUTS_FAINT); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_NUTS_FAINT); } } } diff --git a/src/overlays/actors/ovl_En_Dekunuts/z_en_dekunuts.h b/src/overlays/actors/ovl_En_Dekunuts/z_en_dekunuts.h index 9003055978..6beefc7c3b 100644 --- a/src/overlays/actors/ovl_En_Dekunuts/z_en_dekunuts.h +++ b/src/overlays/actors/ovl_En_Dekunuts/z_en_dekunuts.h @@ -12,7 +12,7 @@ typedef struct EnDekunuts { /* 0x0000 */ Actor actor; /* 0x014C */ SkelAnime skelAnime; /* 0x0190 */ EnDekunutsActionFunc actionFunc; - /* 0x0194 */ u8 playWalkSound; + /* 0x0194 */ u8 playWalkSfx; /* 0x0195 */ u8 runAwayCount; /* 0x0196 */ s16 animFlagAndTimer; /* 0x0198 */ s16 runDirection; diff --git a/src/overlays/actors/ovl_En_Dh/z_en_dh.c b/src/overlays/actors/ovl_En_Dh/z_en_dh.c index a8e0eeec6e..c00117084a 100644 --- a/src/overlays/actors/ovl_En_Dh/z_en_dh.c +++ b/src/overlays/actors/ovl_En_Dh/z_en_dh.c @@ -211,7 +211,7 @@ void EnDh_Wait(EnDh* this, PlayState* play) { this->actor.flags &= ~ACTOR_FLAG_7; this->actionState++; this->drawDirtWave++; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_DEADHAND_HIDE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_DEADHAND_HIDE); FALLTHROUGH; case 1: this->dirtWavePhase += 0x3A7; @@ -252,10 +252,10 @@ void EnDh_Walk(EnDh* this, PlayState* play) { this->actor.world.rot.y = this->actor.shape.rot.y; SkelAnime_Update(&this->skelAnime); if (((s32)this->skelAnime.curFrame % 8) == 0) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_DEADHAND_WALK); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_DEADHAND_WALK); } if ((play->gameplayFrames & 0x5F) == 0) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_DEADHAND_LAUGH); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_DEADHAND_LAUGH); } if (this->actor.xzDistToPlayer <= 100.0f) { this->actor.speedXZ = 0.0f; @@ -311,7 +311,7 @@ void EnDh_Attack(EnDh* this, PlayState* play) { case 1: Animation_PlayOnce(&this->skelAnime, &object_dh_Anim_001A3C); this->actionState++; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_DEADHAND_BITE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_DEADHAND_BITE); FALLTHROUGH; case 0: Math_SmoothStepToS(&this->actor.shape.rot.y, this->actor.yawTowardsPlayer, 1, 0x5DC, 0); @@ -365,7 +365,7 @@ void EnDh_SetupBurrow(EnDh* this) { this->dirtWavePhase = 0; this->actionState = 0; this->actor.flags &= ~ACTOR_FLAG_0; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_DEADHAND_HIDE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_DEADHAND_HIDE); EnDh_SetupAction(this, EnDh_Burrow); } @@ -405,7 +405,7 @@ void EnDh_SetupDamage(EnDh* this) { if (this->actor.bgCheckFlags & BGCHECKFLAG_GROUND) { this->actor.speedXZ = -1.0f; } - Audio_PlayActorSound2(&this->actor, NA_SE_EN_DEADHAND_DAMAGE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_DEADHAND_DAMAGE); this->curAction = DH_DAMAGE; EnDh_SetupAction(this, EnDh_Damage); } @@ -439,7 +439,7 @@ void EnDh_SetupDeath(EnDh* this) { this->actor.speedXZ = 0.0f; func_800F5B58(); this->actor.params = ENDH_DEATH; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_DEADHAND_DEAD); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_DEADHAND_DEAD); EnDh_SetupAction(this, EnDh_Death); } @@ -461,7 +461,7 @@ void EnDh_Death(EnDh* this, PlayState* play) { } else { if (((s32)this->skelAnime.curFrame == 53) || ((s32)this->skelAnime.curFrame == 56) || ((s32)this->skelAnime.curFrame == 61)) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_RIZA_DOWN); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_RIZA_DOWN); } if ((s32)this->skelAnime.curFrame == 61) { Actor_ChangeCategory(play, &play->actorCtx, &this->actor, ACTORCAT_PROP); diff --git a/src/overlays/actors/ovl_En_Dha/z_en_dha.c b/src/overlays/actors/ovl_En_Dha/z_en_dha.c index c1464a7153..6604f04f14 100644 --- a/src/overlays/actors/ovl_En_Dha/z_en_dha.c +++ b/src/overlays/actors/ovl_En_Dha/z_en_dha.c @@ -221,7 +221,7 @@ void EnDha_Wait(EnDha* this, PlayState* play) { this->actor.parent->params = ENDH_START_ATTACK_GRAB; } - Audio_PlayActorSound2(&this->actor, NA_SE_EN_DEADHAND_GRIP); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_DEADHAND_GRIP); } } else { this->timer += 0x1194; @@ -234,7 +234,7 @@ void EnDha_Wait(EnDha* this, PlayState* play) { } if (this->timer < -0x6E6B) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_DEADHAND_GRIP); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_DEADHAND_GRIP); } } @@ -249,7 +249,7 @@ void EnDha_Wait(EnDha* this, PlayState* play) { } if (this->actor.home.rot.z != 0) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_DEADHAND_HAND_AT); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_DEADHAND_HAND_AT); this->actor.home.rot.z = 0; } } @@ -326,7 +326,7 @@ void EnDha_SetupDeath(EnDha* this) { if (this->actor.parent != NULL) { if (this->actor.parent->params != ENDH_DEATH) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_DEADHAND_HAND_DEAD); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_DEADHAND_HAND_DEAD); } if (this->actor.parent->params <= ENDH_WAIT_UNDERGROUND) { this->actor.parent->params--; @@ -389,7 +389,7 @@ void EnDha_UpdateHealth(EnDha* this, PlayState* play) { this->actor.colChkInfo.health = 8; Item_DropCollectibleRandom(play, &this->actor, &this->actor.world.pos, 0xE0); } else { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_DEADHAND_DAMAGE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_DEADHAND_DAMAGE); this->unk_1C0 = 9; EnDha_SetupTakeDamage(this); } diff --git a/src/overlays/actors/ovl_En_Dns/z_en_dns.c b/src/overlays/actors/ovl_En_Dns/z_en_dns.c index f7b4f6edd0..f7123ff9e1 100644 --- a/src/overlays/actors/ovl_En_Dns/z_en_dns.c +++ b/src/overlays/actors/ovl_En_Dns/z_en_dns.c @@ -437,7 +437,7 @@ void EnDns_SetupBurrow(EnDns* this, PlayState* play) { f32 frameCount = Animation_GetLastFrame(&gBusinessScrubAnim_4404); if (this->skelAnime.curFrame == frameCount) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_AKINDONUTS_HIDE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_AKINDONUTS_HIDE); this->actionFunc = EnDns_Burrow; this->standOnGround = 0; this->yInitPos = this->actor.world.pos.y; diff --git a/src/overlays/actors/ovl_En_Dnt_Demo/z_en_dnt_demo.c b/src/overlays/actors/ovl_En_Dnt_Demo/z_en_dnt_demo.c index a6983284c3..e5b6539ff2 100644 --- a/src/overlays/actors/ovl_En_Dnt_Demo/z_en_dnt_demo.c +++ b/src/overlays/actors/ovl_En_Dnt_Demo/z_en_dnt_demo.c @@ -165,8 +165,8 @@ void EnDntDemo_Judge(EnDntDemo* this, PlayState* play) { FALLTHROUGH; case PLAYER_MASK_TRUTH: if (!GET_ITEMGETINF(ITEMGETINF_1F) && (Player_GetMask(play) != PLAYER_MASK_SKULL)) { - Audio_PlaySoundGeneral(NA_SE_SY_TRE_BOX_APPEAR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_TRE_BOX_APPEAR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); this->prize = DNT_PRIZE_NUTS; this->leader->stageSignal = DNT_LEADER_SIGNAL_UP; reaction = DNT_SIGNAL_LOOK; diff --git a/src/overlays/actors/ovl_En_Dnt_Jiji/z_en_dnt_jiji.c b/src/overlays/actors/ovl_En_Dnt_Jiji/z_en_dnt_jiji.c index 71af59183a..9e97ea5a8c 100644 --- a/src/overlays/actors/ovl_En_Dnt_Jiji/z_en_dnt_jiji.c +++ b/src/overlays/actors/ovl_En_Dnt_Jiji/z_en_dnt_jiji.c @@ -128,7 +128,7 @@ void EnDntJiji_SetupUp(EnDntJiji* this, PlayState* play) { this->endFrame = (f32)Animation_GetLastFrame(&gDntJijiUpAnim); Animation_Change(&this->skelAnime, &gDntJijiUpAnim, 1.0f, 0.0f, this->endFrame, ANIMMODE_ONCE, -10.0f); EffectSsHahen_SpawnBurst(play, &this->actor.world.pos, 6.0f, 0, 15, 5, 20, HAHEN_OBJECT_DEFAULT, 10, NULL); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_NUTS_UP); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_NUTS_UP); this->actionFunc = EnDntJiji_Up; } @@ -144,7 +144,7 @@ void EnDntJiji_SetupUnburrow(EnDntJiji* this, PlayState* play) { this->endFrame = (f32)Animation_GetLastFrame(&gDntJijiUnburrowAnim); Animation_Change(&this->skelAnime, &gDntJijiUnburrowAnim, 1.0f, 0.0f, this->endFrame, ANIMMODE_ONCE, -10.0f); EffectSsHahen_SpawnBurst(play, &this->actor.world.pos, 6.0f, 0, 15, 5, 20, HAHEN_OBJECT_DEFAULT, 10, NULL); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_NUTS_UP); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_NUTS_UP); this->actionFunc = EnDntJiji_Unburrow; } @@ -177,7 +177,7 @@ void EnDntJiji_Walk(EnDntJiji* this, PlayState* play) { Math_ApproachF(&this->actor.speedXZ, 1.0f, 0.2f, 0.4f); if (this->sfxTimer == 0) { this->sfxTimer = 5; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_NUTS_WALK); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_NUTS_WALK); } if ((this->actor.bgCheckFlags & BGCHECKFLAG_WALL) && (this->actor.bgCheckFlags & BGCHECKFLAG_GROUND)) { this->actor.velocity.y = 9.0f; @@ -201,8 +201,8 @@ void EnDntJiji_SetupBurrow(EnDntJiji* this, PlayState* play) { this->endFrame = (f32)Animation_GetLastFrame(&gDntJijiBurrowAnim); Animation_Change(&this->skelAnime, &gDntJijiBurrowAnim, 1.0f, 0.0f, this->endFrame, ANIMMODE_ONCE, -10.0f); EffectSsHahen_SpawnBurst(play, &this->actor.world.pos, 6.0f, 0, 15, 5, 20, HAHEN_OBJECT_DEFAULT, 10, NULL); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_NUTS_UP); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_NUTS_DOWN); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_NUTS_UP); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_NUTS_DOWN); this->actionFunc = EnDntJiji_Burrow; } @@ -214,7 +214,7 @@ void EnDntJiji_SetupCower(EnDntJiji* this, PlayState* play) { this->endFrame = (f32)Animation_GetLastFrame(&gDntJijiCowerAnim); Animation_Change(&this->skelAnime, &gDntJijiCowerAnim, 1.0f, 0.0f, this->endFrame, ANIMMODE_ONCE, -10.0f); EffectSsHahen_SpawnBurst(play, &this->actor.world.pos, 3.0f, 0, 9, 3, 10, HAHEN_OBJECT_DEFAULT, 10, NULL); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_NUTS_UP); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_NUTS_UP); if ((CUR_UPG_VALUE(UPG_NUTS) == 1) || (CUR_UPG_VALUE(UPG_NUTS) == 0)) { this->getItemId = GI_NUT_UPGRADE_30; @@ -349,7 +349,7 @@ void EnDntJiji_Return(EnDntJiji* this, PlayState* play) { } if (this->sfxTimer == 0) { this->sfxTimer = 3; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_NUTS_WALK); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_NUTS_WALK); } if ((fabsf(dx) < 5.0f) && (fabsf(dz) < 5.0f)) { this->actor.world.pos.x = this->flowerPos.x; diff --git a/src/overlays/actors/ovl_En_Dnt_Nomal/z_en_dnt_nomal.c b/src/overlays/actors/ovl_En_Dnt_Nomal/z_en_dnt_nomal.c index a11b8be5f0..fd29e1e49e 100644 --- a/src/overlays/actors/ovl_En_Dnt_Nomal/z_en_dnt_nomal.c +++ b/src/overlays/actors/ovl_En_Dnt_Nomal/z_en_dnt_nomal.c @@ -274,7 +274,7 @@ void EnDntNomal_SetupTargetUnburrow(EnDntNomal* this, PlayState* play) { spawnPos = this->actor.world.pos; spawnPos.y = this->actor.world.pos.y + 50.0f; EffectSsHahen_SpawnBurst(play, &spawnPos, 4.0f, 0, 10, 3, 15, HAHEN_OBJECT_DEFAULT, 10, NULL); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_NUTS_UP); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_NUTS_UP); this->actionFunc = EnDntNomal_TargetUnburrow; } } @@ -306,7 +306,7 @@ void EnDntNomal_TargetWalk(EnDntNomal* this, PlayState* play) { Math_SmoothStepToS(&this->actor.shape.rot.y, RAD_TO_BINANG(Math_FAtan2F(dx, dz)), 0x32, 0xBB8, 0); this->actor.world.rot.y = this->actor.shape.rot.y; if (Animation_OnFrame(&this->skelAnime, 0.0f) || Animation_OnFrame(&this->skelAnime, 6.0f)) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_NUTS_WALK); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_NUTS_WALK); } if (this->actor.world.pos.z > -30.0f) { this->actor.speedXZ = 0.0f; @@ -318,7 +318,7 @@ void EnDntNomal_TargetFacePlayer(EnDntNomal* this, PlayState* play) { SkelAnime_Update(&this->skelAnime); Math_SmoothStepToS(&this->actor.shape.rot.y, this->actor.yawTowardsPlayer, 3, 0x1388, 0); if (Animation_OnFrame(&this->skelAnime, 0.0f) || Animation_OnFrame(&this->skelAnime, 6.0f)) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_NUTS_WALK); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_NUTS_WALK); } if (fabsf(this->actor.shape.rot.y - this->actor.yawTowardsPlayer) < 30.0f) { this->actionFunc = EnDntNomal_SetupTargetTalk; @@ -365,7 +365,7 @@ void EnDntNomal_TargetGivePrize(EnDntNomal* this, PlayState* play) { Actor_Kill(&this->actor); } this->spawnedItem = true; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_NUTS_THROW); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_NUTS_THROW); } if (frame >= this->endFrame) { this->endFrame = (f32)Animation_GetLastFrame(&gHintNutsRunAnim); @@ -387,7 +387,7 @@ void EnDntNomal_TargetReturn(EnDntNomal* this, PlayState* play) { this->actor.speedXZ = 1.0f; } if (Animation_OnFrame(&this->skelAnime, 0.0f) || Animation_OnFrame(&this->skelAnime, 6.0f)) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_NUTS_WALK); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_NUTS_WALK); } this->actor.world.rot.y = this->actor.shape.rot.y; if (this->actor.world.pos.z < -172.0f) { @@ -430,7 +430,7 @@ void EnDntNomal_SetupStageUp(EnDntNomal* this, PlayState* play) { this->rotDirection = -1; } EffectSsHahen_SpawnBurst(play, &this->actor.world.pos, 4.0f, 0, 10, 3, 15, HAHEN_OBJECT_DEFAULT, 10, NULL); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_NUTS_UP); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_NUTS_UP); this->isSolid = true; this->actionFunc = EnDntNomal_StageUp; } @@ -485,7 +485,7 @@ void EnDntNomal_SetupStageUnburrow(EnDntNomal* this, PlayState* play) { Animation_Change(&this->skelAnime, &gDntStageUnburrowAnim, 1.0f, 0.0f, this->endFrame, ANIMMODE_ONCE, -10.0f); this->isSolid = false; EffectSsHahen_SpawnBurst(play, &this->actor.world.pos, 4.0f, 0, 10, 3, 15, HAHEN_OBJECT_DEFAULT, 10, NULL); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_NUTS_UP); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_NUTS_UP); this->actionFunc = EnDntNomal_StageUnburrow; } } @@ -537,10 +537,10 @@ void EnDntNomal_StageCelebrate(EnDntNomal* this, PlayState* play) { if (this->timer5 == 0) { this->timer5 = 20; if ((this->type & 1) == 0) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_NUTS_DAMAGE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_NUTS_DAMAGE); } } else if ((this->timer5 & 3) == 0) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_NUTS_WALK); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_NUTS_WALK); } if ((this->actor.bgCheckFlags & BGCHECKFLAG_WALL) && (this->actor.bgCheckFlags & BGCHECKFLAG_GROUND)) { this->actor.velocity.y = 7.5f; @@ -592,7 +592,7 @@ void EnDntNomal_SetupStageHide(EnDntNomal* this, PlayState* play) { this->endFrame = (f32)Animation_GetLastFrame(&gDntStageHideAnim); Animation_Change(&this->skelAnime, &gDntStageHideAnim, 1.0f, 0.0f, this->endFrame, ANIMMODE_ONCE, -10.0f); this->isSolid = false; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_NUTS_DOWN); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_NUTS_DOWN); this->actionFunc = EnDntNomal_StageHide; } } @@ -605,7 +605,7 @@ void EnDntNomal_StageHide(EnDntNomal* this, PlayState* play) { SkelAnime_Update(&this->skelAnime); if (frame >= this->endFrame) { EffectSsHahen_SpawnBurst(play, &this->actor.world.pos, 4.0f, 0, 10, 3, 15, HAHEN_OBJECT_DEFAULT, 10, NULL); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_NUTS_UP); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_NUTS_UP); switch (this->action) { case DNT_ACTION_NONE: this->actionFunc = EnDntNomal_SetupStageWait; @@ -700,7 +700,7 @@ void EnDntNomal_StageAttack(EnDntNomal* this, PlayState* play) { if (nut != NULL) { nut->velocity.y = spawnOffset.y * 0.5f; } - Audio_PlayActorSound2(&this->actor, NA_SE_EN_NUTS_THROW); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_NUTS_THROW); this->spawnedItem = true; } } @@ -724,7 +724,7 @@ void EnDntNomal_StageReturn(EnDntNomal* this, PlayState* play) { if (this->timer5 == 0) { this->timer5 = 10; } else if (!(this->timer5 & 1)) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_NUTS_WALK); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_NUTS_WALK); } if ((fabsf(sp2C) < 7.0f) && (fabsf(sp28) < 7.0f)) { this->actor.world.pos.x = this->flowerPos.x; diff --git a/src/overlays/actors/ovl_En_Dodojr/z_en_dodojr.c b/src/overlays/actors/ovl_En_Dodojr/z_en_dodojr.c index 9827a90a49..7ad951decd 100644 --- a/src/overlays/actors/ovl_En_Dodojr/z_en_dodojr.c +++ b/src/overlays/actors/ovl_En_Dodojr/z_en_dodojr.c @@ -90,7 +90,7 @@ void EnDodojr_Destroy(Actor* thisx, PlayState* play) { } void func_809F64D0(EnDodojr* this) { - Audio_PlayActorSound2(&this->actor, NA_SE_IT_BOMB_EXPLOSION); + Audio_PlayActorSfx2(&this->actor, NA_SE_IT_BOMB_EXPLOSION); Actor_SetColorFilter(&this->actor, 0x4000, 200, 0, 8); } @@ -145,7 +145,7 @@ s32 func_809F68B0(EnDodojr* this, PlayState* play) { } if (this->actor.bgCheckFlags & BGCHECKFLAG_GROUND) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_DODO_M_GND); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_DODO_M_GND); this->dustPos = this->actor.world.pos; func_809F6510(this, play, 10); this->actor.velocity.y = 10.0f / (4 - this->unk_1FC); @@ -213,7 +213,7 @@ void func_809F6BBC(EnDodojr* this) { void func_809F6C24(EnDodojr* this) { Animation_Change(&this->skelAnime, &object_dodojr_Anim_000724, 1.0f, 8.0f, 12.0f, ANIMMODE_ONCE, 0.0f); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_DODO_M_EAT); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_DODO_M_EAT); this->actor.speedXZ = 0.0f; this->actor.velocity.x = 0.0f; this->actor.velocity.z = 0.0f; @@ -314,7 +314,7 @@ s32 func_809F706C(EnDodojr* this) { } void func_809F709C(EnDodojr* this) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_DODO_M_DEAD); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_DODO_M_DEAD); this->actor.flags &= ~ACTOR_FLAG_0; func_809F6A20(this); this->actionFunc = func_809F7AB8; @@ -357,7 +357,7 @@ s32 func_809F70E8(EnDodojr* this, PlayState* play) { if ((this->actor.colChkInfo.damageEffect == 1) && (this->actionFunc != func_809F78EC) && (this->actionFunc != func_809F786C)) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_GOMA_JR_FREEZE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_GOMA_JR_FREEZE); this->timer1 = 120; Actor_SetColorFilter(&this->actor, 0, 200, 0, 120); func_809F6A20(this); @@ -398,7 +398,7 @@ void func_809F73AC(EnDodojr* this, PlayState* play) { if (!(dist >= 40.0f)) { Animation_Change(&this->skelAnime, &object_dodojr_Anim_000860, 1.8f, 0.0f, lastFrame, ANIMMODE_LOOP_INTERP, -10.0f); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_DODO_M_UP); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_DODO_M_UP); this->actor.world.pos.y -= 60.0f; this->actor.flags |= ACTOR_FLAG_0; this->actor.world.rot.x -= 0x4000; @@ -432,7 +432,7 @@ void func_809F758C(EnDodojr* this, PlayState* play) { func_809F6730(this, play, &this->actor.world.pos); if (DECR(this->timer4) == 0) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_DODO_M_MOVE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_DODO_M_MOVE); this->timer4 = 5; } @@ -445,13 +445,13 @@ void func_809F758C(EnDodojr* this, PlayState* play) { func_809F6E54(this, play); if (func_809F706C(this) != 0) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_DODO_M_CRY); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_DODO_M_CRY); func_809F6B38(this); this->actionFunc = func_809F799C; } if (this->actor.bgCheckFlags & BGCHECKFLAG_WALL) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_DODO_M_DOWN); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_DODO_M_DOWN); func_809F6BBC(this); this->actionFunc = func_809F7A00; } @@ -465,7 +465,7 @@ void func_809F768C(EnDodojr* this, PlayState* play) { bomb->timer++; this->bomb->world.pos = this->headPos; } else { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_DODO_K_DRINK); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_DODO_K_DRINK); Actor_Kill(this->bomb); this->timer3 = 24; this->unk_1FC = 0; diff --git a/src/overlays/actors/ovl_En_Dodongo/z_en_dodongo.c b/src/overlays/actors/ovl_En_Dodongo/z_en_dodongo.c index 12d2afc168..d17dcdcbe8 100644 --- a/src/overlays/actors/ovl_En_Dodongo/z_en_dodongo.c +++ b/src/overlays/actors/ovl_En_Dodongo/z_en_dodongo.c @@ -403,7 +403,7 @@ void EnDodongo_SetupStunned(EnDodongo* this) { if (this->damageEffect == 0xF) { this->iceTimer = 36; } - Audio_PlayActorSound2(&this->actor, NA_SE_EN_GOMA_JR_FREEZE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_GOMA_JR_FREEZE); EnDodongo_SetupAction(this, EnDodongo_Stunned); } @@ -430,10 +430,10 @@ void EnDodongo_BreatheFire(EnDodongo* this, PlayState* play) { s16 fireFrame; if ((s32)this->skelAnime.curFrame == 24) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_DODO_J_CRY); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_DODO_J_CRY); } if ((29.0f <= this->skelAnime.curFrame) && (this->skelAnime.curFrame <= 43.0f)) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_DODO_J_FIRE - SFX_FLAG); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_DODO_J_FIRE - SFX_FLAG); fireFrame = this->skelAnime.curFrame - 29.0f; pos = this->actor.world.pos; pos.y += 35.0f; @@ -441,7 +441,7 @@ void EnDodongo_BreatheFire(EnDodongo* this, PlayState* play) { EnDodongo_ShiftVecRadial(this->actor.world.rot.y, 2.5f, &accel); EffectSsDFire_SpawnFixedScale(play, &pos, &velocity, &accel, 255 - (fireFrame * 10), fireFrame + 3); } else if ((2.0f <= this->skelAnime.curFrame) && (this->skelAnime.curFrame <= 20.0f)) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_DODO_J_BREATH - SFX_FLAG); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_DODO_J_BREATH - SFX_FLAG); } if (SkelAnime_Update(&this->skelAnime)) { EnDodongo_SetupEndBreatheFire(this); @@ -470,7 +470,7 @@ void EnDodongo_SwallowBomb(EnDodongo* this, PlayState* play) { } if ((s32)this->skelAnime.curFrame == 28) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_DODO_J_EAT); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_DODO_J_EAT); if (this->actor.child != NULL) { Actor_Kill(this->actor.child); this->actor.child = NULL; @@ -496,7 +496,7 @@ void EnDodongo_SwallowBomb(EnDodongo* this, PlayState* play) { func_8002836C(play, &pos, &deathFireVel, &deathFireAccel, &this->bombSmokePrimColor, &this->bombSmokeEnvColor, 400, 10, 10); } - Audio_PlayActorSound2(&this->actor, NA_SE_IT_BOMB_EXPLOSION); + Audio_PlayActorSfx2(&this->actor, NA_SE_IT_BOMB_EXPLOSION); Actor_SetColorFilter(&this->actor, 0x4000, 0x78, 0, 8); } } @@ -549,13 +549,13 @@ void EnDodongo_Walk(EnDodongo* this, PlayState* play) { SkelAnime_Update(&this->skelAnime); if ((s32)this->skelAnime.curFrame < 21) { if (!this->rightFootStep) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_DODO_J_WALK); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_DODO_J_WALK); Actor_SpawnFloorDustRing(play, &this->actor, &this->leftFootPos, 10.0f, 3, 2.0f, 200, 15, false); this->rightFootStep = true; } } else { if (this->rightFootStep) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_DODO_J_WALK); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_DODO_J_WALK); Actor_SpawnFloorDustRing(play, &this->actor, &this->rightFootPos, 10.0f, 3, 2.0f, 200, 15, false); this->rightFootStep = false; } @@ -593,7 +593,7 @@ void EnDodongo_Walk(EnDodongo* this, PlayState* play) { void EnDodongo_SetupSweepTail(EnDodongo* this) { Animation_MorphToPlayOnce(&this->skelAnime, &gDodongoDamageAnim, -4.0f); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_DODO_J_DAMAGE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_DODO_J_DAMAGE); this->actionState = DODONGO_SWEEP_TAIL; this->timer = 0; this->actor.speedXZ = 0.0f; @@ -625,7 +625,7 @@ void EnDodongo_SweepTail(EnDodongo* this, PlayState* play) { } else { animation = &gDodongoSweepTailRightAnim; } - Audio_PlayActorSound2(&this->actor, NA_SE_EN_DODO_J_TAIL); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_DODO_J_TAIL); Animation_PlayOnceSetSpeed(&this->skelAnime, animation, 2.0f); this->timer = 18; this->colliderBody.base.atFlags = this->sphElements[1].info.toucherFlags = @@ -651,7 +651,7 @@ void EnDodongo_SweepTail(EnDodongo* this, PlayState* play) { Player* player = GET_PLAYER(play); if (this->colliderBody.base.at == &player->actor) { - Audio_PlayActorSound2(&player->actor, NA_SE_PL_BODY_HIT); + Audio_PlayActorSfx2(&player->actor, NA_SE_PL_BODY_HIT); } } CollisionCheck_SetAT(play, &play->colChkCtx, &this->colliderBody.base); @@ -661,7 +661,7 @@ void EnDodongo_SweepTail(EnDodongo* this, PlayState* play) { void EnDodongo_SetupDeath(EnDodongo* this, PlayState* play) { Animation_MorphToPlayOnce(&this->skelAnime, &gDodongoDieAnim, -8.0f); this->timer = 0; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_DODO_J_DEAD); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_DODO_J_DEAD); this->actionState = DODONGO_DEATH; this->actor.flags &= ~ACTOR_FLAG_0; this->actor.speedXZ = 0.0f; @@ -688,7 +688,7 @@ void EnDodongo_Death(EnDodongo* this, PlayState* play) { } } } else if ((s32)this->skelAnime.curFrame == 52) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_RIZA_DOWN); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_RIZA_DOWN); } if (this->timer != 0) { this->timer--; @@ -774,7 +774,7 @@ void EnDodongo_Update(Actor* thisx, PlayState* play) { UPDBGCHECKINFO_FLAG_0 | UPDBGCHECKINFO_FLAG_2 | UPDBGCHECKINFO_FLAG_3 | UPDBGCHECKINFO_FLAG_4); if (this->actor.bgCheckFlags & BGCHECKFLAG_GROUND_TOUCH) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_RIZA_DOWN); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_RIZA_DOWN); } } CollisionCheck_SetOC(play, &play->colChkCtx, &this->colliderBody.base); diff --git a/src/overlays/actors/ovl_En_Dog/z_en_dog.c b/src/overlays/actors/ovl_En_Dog/z_en_dog.c index afd70c7dd0..36fa05156b 100644 --- a/src/overlays/actors/ovl_En_Dog/z_en_dog.c +++ b/src/overlays/actors/ovl_En_Dog/z_en_dog.c @@ -92,7 +92,7 @@ void EnDog_PlayWalkSFX(EnDog* this) { if (this->skelAnime.animation == walk) { if ((this->skelAnime.curFrame == 1.0f) || (this->skelAnime.curFrame == 7.0f)) { - Audio_PlayActorSound2(&this->actor, NA_SE_EV_CHIBI_WALK); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_CHIBI_WALK); } } } @@ -102,7 +102,7 @@ void EnDog_PlayRunSFX(EnDog* this) { if (this->skelAnime.animation == run) { if ((this->skelAnime.curFrame == 2.0f) || (this->skelAnime.curFrame == 4.0f)) { - Audio_PlayActorSound2(&this->actor, NA_SE_EV_CHIBI_WALK); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_CHIBI_WALK); } } } @@ -112,7 +112,7 @@ void EnDog_PlayBarkSFX(EnDog* this) { if (this->skelAnime.animation == bark) { if ((this->skelAnime.curFrame == 13.0f) || (this->skelAnime.curFrame == 19.0f)) { - Audio_PlayActorSound2(&this->actor, NA_SE_EV_SMALL_DOG_BARK); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_SMALL_DOG_BARK); } } } diff --git a/src/overlays/actors/ovl_En_Door/z_en_door.c b/src/overlays/actors/ovl_En_Door/z_en_door.c index 057ef258d8..7bdce6ec95 100644 --- a/src/overlays/actors/ovl_En_Door/z_en_door.c +++ b/src/overlays/actors/ovl_En_Door/z_en_door.c @@ -197,7 +197,7 @@ void EnDoor_Idle(EnDoor* this, PlayState* play) { if (this->lockTimer != 0) { gSaveContext.inventory.dungeonKeys[gSaveContext.mapIndex]--; Flags_SetSwitch(play, this->actor.params & 0x3F); - Audio_PlayActorSound2(&this->actor, NA_SE_EV_CHAIN_KEY_UNLOCK); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_CHAIN_KEY_UNLOCK); } } else if (!Player_InCsMode(play)) { if (fabsf(playerPosRelToDoor.y) < 20.0f && fabsf(playerPosRelToDoor.x) < 20.0f && @@ -270,10 +270,10 @@ void EnDoor_Open(EnDoor* this, PlayState* play) { this->actionFunc = EnDoor_Idle; this->playerIsOpening = 0; } else if (Animation_OnFrame(&this->skelAnime, sDoorAnimOpenFrames[this->animStyle])) { - Audio_PlayActorSound2(&this->actor, (play->sceneNum == SCENE_HAKADAN || play->sceneNum == SCENE_HAKADANCH || - play->sceneNum == SCENE_HIDAN) - ? NA_SE_EV_IRON_DOOR_OPEN - : NA_SE_OC_DOOR_OPEN); + Audio_PlayActorSfx2(&this->actor, (play->sceneNum == SCENE_HAKADAN || play->sceneNum == SCENE_HAKADANCH || + play->sceneNum == SCENE_HIDAN) + ? NA_SE_EV_IRON_DOOR_OPEN + : NA_SE_OC_DOOR_OPEN); if (this->skelAnime.playSpeed < 1.5f) { numEffects = (s32)(Rand_ZeroOne() * 30.0f) + 50; for (i = 0; i < numEffects; i++) { @@ -281,10 +281,10 @@ void EnDoor_Open(EnDoor* this, PlayState* play) { } } } else if (Animation_OnFrame(&this->skelAnime, sDoorAnimCloseFrames[this->animStyle])) { - Audio_PlayActorSound2(&this->actor, (play->sceneNum == SCENE_HAKADAN || play->sceneNum == SCENE_HAKADANCH || - play->sceneNum == SCENE_HIDAN) - ? NA_SE_EV_IRON_DOOR_CLOSE - : NA_SE_EV_DOOR_CLOSE); + Audio_PlayActorSfx2(&this->actor, (play->sceneNum == SCENE_HAKADAN || play->sceneNum == SCENE_HAKADANCH || + play->sceneNum == SCENE_HIDAN) + ? NA_SE_EV_IRON_DOOR_CLOSE + : NA_SE_EV_DOOR_CLOSE); } } } diff --git a/src/overlays/actors/ovl_En_Ds/z_en_ds.c b/src/overlays/actors/ovl_En_Ds/z_en_ds.c index b88941f325..02eb8c5baa 100644 --- a/src/overlays/actors/ovl_En_Ds/z_en_ds.c +++ b/src/overlays/actors/ovl_En_Ds/z_en_ds.c @@ -207,8 +207,8 @@ void EnDs_Wait(EnDs* this, PlayState* play) { if (Actor_ProcessTalkRequest(&this->actor, play)) { if (func_8002F368(play) == EXCH_ITEM_ODD_MUSHROOM) { - Audio_PlaySoundGeneral(NA_SE_SY_TRE_BOX_APPEAR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_TRE_BOX_APPEAR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); player->actor.textId = 0x504A; this->actionFunc = EnDs_OfferOddPotion; } else if (GET_ITEMGETINF(ITEMGETINF_30)) { diff --git a/src/overlays/actors/ovl_En_Du/z_en_du.c b/src/overlays/actors/ovl_En_Du/z_en_du.c index 12dd021e10..abaad8d227 100644 --- a/src/overlays/actors/ovl_En_Du/z_en_du.c +++ b/src/overlays/actors/ovl_En_Du/z_en_du.c @@ -349,8 +349,8 @@ void func_809FE4A4(EnDu* this, PlayState* play) { EnDu_SetupAction(this, func_809FE890); play->msgCtx.ocarinaMode = OCARINA_MODE_04; } else if (play->msgCtx.ocarinaMode == OCARINA_MODE_03) { - Audio_PlaySoundGeneral(NA_SE_SY_CORRECT_CHIME, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_CORRECT_CHIME, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); play->csCtx.segment = SEGMENTED_TO_VIRTUAL(gGoronCityDaruniaCorrectCs); gSaveContext.cutsceneTrigger = 1; this->unk_1E8 = 0; @@ -394,16 +394,16 @@ void func_809FE798(EnDu* this, PlayState* play) { if (DECR(this->unk_1E2) != 0) { switch (this->unk_1E2) { case 0x50: - Audio_PlayActorSound2(&this->actor, NA_SE_EV_CHAIN_KEY_UNLOCK_B); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_CHAIN_KEY_UNLOCK_B); break; case 0x3C: - Audio_PlayActorSound2(&this->actor, NA_SE_EV_SLIDE_DOOR_OPEN); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_SLIDE_DOOR_OPEN); break; case 0xF: - Audio_PlayActorSound2(&this->actor, NA_SE_EV_SLIDE_DOOR_CLOSE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_SLIDE_DOOR_CLOSE); break; case 5: - Audio_PlayActorSound2(&this->actor, NA_SE_EV_STONE_BOUND); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_STONE_BOUND); break; } if (this->unk_1E2 >= 0x3D) { diff --git a/src/overlays/actors/ovl_En_Dy_Extra/z_en_dy_extra.c b/src/overlays/actors/ovl_En_Dy_Extra/z_en_dy_extra.c index 333559abfb..26b9308daa 100644 --- a/src/overlays/actors/ovl_En_Dy_Extra/z_en_dy_extra.c +++ b/src/overlays/actors/ovl_En_Dy_Extra/z_en_dy_extra.c @@ -82,7 +82,7 @@ void EnDyExtra_Update(Actor* thisx, PlayState* play) { this->actor.scale.x = this->scale.x; this->actor.scale.y = this->scale.y; this->actor.scale.z = this->scale.z; - Audio_PlayActorSound2(&this->actor, NA_SE_PL_SPIRAL_HEAL_BEAM - SFX_FLAG); + Audio_PlayActorSfx2(&this->actor, NA_SE_PL_SPIRAL_HEAL_BEAM - SFX_FLAG); this->actionFunc(this, play); Actor_MoveForward(&this->actor); } diff --git a/src/overlays/actors/ovl_En_Eiyer/z_en_eiyer.c b/src/overlays/actors/ovl_En_Eiyer/z_en_eiyer.c index 201d43237c..6dcc182610 100644 --- a/src/overlays/actors/ovl_En_Eiyer/z_en_eiyer.c +++ b/src/overlays/actors/ovl_En_Eiyer/z_en_eiyer.c @@ -235,7 +235,7 @@ void EnEiyer_SetupAmbush(EnEiyer* this, PlayState* play) { this->collider.base.acFlags &= ~AC_ON; this->actor.shape.shadowScale = 65.0f; this->actor.shape.yOffset = 600.0f; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_OCTAROCK_JUMP); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_OCTAROCK_JUMP); EffectSsGSplash_Spawn(play, &this->actor.world.pos, NULL, NULL, 1, 700); this->actionFunc = EnEiyer_Ambush; } @@ -319,7 +319,7 @@ void EnEiyer_SetupStunned(EnEiyer* this) { this->collider.dim.height = sColCylInit.dim.height + 8; Actor_SetColorFilter(&this->actor, 0, 200, 0, 80); this->collider.base.atFlags &= ~AT_ON; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_GOMA_JR_FREEZE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_GOMA_JR_FREEZE); this->actionFunc = EnEiyer_Stunned; } @@ -495,7 +495,7 @@ void EnEiyer_Land(EnEiyer* this, PlayState* play) { if (this->timer == -1) { if ((this->actor.bgCheckFlags & BGCHECKFLAG_WALL) || (this->actor.bgCheckFlags & BGCHECKFLAG_GROUND)) { this->timer = 10; - SoundSource_PlaySfxAtFixedWorldPos(play, &this->actor.world.pos, 30, NA_SE_EN_OCTAROCK_SINK); + SfxSource_PlaySfxAtFixedWorldPos(play, &this->actor.world.pos, 30, NA_SE_EN_OCTAROCK_SINK); if (this->actor.bgCheckFlags & BGCHECKFLAG_GROUND) { EffectSsGSplash_Spawn(play, &this->actor.world.pos, NULL, NULL, 1, 700); @@ -584,11 +584,11 @@ void EnEiyer_Stunned(EnEiyer* this, PlayState* play) { SkelAnime_Update(&this->skelanime); if (Animation_OnFrame(&this->skelanime, 0.0f)) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_EIER_FLUTTER); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_EIER_FLUTTER); } if (this->actor.bgCheckFlags & BGCHECKFLAG_GROUND_TOUCH) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_DODO_M_GND); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_DODO_M_GND); } if (this->timer == 0) { @@ -607,7 +607,7 @@ void EnEiyer_UpdateDamage(EnEiyer* this, PlayState* play) { if (this->actor.colChkInfo.damageEffect != 0 || this->actor.colChkInfo.damage != 0) { if (Actor_ApplyDamage(&this->actor) == 0) { Enemy_StartFinishingBlow(play, &this->actor); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_EIER_DEAD); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_EIER_DEAD); this->actor.flags &= ~ACTOR_FLAG_0; } @@ -623,7 +623,7 @@ void EnEiyer_UpdateDamage(EnEiyer* this, PlayState* play) { EnEiyer_SetupStunned(this); } } else if (this->actor.colChkInfo.health != 0) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_EIER_DAMAGE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_EIER_DAMAGE); EnEiyer_SetupHurt(this); } else { this->collider.dim.height = sColCylInit.dim.height; diff --git a/src/overlays/actors/ovl_En_Elf/z_en_elf.c b/src/overlays/actors/ovl_En_Elf/z_en_elf.c index 6a3f175fcf..8358e19b50 100644 --- a/src/overlays/actors/ovl_En_Elf/z_en_elf.c +++ b/src/overlays/actors/ovl_En_Elf/z_en_elf.c @@ -728,7 +728,7 @@ void func_80A03610(EnElf* this, PlayState* play) { this->unk_2BC = Math_Atan2S(this->actor.velocity.z, this->actor.velocity.x); EnElf_SpawnSparkles(this, play, 32); - Audio_PlayActorSound2(&this->actor, NA_SE_EV_FIATY_HEAL - SFX_FLAG); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_FIATY_HEAL - SFX_FLAG); } void func_80A03814(EnElf* this, PlayState* play) { @@ -763,7 +763,7 @@ void func_80A03814(EnElf* this, PlayState* play) { func_80A02E30(this, &player->bodyPartsPos[PLAYER_BODYPART_WAIST]); this->unk_2BC = Math_Atan2S(this->actor.velocity.z, this->actor.velocity.x); EnElf_SpawnSparkles(this, play, 32); - Audio_PlayActorSound2(&this->actor, NA_SE_EV_FIATY_HEAL - SFX_FLAG); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_FIATY_HEAL - SFX_FLAG); } void func_80A03990(EnElf* this, PlayState* play) { @@ -788,7 +788,7 @@ void func_80A03990(EnElf* this, PlayState* play) { Actor_SetScale(&this->actor, (1.0f - (SQ(this->unk_2B4) * SQ(1.0f / 9.0f))) * 0.008f); this->unk_2BC = Math_Atan2S(this->actor.velocity.z, this->actor.velocity.x); EnElf_SpawnSparkles(this, play, 32); - Audio_PlayActorSound2(&this->actor, NA_SE_EV_FIATY_HEAL - SFX_FLAG); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_FIATY_HEAL - SFX_FLAG); } void func_80A03AB0(EnElf* this, PlayState* play) { @@ -863,13 +863,13 @@ void func_80A03CF8(EnElf* this, PlayState* play) { } if ((play->sceneNum == SCENE_LINK_HOME) && (gSaveContext.sceneSetupIndex == 4)) { - // play dash sound as Navi enters Links house in the intro + // play dash sound effect as Navi enters Links house in the intro if (1) {} if (play->csCtx.frames == 55) { - Audio_PlayActorSound2(&this->actor, NA_SE_EV_FAIRY_DASH); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_FAIRY_DASH); } - // play dash sound in intervals as Navi is waking up Link in the intro + // play dash sound effect in intervals as Navi is waking up Link in the intro if (this->unk_2A8 == 6) { if (this->fairyFlags & 0x40) { if (prevPos.y < this->actor.world.pos.y) { @@ -878,7 +878,7 @@ void func_80A03CF8(EnElf* this, PlayState* play) { } else { if (this->actor.world.pos.y < prevPos.y) { this->fairyFlags |= 0x40; - Audio_PlayActorSound2(&this->actor, NA_SE_EV_FAIRY_DASH); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_FAIRY_DASH); } } } @@ -961,7 +961,7 @@ void func_80A03CF8(EnElf* this, PlayState* play) { this->fairyFlags |= 2; if (this->unk_2C7 == 0) { - Audio_PlayActorSound2(&this->actor, NA_SE_EV_FAIRY_DASH); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_FAIRY_DASH); } this->unk_2C0 = 0x64; @@ -1002,14 +1002,14 @@ void func_80A04414(EnElf* this, PlayState* play) { Actor* arrowPointedActor = play->actorCtx.targetCtx.arrowPointedActor; Player* player = GET_PLAYER(play); f32 transitionRate; - u16 targetSound; + u16 sfxId; if (play->actorCtx.targetCtx.unk_40 != 0.0f) { this->unk_2C6 = 0; this->unk_29C = 1.0f; if (this->unk_2C7 == 0) { - Audio_PlayActorSound2(&this->actor, NA_SE_EV_FAIRY_DASH); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_FAIRY_DASH); } } else { @@ -1039,14 +1039,13 @@ void func_80A04414(EnElf* this, PlayState* play) { } else { if ((arrowPointedActor != NULL) && (player->unk_664 != NULL)) { if (arrowPointedActor->category == ACTORCAT_NPC) { - targetSound = NA_SE_VO_NAVY_HELLO; + sfxId = NA_SE_VO_NAVY_HELLO; } else { - targetSound = - (arrowPointedActor->category == ACTORCAT_ENEMY) ? NA_SE_VO_NAVY_ENEMY : NA_SE_VO_NAVY_HEAR; + sfxId = (arrowPointedActor->category == ACTORCAT_ENEMY) ? NA_SE_VO_NAVY_ENEMY : NA_SE_VO_NAVY_HEAR; } if (this->unk_2C7 == 0) { - Audio_PlayActorSound2(&this->actor, targetSound); + Audio_PlayActorSfx2(&this->actor, sfxId); } this->fairyFlags |= 1; @@ -1105,7 +1104,7 @@ void func_80A0461C(EnElf* this, PlayState* play) { temp = 0; } else { if (this->unk_2C7 == 0) { - Audio_PlayActorSound2(&this->actor, NA_SE_EV_NAVY_VANISH); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_NAVY_VANISH); } temp = 7; } @@ -1149,7 +1148,7 @@ void func_80A0461C(EnElf* this, PlayState* play) { if (!(player->stateFlags2 & PLAYER_STATE2_20)) { temp = 7; if (this->unk_2C7 == 0) { - Audio_PlayActorSound2(&this->actor, NA_SE_EV_NAVY_VANISH); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_NAVY_VANISH); } } break; @@ -1159,7 +1158,7 @@ void func_80A0461C(EnElf* this, PlayState* play) { this->unk_2C0 = 42; temp = 11; if (this->unk_2C7 == 0) { - Audio_PlayActorSound2(&this->actor, NA_SE_EV_FAIRY_DASH); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_FAIRY_DASH); } } break; diff --git a/src/overlays/actors/ovl_En_Encount2/z_en_encount2.c b/src/overlays/actors/ovl_En_Encount2/z_en_encount2.c index d343a43da9..db3c4dc213 100644 --- a/src/overlays/actors/ovl_En_Encount2/z_en_encount2.c +++ b/src/overlays/actors/ovl_En_Encount2/z_en_encount2.c @@ -151,7 +151,7 @@ void EnEncount2_SpawnRocks(EnEncount2* this, PlayState* play) { spawnerState = ENCOUNT2_ACTIVE_DEATH_MOUNTAIN; } - Audio_PlayActorSound2(&this->actor, NA_SE_EV_VOLCANO - SFX_FLAG); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_VOLCANO - SFX_FLAG); } else if ((this->actor.xzDistToPlayer < 700.0f) && (Flags_GetSwitch(play, 0x37) != 0)) { s16 scene = play->sceneNum; diff --git a/src/overlays/actors/ovl_En_Ex_Ruppy/z_en_ex_ruppy.c b/src/overlays/actors/ovl_En_Ex_Ruppy/z_en_ex_ruppy.c index 3f586eecda..3d92e7f398 100644 --- a/src/overlays/actors/ovl_En_Ex_Ruppy/z_en_ex_ruppy.c +++ b/src/overlays/actors/ovl_En_Ex_Ruppy/z_en_ex_ruppy.c @@ -338,7 +338,7 @@ void EnExRuppy_WaitToBlowUp(EnExRuppy* this, PlayState* play) { } EffectSsBomb2_SpawnLayered(play, &this->actor.world.pos, &velocity, &accel, explosionScale, explosionScaleStep); func_8002F71C(play, &this->actor, 2.0f, this->actor.yawTowardsPlayer, 0.0f); - Audio_PlayActorSound2(&this->actor, NA_SE_IT_BOMB_EXPLOSION); + Audio_PlayActorSfx2(&this->actor, NA_SE_IT_BOMB_EXPLOSION); Actor_Kill(&this->actor); } } diff --git a/src/overlays/actors/ovl_En_Fd/z_en_fd.c b/src/overlays/actors/ovl_En_Fd/z_en_fd.c index ee6129effa..688229b035 100644 --- a/src/overlays/actors/ovl_En_Fd/z_en_fd.c +++ b/src/overlays/actors/ovl_En_Fd/z_en_fd.c @@ -292,7 +292,7 @@ s32 EnFd_ColliderCheck(EnFd* this, PlayState* play) { } this->invincibilityTimer = 30; this->actor.flags &= ~ACTOR_FLAG_0; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_FLAME_DAMAGE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_FLAME_DAMAGE); Enemy_StartFinishingBlow(play, &this->actor); return true; } else if (DECR(this->attackTimer) == 0 && this->collider.base.atFlags & AT_HIT) { @@ -305,7 +305,7 @@ s32 EnFd_ColliderCheck(EnFd* this, PlayState* play) { return false; } this->attackTimer = 30; - Audio_PlayActorSound2(&player->actor, NA_SE_PL_BODY_HIT); + Audio_PlayActorSfx2(&player->actor, NA_SE_PL_BODY_HIT); func_8002F71C(play, &this->actor, this->actor.speedXZ + 2.0f, this->actor.yawTowardsPlayer, 6.0f); } return false; @@ -479,7 +479,7 @@ void EnFd_Reappear(EnFd* this, PlayState* play) { this->actor.scale.y = 0.0f; this->fadeAlpha = 255.0f; Animation_ChangeByInfo(&this->skelAnime, sAnimationInfo, ENFD_ANIM_0); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_FLAME_LAUGH); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_FLAME_LAUGH); this->actionFunc = EnFd_SpinAndGrow; } @@ -622,7 +622,7 @@ void EnFd_Run(EnFd* this, PlayState* play) { this->actor.world.rot = this->actor.shape.rot; func_8002F974(&this->actor, NA_SE_EN_FLAME_RUN - SFX_FLAG); if (this->skelAnime.curFrame == 6.0f || this->skelAnime.curFrame == 13.0f || this->skelAnime.curFrame == 28.0f) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_FLAME_KICK); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_FLAME_KICK); } Math_SmoothStepToF(&this->actor.speedXZ, 8.0f, 0.1f, 1.0f, 0.0f); } @@ -665,7 +665,7 @@ void EnFd_Update(Actor* thisx, PlayState* play) { if (EnFd_SpawnCore(this, play)) { this->actor.flags &= ~ACTOR_FLAG_0; this->invincibilityTimer = 30; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_FLAME_DAMAGE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_FLAME_DAMAGE); Enemy_StartFinishingBlow(play, &this->actor); } else { this->actor.flags &= ~ACTOR_FLAG_13; diff --git a/src/overlays/actors/ovl_En_Fhg_Fire/z_en_fhg_fire.c b/src/overlays/actors/ovl_En_Fhg_Fire/z_en_fhg_fire.c index 0045c590d0..a5c2c1c957 100644 --- a/src/overlays/actors/ovl_En_Fhg_Fire/z_en_fhg_fire.c +++ b/src/overlays/actors/ovl_En_Fhg_Fire/z_en_fhg_fire.c @@ -96,7 +96,7 @@ void EnFhgFire_Init(Actor* thisx, PlayState* play) { if (this->actor.params == FHGFIRE_LIGHTNING_STRIKE) { EnFhgFire_SetUpdate(this, EnFhgFire_LightningStrike); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_FANTOM_THUNDER); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_FANTOM_THUNDER); } else if (this->actor.params >= FHGFIRE_LIGHTNING_TRAIL) { EnFhgFire_SetUpdate(this, EnFhgFire_LightningTrail); this->actor.shape.rot = this->actor.world.rot; @@ -105,7 +105,7 @@ void EnFhgFire_Init(Actor* thisx, PlayState* play) { this->actor.draw = NULL; EnFhgFire_SetUpdate(this, EnFhgFire_LightningShock); this->actor.speedXZ = 30.0f; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_FANTOM_SPARK); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_FANTOM_SPARK); } else if (this->actor.params == FHGFIRE_LIGHTNING_BURST) { EnFhgFire_SetUpdate(this, EnFhgFire_LightningBurst); this->fwork[FHGFIRE_ALPHA] = 255.0f; @@ -132,8 +132,8 @@ void EnFhgFire_Init(Actor* thisx, PlayState* play) { this->actor.scale.z = 1.0f; } else { this->work[FHGFIRE_TIMER] = 76; - Audio_PlayActorSound2(&this->actor, NA_SE_EV_FANTOM_WARP_S); - Audio_PlayActorSound2(&this->actor, NA_SE_EV_FANTOM_WARP_S2); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_FANTOM_WARP_S); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_FANTOM_WARP_S2); } } else if (this->actor.params == FHGFIRE_ENERGY_BALL) { f32 dxL; @@ -287,7 +287,7 @@ void EnFhgFire_LightningShock(EnFhgFire* this, PlayState* play) { if (this->collider.base.atFlags & AT_HIT) { this->collider.base.atFlags &= ~AT_HIT; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_FANTOM_HIT_THUNDER); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_FANTOM_HIT_THUNDER); } if (Rand_ZeroOne() < 0.5f) { @@ -493,9 +493,9 @@ void EnFhgFire_EnergyBall(EnFhgFire* this, PlayState* play) { canBottleReflect2 = canBottleReflect1; if (!canBottleReflect2 && (hurtbox->toucher.dmgFlags & DMG_SHIELD)) { killMode = BALL_IMPACT; - Audio_PlaySoundGeneral(NA_SE_IT_SHIELD_REFLECT_MG, &player->actor.projectedPos, 4, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_IT_SHIELD_REFLECT_MG, &player->actor.projectedPos, 4, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultReverb); func_800AA000(this->actor.xyzDistToPlayerSq, 0xFF, 0x14, 0x96); } else { if (bossGnd->flyMode == GND_FLY_NEUTRAL) { @@ -522,16 +522,16 @@ void EnFhgFire_EnergyBall(EnFhgFire* this, PlayState* play) { RAD_TO_BINANG(Math_FAtan2F(dyPG, sqrtf((dxPG * dxPG) + (dzPG * dzPG)))) + angleModX; this->work[FHGFIRE_FIRE_MODE] = FHGFIRE_LIGHT_BLUE; this->work[FHGFIRE_FX_TIMER] = 2; - Audio_PlaySoundGeneral(NA_SE_IT_SWORD_REFLECT_MG, &player->actor.projectedPos, 4, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_IT_SWORD_REFLECT_MG, &player->actor.projectedPos, 4, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultReverb); func_800AA000(this->actor.xyzDistToPlayerSq, 0xB4, 0x14, 0x64); } } else if (sqrtf(SQ(dxL) + SQ(dyL) + SQ(dzL)) <= 25.0f) { killMode = BALL_BURST; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_FANTOM_HIT_THUNDER); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_FANTOM_HIT_THUNDER); if ((bossGnd->flyMode >= GND_FLY_VOLLEY) && (this->work[FHGFIRE_RETURN_COUNT] >= 2)) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_FANTOM_LAUGH); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_FANTOM_LAUGH); } func_8002F698(play, &this->actor, 3.0f, this->actor.world.rot.y, 0.0f, 3, 0x10); } @@ -555,12 +555,12 @@ void EnFhgFire_EnergyBall(EnFhgFire* this, PlayState* play) { if ((fabsf(dxPG) < 30.0f) && (fabsf(dzPG) < 30.0f) && (fabsf(dyPG) < 45.0f)) { killMode = BALL_IMPACT; bossGnd->returnCount = this->work[FHGFIRE_RETURN_COUNT] + 1; - Audio_PlaySoundGeneral(NA_SE_EN_FANTOM_HIT_THUNDER, &bossGnd->actor.projectedPos, 4, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultReverb); - Audio_PlaySoundGeneral(NA_SE_EN_FANTOM_DAMAGE, &bossGnd->actor.projectedPos, 4, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EN_FANTOM_HIT_THUNDER, &bossGnd->actor.projectedPos, 4, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EN_FANTOM_DAMAGE, &bossGnd->actor.projectedPos, 4, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultReverb); } } break; @@ -581,7 +581,7 @@ void EnFhgFire_EnergyBall(EnFhgFire* this, PlayState* play) { dxzL = sqrtf(SQ(dxL) + SQ(dzL)); this->actor.world.rot.x = RAD_TO_BINANG(Math_FAtan2F(dyL, dxzL)); this->work[FHGFIRE_FIRE_MODE] = FHGFIRE_LIGHT_GREEN; - Audio_PlayActorSound2(&this->actor, NA_SE_IT_SWORD_REFLECT_MG); + Audio_PlayActorSfx2(&this->actor, NA_SE_IT_SWORD_REFLECT_MG); this->actor.speedXZ += 2.0f; } break; @@ -619,7 +619,7 @@ void EnFhgFire_EnergyBall(EnFhgFire* this, PlayState* play) { this->work[FHGFIRE_KILL_TIMER] = 30; this->actor.draw = NULL; if (killMode == BALL_FIZZLE) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_FANTOM_THUNDER_GND); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_FANTOM_THUNDER_GND); } return; } else { @@ -634,7 +634,7 @@ void EnFhgFire_EnergyBall(EnFhgFire* this, PlayState* play) { if (this->actor.speedXZ > 20.0f) { this->actor.speedXZ = 20.0f; } - Audio_PlayActorSound2(&this->actor, NA_SE_EN_FANTOM_FIRE - SFX_FLAG); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_FANTOM_FIRE - SFX_FLAG); // "Why ah ah ah ah" osSyncPrintf("なぜだああああああああ %d\n", this->work[FHGFIRE_VARIANCE_TIMER]); } @@ -651,13 +651,13 @@ void EnFhgFire_PhantomWarp(EnFhgFire* this, PlayState* play) { if (this->actor.params == FHGFIRE_WARP_DEATH) { if (this->work[FHGFIRE_TIMER] > 70) { - Audio_PlayActorSound2(&this->actor, NA_SE_EV_FANTOM_WARP_L - SFX_FLAG); - Audio_PlayActorSound2(&this->actor, NA_SE_EV_FANTOM_WARP_L2 - SFX_FLAG); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_FANTOM_WARP_L - SFX_FLAG); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_FANTOM_WARP_L2 - SFX_FLAG); } if (this->work[FHGFIRE_TIMER] == 70) { - Audio_PlayActorSound2(&this->actor, NA_SE_EV_FANTOM_WARP_S); - Audio_PlayActorSound2(&this->actor, NA_SE_EV_FANTOM_WARP_S2); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_FANTOM_WARP_S); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_FANTOM_WARP_S2); } } diff --git a/src/overlays/actors/ovl_En_Fire_Rock/z_en_fire_rock.c b/src/overlays/actors/ovl_En_Fire_Rock/z_en_fire_rock.c index d6ae2420df..232aeb9fc9 100644 --- a/src/overlays/actors/ovl_En_Fire_Rock/z_en_fire_rock.c +++ b/src/overlays/actors/ovl_En_Fire_Rock/z_en_fire_rock.c @@ -190,7 +190,7 @@ void EnFireRock_Fall(EnFireRock* this, PlayState* play) { break; case FIRE_ROCK_BROKEN_PIECE1: if ((play->gameplayFrames & 3) == 0) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_VALVAISA_ROCK); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_VALVAISA_ROCK); } break; } @@ -214,7 +214,7 @@ void EnFireRock_Fall(EnFireRock* this, PlayState* play) { default: Actor_SpawnFloorDustRing(play, &this->actor, &this->actor.world.pos, this->actor.shape.shadowScale, 3, 8.0f, 200, 10, false); - SoundSource_PlaySfxAtFixedWorldPos(play, &this->actor.world.pos, 40, NA_SE_EV_EXPLOSION); + SfxSource_PlaySfxAtFixedWorldPos(play, &this->actor.world.pos, 40, NA_SE_EV_EXPLOSION); Actor_Kill(&this->actor); break; } @@ -258,7 +258,7 @@ void EnFireRock_SpawnMoreBrokenPieces(EnFireRock* this, PlayState* play) { osSyncPrintf(VT_FGCOL(YELLOW) "☆☆☆☆☆ イッパイデッス ☆☆☆☆☆ \n" VT_RST); } } - Audio_PlayActorSound2(&this->actor, NA_SE_EN_VALVAISA_ROCK); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_VALVAISA_ROCK); } Actor_Kill(&this->actor); } @@ -350,7 +350,7 @@ void EnFireRock_Update(Actor* thisx, PlayState* play) { (this->type == FIRE_ROCK_BROKEN_PIECE1)) { if (this->collider.base.atFlags & AT_BOUNCED) { this->collider.base.atFlags &= ~AT_BOUNCED; - Audio_PlayActorSound2(thisx, NA_SE_EV_BRIDGE_OPEN_STOP); + Audio_PlayActorSfx2(thisx, NA_SE_EV_BRIDGE_OPEN_STOP); thisx->velocity.y = 0.0f; thisx->speedXZ = 0.0f; this->actionFunc = EnFireRock_SpawnMoreBrokenPieces; diff --git a/src/overlays/actors/ovl_En_Firefly/z_en_firefly.c b/src/overlays/actors/ovl_En_Firefly/z_en_firefly.c index 9030102846..6c93d2052b 100644 --- a/src/overlays/actors/ovl_En_Firefly/z_en_firefly.c +++ b/src/overlays/actors/ovl_En_Firefly/z_en_firefly.c @@ -212,7 +212,7 @@ void EnFirefly_SetupFall(EnFirefly* this) { this->timer = 40; this->actor.velocity.y = 0.0f; Animation_Change(&this->skelAnime, &gKeeseFlyAnim, 0.5f, 0.0f, 0.0f, ANIMMODE_LOOP_INTERP, -3.0f); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_FFLY_DEAD); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_FFLY_DEAD); this->actor.flags |= ACTOR_FLAG_4; Actor_SetColorFilter(&this->actor, 0x4000, 0xFF, 0, 40); this->actionFunc = EnFirefly_Fall; @@ -252,7 +252,7 @@ void EnFirefly_SetupStunned(EnFirefly* this) { this->auraType = KEESE_AURA_NONE; this->actor.velocity.y = 0.0f; this->skelAnime.playSpeed = 3.0f; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_GOMA_JR_FREEZE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_GOMA_JR_FREEZE); this->actionFunc = EnFirefly_Stunned; } @@ -264,7 +264,7 @@ void EnFirefly_SetupFrozenFall(EnFirefly* this, PlayState* play) { this->auraType = KEESE_AURA_NONE; this->actor.speedXZ = 0.0f; Actor_SetColorFilter(&this->actor, 0, 0xFF, 0, 0xFF); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_FFLY_DEAD); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_FFLY_DEAD); for (i = 0; i <= 7; i++) { iceParticlePos.x = (i & 1 ? 7.0f : -7.0f) + this->actor.world.pos.x; @@ -668,7 +668,7 @@ void EnFirefly_Update(Actor* thisx, PlayState* play2) { if (this->collider.base.atFlags & AT_HIT) { this->collider.base.atFlags &= ~AT_HIT; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_FFLY_ATTACK); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_FFLY_ATTACK); if (this->onFire) { EnFirefly_Extinguish(this); } @@ -706,7 +706,7 @@ void EnFirefly_Update(Actor* thisx, PlayState* play2) { CollisionCheck_SetAC(play, &play->colChkCtx, &this->collider.base); this->actor.world.rot.y = this->actor.shape.rot.y; if (Animation_OnFrame(&this->skelAnime, 5.0f)) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_FFLY_FLY); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_FFLY_FLY); } } diff --git a/src/overlays/actors/ovl_En_Fish/z_en_fish.c b/src/overlays/actors/ovl_En_Fish/z_en_fish.c index d492f23256..0ac71aff75 100644 --- a/src/overlays/actors/ovl_En_Fish/z_en_fish.c +++ b/src/overlays/actors/ovl_En_Fish/z_en_fish.c @@ -398,7 +398,7 @@ void EnFish_Dropped_Fall(EnFish* this, PlayState* play) { void EnFish_Dropped_SetupFlopOnGround(EnFish* this) { s32 pad; f32 randomFloat; - s32 playSound; + s32 playSfx; this->actor.gravity = -1.0f; this->actor.minVelocityY = -10.0f; @@ -406,17 +406,17 @@ void EnFish_Dropped_SetupFlopOnGround(EnFish* this) { if (randomFloat < 0.1f) { this->actor.velocity.y = (Rand_ZeroOne() * 3.0f) + 2.5f; - playSound = true; + playSfx = true; } else if (randomFloat < 0.2f) { this->actor.velocity.y = (Rand_ZeroOne() * 1.2f) + 0.2f; - playSound = true; + playSfx = true; } else { this->actor.velocity.y = 0.0f; if (Rand_ZeroOne() < 0.2f) { - playSound = true; + playSfx = true; } else { - playSound = false; + playSfx = false; } } @@ -425,8 +425,8 @@ void EnFish_Dropped_SetupFlopOnGround(EnFish* this) { this->actionFunc = EnFish_Dropped_FlopOnGround; this->unk_250 = UPDBGCHECKINFO_FLAG_0 | UPDBGCHECKINFO_FLAG_2; - if (playSound && (this->actor.draw != NULL)) { - Audio_PlayActorSound2(&this->actor, NA_SE_EV_FISH_LEAP); + if (playSfx && (this->actor.draw != NULL)) { + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_FISH_LEAP); } } @@ -591,7 +591,7 @@ void EnFish_Cutscene_FlopOnGround(EnFish* this, PlayState* play) { if (Rand_ZeroOne() < 0.1f) { D_80A17018 = (Rand_ZeroOne() * 3.0f) + 2.0f; - Audio_PlayActorSound2(&this->actor, NA_SE_EV_FISH_LEAP); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_FISH_LEAP); } else { D_80A17018 = 0.0f; } diff --git a/src/overlays/actors/ovl_En_Floormas/z_en_floormas.c b/src/overlays/actors/ovl_En_Floormas/z_en_floormas.c index ddf7ca49b2..e8235cedb5 100644 --- a/src/overlays/actors/ovl_En_Floormas/z_en_floormas.c +++ b/src/overlays/actors/ovl_En_Floormas/z_en_floormas.c @@ -255,7 +255,7 @@ void EnFloormas_SetupHover(EnFloormas* this, PlayState* play) { this->actor.gravity = 0.0f; EnFloormas_MakeInvulnerable(this); Actor_SpawnFloorDustRing(play, &this->actor, &this->actor.world.pos, 15.0f, 6, 20.0f, 300, 100, true); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_FLOORMASTER_ATTACK); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_FLOORMASTER_ATTACK); this->actionFunc = EnFloormas_Hover; } @@ -416,9 +416,9 @@ void EnFloormas_SetupFreeze(EnFloormas* this) { } else { Actor_SetColorFilter(&this->actor, 0, 0xFF, 0, 0x50); if (this->actor.scale.x > 0.004f) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_GOMA_JR_FREEZE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_GOMA_JR_FREEZE); } else { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_GOMA_JR_FREEZE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_GOMA_JR_FREEZE); } } this->actionTimer = 80; @@ -432,7 +432,7 @@ void EnFloormas_Die(EnFloormas* this, PlayState* play) { EnFloormas_SetupSplit((EnFloormas*)this->actor.child); EnFloormas_SetupSplit((EnFloormas*)this->actor.parent); EnFloormas_SetupSplit(this); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_FLOORMASTER_SPLIT); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_FLOORMASTER_SPLIT); } else { // Die Item_DropCollectibleRandom(play, &this->actor, &this->actor.world.pos, 0x90); @@ -480,7 +480,7 @@ void EnFloormas_BigWalk(EnFloormas* this, PlayState* play) { if (((animPastFrame || (Animation_OnFrame(&this->skelAnime, 12.0f))) || (Animation_OnFrame(&this->skelAnime, 24.0f) != 0)) || (Animation_OnFrame(&this->skelAnime, 36.0f) != 0)) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_FALL_WALK); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_FALL_WALK); } if ((this->actor.xzDistToPlayer < 320.0f) && (Actor_IsFacingPlayer(&this->actor, 0x4000))) { @@ -508,7 +508,7 @@ void EnFloormas_Run(EnFloormas* this, PlayState* play) { SkelAnime_Update(&this->skelAnime); if (Animation_OnFrame(&this->skelAnime, 0.0f) || Animation_OnFrame(&this->skelAnime, 12.0f) || Animation_OnFrame(&this->skelAnime, 24.0f) || Animation_OnFrame(&this->skelAnime, 36.0f)) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_FALL_WALK); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_FALL_WALK); } Math_ApproachS(&this->actor.shape.rot.y, this->actor.yawTowardsPlayer, 3, 0x71C); @@ -533,9 +533,9 @@ void EnFloormas_Turn(EnFloormas* this, PlayState* play) { if (((this->skelAnime.playSpeed > 0.0f) && Animation_OnFrame(&this->skelAnime, 21.0f)) || ((this->skelAnime.playSpeed < 0.0f) && Animation_OnFrame(&this->skelAnime, 6.0f))) { if (this->actor.scale.x > 0.004f) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_FALL_WALK); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_FALL_WALK); } else { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_FLOORMASTER_SM_WALK); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_FLOORMASTER_SM_WALK); } } // Needed to match @@ -621,9 +621,9 @@ void EnFloormas_Land(EnFloormas* this, PlayState* play) { if (this->actor.velocity.y < -4.0f) { if (this->actor.scale.x > 0.004f) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_FALL_LAND); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_FALL_LAND); } else { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_FLOORMASTER_SM_LAND); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_FLOORMASTER_SM_LAND); } } } @@ -671,7 +671,7 @@ void EnFloormas_Split(EnFloormas* this, PlayState* play) { } if (this->actor.bgCheckFlags & BGCHECKFLAG_GROUND_TOUCH) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_FLOORMASTER_SM_LAND); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_FLOORMASTER_SM_LAND); } } @@ -680,7 +680,7 @@ void EnFloormas_SmWalk(EnFloormas* this, PlayState* play) { DECR(this->smActionTimer); if (Animation_OnFrame(&this->skelAnime, 0.0f) || Animation_OnFrame(&this->skelAnime, 18.0f)) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_FLOORMASTER_SM_WALK); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_FLOORMASTER_SM_WALK); } if (this->smActionTimer == 0) { @@ -699,7 +699,7 @@ void EnFloormas_SmDecideAction(EnFloormas* this, PlayState* play) { SkelAnime_Update(&this->skelAnime); if (Animation_OnFrame(&this->skelAnime, 0.0f) || Animation_OnFrame(&this->skelAnime, 18.0f)) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_FLOORMASTER_SM_WALK); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_FLOORMASTER_SM_WALK); } isAgainstWall = this->actor.bgCheckFlags & BGCHECKFLAG_WALL; if (isAgainstWall) { @@ -750,7 +750,7 @@ void EnFloormas_JumpAtLink(EnFloormas* this, PlayState* play) { } else if (this->actor.bgCheckFlags & BGCHECKFLAG_GROUND_TOUCH) { this->actionTimer = 0x32; this->actor.speedXZ = 0.0f; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_FLOORMASTER_SM_LAND); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_FLOORMASTER_SM_LAND); EnFloormas_SetupLand(this); } else if ((this->actor.yDistToPlayer < -10.0f) && (this->collider.base.ocFlags1 & OC1_HIT) && (&player->actor == this->collider.base.oc)) { @@ -820,7 +820,7 @@ void EnFloormas_GrabLink(EnFloormas* this, PlayState* play) { } } - Audio_PlayActorSound2(&this->actor, NA_SE_EN_FLOORMASTER_SM_STICK - SFX_FLAG); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_FLOORMASTER_SM_STICK - SFX_FLAG); } void EnFloormas_SmSlaveJumpAtMaster(EnFloormas* this, PlayState* play) { @@ -850,7 +850,7 @@ void EnFloormas_SmSlaveJumpAtMaster(EnFloormas* this, PlayState* play) { this->collider.base.ocFlags1 |= OC1_ON; } else if (this->actor.bgCheckFlags & BGCHECKFLAG_GROUND_TOUCH) { this->actor.speedXZ = 0.0f; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_FLOORMASTER_SM_LAND); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_FLOORMASTER_SM_LAND); EnFloormas_SetupLand(this); } @@ -904,7 +904,7 @@ void EnFloormas_Merge(EnFloormas* this, PlayState* play) { this->actor.scale.y = this->actor.scale.z = curScale; if (((prevScale == 0.007f) || (prevScale == 0.004f)) && (prevScale != this->actor.scale.x)) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_FLOORMASTER_EXPAND); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_FLOORMASTER_EXPAND); } this->collider.dim.radius = (sCylinderInit.dim.radius * 100.0f) * this->actor.scale.x; @@ -945,9 +945,9 @@ void EnFloormas_TakeDamage(EnFloormas* this, PlayState* play) { if (Animation_OnFrame(&this->skelAnime, 13.0f)) { if (this->actor.scale.x > 0.004f) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_DODO_M_GND); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_DODO_M_GND); } else { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_DODO_M_GND); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_DODO_M_GND); } } Math_StepToF(&this->actor.speedXZ, 0.0f, 0.2f); @@ -992,14 +992,14 @@ void EnFloormas_ColliderCheck(EnFloormas* this, PlayState* play) { } if (Actor_ApplyDamage(&this->actor) == 0) { if (isSmall) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_FLOORMASTER_SM_DEAD); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_FLOORMASTER_SM_DEAD); } else { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_FALL_DEAD); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_FALL_DEAD); } Enemy_StartFinishingBlow(play, &this->actor); this->actor.flags &= ~ACTOR_FLAG_0; } else if (this->actor.colChkInfo.damage != 0) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_FALL_DAMAGE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_FALL_DAMAGE); } if ((this->actor.colChkInfo.damageEffect == 4) || (this->actor.colChkInfo.damageEffect == 1)) { diff --git a/src/overlays/actors/ovl_En_Fr/z_en_fr.c b/src/overlays/actors/ovl_En_Fr/z_en_fr.c index dc113140b5..0720cfda95 100644 --- a/src/overlays/actors/ovl_En_Fr/z_en_fr.c +++ b/src/overlays/actors/ovl_En_Fr/z_en_fr.c @@ -353,9 +353,9 @@ void EnFr_DivingIntoWater(EnFr* this, PlayState* play) { EffectSsGSplash_Spawn(play, &vec, NULL, NULL, 1, 1); if (this->isBelowWaterSurfaceCurrent == false) { - Audio_PlayActorSound2(&this->actor, NA_SE_EV_DIVE_INTO_WATER_L); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_DIVE_INTO_WATER_L); } else { - Audio_PlayActorSound2(&this->actor, NA_SE_EV_BOMB_DROP_WATER); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_BOMB_DROP_WATER); } } } @@ -479,7 +479,7 @@ void EnFr_JumpingUp(EnFr* this, PlayState* play) { this->actor.velocity.y = 25.0f; if (this->isJumpingToFrogSong) { this->isJumpingToFrogSong = false; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_DODO_M_EAT); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_DODO_M_EAT); } } @@ -600,7 +600,7 @@ s32 EnFr_SetupJumpingUp(EnFr* this, s32 frogIndex) { frog->isJumpingToFrogSong = true; } frog->isJumpingUp = true; - Audio_PlaySoundTransposed(&frog->actor.projectedPos, NA_SE_EV_FROG_JUMP, semitone); + Audio_PlaySfxTransposed(&frog->actor.projectedPos, NA_SE_EV_FROG_JUMP, semitone); return true; } else { return false; @@ -741,7 +741,7 @@ void EnFr_ChildSong(EnFr* this, PlayState* play) { if (frog->actionFunc == EnFr_ChooseJumpFromLogSpot) { frog->isJumpingUp = true; frog->isActive = true; - Audio_PlayActorSound2(&frog->actor, NA_SE_EV_FROG_GROW_UP); + Audio_PlayActorSfx2(&frog->actor, NA_SE_EV_FROG_GROW_UP); this->actionFunc = EnFr_ChildSongFirstTime; } else { this->jumpCounter = 48; @@ -1009,7 +1009,7 @@ void EnFr_Deactivate(EnFr* this, PlayState* play) { } play->msgCtx.ocarinaMode = OCARINA_MODE_04; - Audio_PlayActorSound2(&this->actor, NA_SE_EV_FROG_CRY_0); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_FROG_CRY_0); if (this->reward == GI_NONE) { this->actionFunc = EnFr_Idle; } else { diff --git a/src/overlays/actors/ovl_En_Fw/z_en_fw.c b/src/overlays/actors/ovl_En_Fw/z_en_fw.c index 149c0fd00d..7a46a6559f 100644 --- a/src/overlays/actors/ovl_En_Fw/z_en_fw.c +++ b/src/overlays/actors/ovl_En_Fw/z_en_fw.c @@ -83,7 +83,7 @@ s32 EnFw_DoBounce(EnFw* this, s32 totalBounces, f32 yVelocity) { return false; } - Audio_PlayActorSound2(&this->actor, NA_SE_EN_DODO_M_GND); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_DODO_M_GND); this->bounceCnt--; if (this->bounceCnt <= 0) { if (this->bounceCnt == 0) { @@ -233,10 +233,10 @@ void EnFw_Run(EnFw* this, PlayState* play) { if (!this->lastDmgHook) { this->actor.velocity.y = 6.0f; } - Audio_PlayActorSound2(&this->actor, NA_SE_EN_FLAME_MAN_DAMAGE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_FLAME_MAN_DAMAGE); this->damageTimer = 20; } else { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_FLAME_MAN_DAMAGE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_FLAME_MAN_DAMAGE); this->explosionTimer = 6; } this->actor.speedXZ = 0.0f; @@ -300,14 +300,14 @@ void EnFw_Run(EnFw* this, PlayState* play) { this->actor.world.rot = this->actor.shape.rot; if (this->slideTimer == 0 && EnFw_PlayerInRange(this, play)) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_FLAME_MAN_SURP); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_FLAME_MAN_SURP); this->slideSfxTimer = 8; this->slideTimer = 8; } if (this->slideTimer != 0) { if (DECR(this->slideSfxTimer) == 0) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_FLAME_MAN_SLIDE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_FLAME_MAN_SLIDE); this->slideSfxTimer = 4; } Math_SmoothStepToF(&this->actor.speedXZ, 0.0f, 0.1f, 1.0f, 0.0f); @@ -322,7 +322,7 @@ void EnFw_Run(EnFw* this, PlayState* play) { Math_SmoothStepToF(&this->actor.speedXZ, 6.0f, 0.1f, 1.0f, 0.0f); curFrame = this->skelAnime.curFrame; if (curFrame == 1 || curFrame == 4) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_FLAME_MAN_RUN); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_FLAME_MAN_RUN); EnFw_SpawnDust(this, 8, 0.16f, 0.1f, 1, 0.0f, 20.0f, 0.0f); } } @@ -339,7 +339,7 @@ void EnFw_TurnToParentInitPos(EnFw* this, PlayState* play) { this->actor.world.rot = this->actor.shape.rot; this->actor.velocity.y = 14.0f; this->actor.home.pos = this->actor.world.pos; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_STAL_JUMP); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_STAL_JUMP); Animation_ChangeByInfo(&this->skelAnime, sAnimationInfo, ENFW_ANIM_1); this->actionFunc = EnFw_JumpToParentInitPos; } diff --git a/src/overlays/actors/ovl_En_Fz/z_en_fz.c b/src/overlays/actors/ovl_En_Fz/z_en_fz.c index 561b1e6d71..a6882bfb8f 100644 --- a/src/overlays/actors/ovl_En_Fz/z_en_fz.c +++ b/src/overlays/actors/ovl_En_Fz/z_en_fz.c @@ -346,15 +346,15 @@ void EnFz_ApplyDamage(EnFz* this, PlayState* play) { Actor_ApplyDamage(&this->actor); Actor_SetColorFilter(&this->actor, 0x4000, 0xFF, 0x2000, 8); if (this->actor.colChkInfo.health) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_FREEZAD_DAMAGE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_FREEZAD_DAMAGE); vec.x = this->actor.world.pos.x; vec.y = this->actor.world.pos.y; vec.z = this->actor.world.pos.z; EnFz_Damaged(this, play, &vec, 10, 0.0f); this->unusedCounter++; } else { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_FREEZAD_DEAD); - Audio_PlayActorSound2(&this->actor, NA_SE_EV_ICE_BROKEN); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_FREEZAD_DEAD); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_ICE_BROKEN); vec.x = this->actor.world.pos.x; vec.y = this->actor.world.pos.y; vec.z = this->actor.world.pos.z; @@ -366,10 +366,10 @@ void EnFz_ApplyDamage(EnFz* this, PlayState* play) { Actor_ApplyDamage(&this->actor); Actor_SetColorFilter(&this->actor, 0x4000, 0xFF, 0x2000, 8); if (this->actor.colChkInfo.health == 0) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_FREEZAD_DEAD); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_FREEZAD_DEAD); EnFz_SetupMelt(this); } else { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_FREEZAD_DAMAGE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_FREEZAD_DAMAGE); } } } diff --git a/src/overlays/actors/ovl_En_G_Switch/z_en_g_switch.c b/src/overlays/actors/ovl_En_G_Switch/z_en_g_switch.c index 058a80a5d8..602258ec59 100644 --- a/src/overlays/actors/ovl_En_G_Switch/z_en_g_switch.c +++ b/src/overlays/actors/ovl_En_G_Switch/z_en_g_switch.c @@ -212,7 +212,7 @@ void EnGSwitch_SilverRupeeTracker(EnGSwitch* this, PlayState* play) { if (sCollectedCount < 5) { // "sound?" osSyncPrintf(VT_FGCOL(GREEN) "☆☆☆☆☆ 音? ☆☆☆☆☆ %d\n" VT_RST, this->noteIndex); - Audio_PlaySoundTransposed(&gSfxDefaultPos, NA_SE_EV_FIVE_COUNT_LUPY, majorScale[this->noteIndex]); + Audio_PlaySfxTransposed(&gSfxDefaultPos, NA_SE_EV_FIVE_COUNT_LUPY, majorScale[this->noteIndex]); this->noteIndex = sCollectedCount; } } @@ -400,7 +400,7 @@ void EnGSwitch_ArcheryPot(EnGSwitch* this, PlayState* play) { KAKERA_COLOR_NONE, OBJECT_TSUBO, object_tsubo_DL_001960); } func_80033480(play, thisPos, 30.0f, 4, 20, 50, 0); - SoundSource_PlaySfxAtFixedWorldPos(play, thisPos, 40, NA_SE_EV_POT_BROKEN); + SfxSource_PlaySfxAtFixedWorldPos(play, thisPos, 40, NA_SE_EV_POT_BROKEN); EnGSwitch_Break(this, play); this->killTimer = 50; this->broken = true; diff --git a/src/overlays/actors/ovl_En_Gb/z_en_gb.c b/src/overlays/actors/ovl_En_Gb/z_en_gb.c index cd9536dbb0..affb5f0f48 100644 --- a/src/overlays/actors/ovl_En_Gb/z_en_gb.c +++ b/src/overlays/actors/ovl_En_Gb/z_en_gb.c @@ -264,7 +264,7 @@ s32 func_80A2F760(EnGb* this) { void func_80A2F7C0(EnGb* this) { Animation_Change(&this->skelAnime, &gPoeSellerSwingStickAnim, 1.0f, 0.0f, Animation_GetLastFrame(&gPoeSellerSwingStickAnim), ANIMMODE_ONCE, 0.0f); - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EV_NALE_MAGIC); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EV_NALE_MAGIC); this->actionFunc = func_80A2FC70; } @@ -389,7 +389,7 @@ void func_80A2FC70(EnGb* this, PlayState* play) { this->cagedSouls[0].unk_3 = 1; if (this->actionFunc) {} this->actionTimer = (s16)Rand_ZeroFloat(600.0f) + 600; - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EV_WOOD_HIT); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EV_WOOD_HIT); } } diff --git a/src/overlays/actors/ovl_En_Ge1/z_en_ge1.c b/src/overlays/actors/ovl_En_Ge1/z_en_ge1.c index b9e649daf5..7d8930bdf6 100644 --- a/src/overlays/actors/ovl_En_Ge1/z_en_ge1.c +++ b/src/overlays/actors/ovl_En_Ge1/z_en_ge1.c @@ -334,7 +334,7 @@ void EnGe1_Open_GTGGuard(EnGe1* this, PlayState* play) { this->cutsceneTimer = 50; Message_CloseTextbox(play); } else if ((this->skelAnime.curFrame == 15.0f) || (this->skelAnime.curFrame == 19.0f)) { - Audio_PlayActorSound2(&this->actor, NA_SE_IT_HAND_CLAP); + Audio_PlayActorSfx2(&this->actor, NA_SE_IT_HAND_CLAP); } } @@ -427,7 +427,7 @@ void EnGe1_OpenGate_GateOp(EnGe1* this, PlayState* play) { this->cutsceneTimer = 50; Message_CloseTextbox(play); } else if ((this->skelAnime.curFrame == 15.0f) || (this->skelAnime.curFrame == 19.0f)) { - Audio_PlayActorSound2(&this->actor, NA_SE_IT_HAND_CLAP); + Audio_PlayActorSfx2(&this->actor, NA_SE_IT_HAND_CLAP); } } diff --git a/src/overlays/actors/ovl_En_Ge2/z_en_ge2.c b/src/overlays/actors/ovl_En_Ge2/z_en_ge2.c index 2248ade02a..3ed34c8c6e 100644 --- a/src/overlays/actors/ovl_En_Ge2/z_en_ge2.c +++ b/src/overlays/actors/ovl_En_Ge2/z_en_ge2.c @@ -565,7 +565,7 @@ void EnGe2_Update(Actor* thisx, PlayState* play) { this->timer = 100; this->stateFlags |= GE2_STATE_KO; this->actor.speedXZ = 0.0f; - Audio_PlayActorSound2(&this->actor, NA_SE_VO_SK_CRASH); + Audio_PlayActorSfx2(&this->actor, NA_SE_VO_SK_CRASH); } else { this->actionFunc(this, play); @@ -611,7 +611,7 @@ void EnGe2_UpdateStunned(Actor* thisx, PlayState* play2) { this->timer = 100; this->stateFlags |= GE2_STATE_KO; this->actor.speedXZ = 0.0f; - Audio_PlayActorSound2(&this->actor, NA_SE_VO_SK_CRASH); + Audio_PlayActorSfx2(&this->actor, NA_SE_VO_SK_CRASH); } CollisionCheck_SetAC(play, &play->colChkCtx, &this->collider.base); diff --git a/src/overlays/actors/ovl_En_GeldB/z_en_geldb.c b/src/overlays/actors/ovl_En_GeldB/z_en_geldb.c index 9271920133..dd1880b8bb 100644 --- a/src/overlays/actors/ovl_En_GeldB/z_en_geldb.c +++ b/src/overlays/actors/ovl_En_GeldB/z_en_geldb.c @@ -363,7 +363,7 @@ void EnGeldB_Wait(EnGeldB* this, PlayState* play) { func_800F5ACC(NA_BGM_MINI_BOSS); } if (this->actor.bgCheckFlags & BGCHECKFLAG_GROUND_TOUCH) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_RIZA_DOWN); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_RIZA_DOWN); this->skelAnime.playSpeed = 1.0f; this->actor.world.pos.y = this->actor.floorHeight; this->actor.flags |= ACTOR_FLAG_0; @@ -391,7 +391,7 @@ void EnGeldB_SetupFlee(EnGeldB* this) { void EnGeldB_Flee(EnGeldB* this, PlayState* play) { if (this->skelAnime.curFrame == 10.0f) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_STAL_JUMP); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_STAL_JUMP); } if (this->skelAnime.curFrame == 2.0f) { this->actor.gravity = 0.0f; @@ -465,7 +465,7 @@ void EnGeldB_Ready(EnGeldB* this, PlayState* play) { EnGeldB_SetupPivot(this); } if ((play->gameplayFrames & 0x5F) == 0) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_GERUDOFT_BREATH); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_GERUDOFT_BREATH); } } } @@ -543,13 +543,13 @@ void EnGeldB_Advance(EnGeldB* this, PlayState* play) { } } if ((play->gameplayFrames & 0x5F) == 0) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_GERUDOFT_BREATH); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_GERUDOFT_BREATH); } if (prevFrame != (s32)this->skelAnime.curFrame) { s32 afterPrevFrame = absPlaySpeed + prevFrame; if (((beforeCurFrame < 0) && (afterPrevFrame > 0)) || ((beforeCurFrame < 4) && (afterPrevFrame > 4))) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_MUSI_LAND); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_MUSI_LAND); } } } @@ -565,7 +565,7 @@ void EnGeldB_SetupRollForward(EnGeldB* this) { this->action = GELDB_ROLL_FORWARD; this->actor.world.rot.y = this->actor.shape.rot.y = this->actor.yawTowardsPlayer; this->actor.speedXZ = 10.0f; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_STAL_JUMP); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_STAL_JUMP); EnGeldB_SetupAction(this, EnGeldB_RollForward); } @@ -590,7 +590,7 @@ void EnGeldB_RollForward(EnGeldB* this, PlayState* play) { } } if ((play->gameplayFrames & 0x5F) == 0) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_GERUDOFT_BREATH); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_GERUDOFT_BREATH); } } @@ -626,7 +626,7 @@ void EnGeldB_Pivot(EnGeldB* this, PlayState* play) { } } if ((play->gameplayFrames & 0x5F) == 0) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_GERUDOFT_BREATH); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_GERUDOFT_BREATH); } } } @@ -715,11 +715,11 @@ void EnGeldB_Circle(EnGeldB* this, PlayState* play) { if ((prevFrame != (s32)this->skelAnime.curFrame) && (((beforeCurFrame < 0) && (afterPrevFrame > 0)) || ((beforeCurFrame < 5) && (afterPrevFrame > 5)))) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_MUSI_LAND); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_MUSI_LAND); } if ((play->gameplayFrames & 0x5F) == 0) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_GERUDOFT_BREATH); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_GERUDOFT_BREATH); } if ((Math_CosS(angleBehindLink - this->actor.shape.rot.y) < -0.85f) && !Actor_OtherIsTargeted(play, &this->actor) && (this->actor.xzDistToPlayer <= 45.0f)) { @@ -811,11 +811,11 @@ void EnGeldB_SpinDodge(EnGeldB* this, PlayState* play) { if ((prevFrame != (s32)this->skelAnime.curFrame) && (((beforeCurFrame < 0) && (afterPrevFrame > 0)) || ((beforeCurFrame < 5) && (afterPrevFrame > 5)))) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_MUSI_LAND); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_MUSI_LAND); } if ((play->gameplayFrames & 0x5F) == 0) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_GERUDOFT_BREATH); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_GERUDOFT_BREATH); } this->timer--; if (this->timer == 0) { @@ -856,7 +856,7 @@ void EnGeldB_Slash(EnGeldB* this, PlayState* play) { this->actor.speedXZ = 0.0f; if ((s32)this->skelAnime.curFrame == 1) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_GERUDOFT_ATTACK); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_GERUDOFT_ATTACK); this->swordState = 1; } else if ((s32)this->skelAnime.curFrame == 6) { this->swordState = -1; @@ -923,7 +923,7 @@ void EnGeldB_SpinAttack(EnGeldB* this, PlayState* play) { Message_StartTextbox(play, 0x6003, &this->actor); this->timer = 30; this->actor.speedXZ = 0.0f; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_TWINROBA_YOUNG_LAUGH); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_TWINROBA_YOUNG_LAUGH); return; } } @@ -935,7 +935,7 @@ void EnGeldB_SpinAttack(EnGeldB* this, PlayState* play) { Actor_SpawnFloorDustRing(play, &this->actor, &this->rightFootPos, 3.0f, 2, 2.0f, 0, 0, false); this->swordState = 1; this->actor.speedXZ = 10.0f; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_GERUDOFT_ATTACK); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_GERUDOFT_ATTACK); } else if ((s32)this->skelAnime.curFrame == 21) { this->actor.speedXZ = 0.0f; } else if ((s32)this->skelAnime.curFrame == 24) { @@ -981,7 +981,7 @@ void EnGeldB_SetupRollBack(EnGeldB* this) { this->invisible = true; this->action = GELDB_ROLL_BACK; this->actor.speedXZ = -8.0f; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_STAL_JUMP); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_STAL_JUMP); this->actor.shape.rot.y = this->actor.world.rot.y = this->actor.yawTowardsPlayer; EnGeldB_SetupAction(this, EnGeldB_RollBack); } @@ -998,7 +998,7 @@ void EnGeldB_RollBack(EnGeldB* this, PlayState* play) { } } if ((play->state.frames & 0x5F) == 0) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_GERUDOFT_BREATH); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_GERUDOFT_BREATH); } } @@ -1012,7 +1012,7 @@ void EnGeldB_SetupStunned(EnGeldB* this) { if (this->damageEffect == GELDB_DMG_FREEZE) { this->iceTimer = 36; } - Audio_PlayActorSound2(&this->actor, NA_SE_EN_GOMA_JR_FREEZE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_GOMA_JR_FREEZE); this->action = GELDB_STUNNED; EnGeldB_SetupAction(this, EnGeldB_Stunned); } @@ -1046,7 +1046,7 @@ void EnGeldB_SetupDamaged(EnGeldB* this) { } this->lookTimer = 0; this->actor.world.rot.y = this->actor.yawTowardsPlayer; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_GERUDOFT_DAMAGE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_GERUDOFT_DAMAGE); this->action = GELDB_DAMAGED; EnGeldB_SetupAction(this, EnGeldB_Damaged); } @@ -1090,7 +1090,7 @@ void EnGeldB_SetupJump(EnGeldB* this) { this->action = GELDB_JUMP; this->actor.speedXZ = 6.5f; this->actor.velocity.y = 15.0f; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_STAL_JUMP); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_STAL_JUMP); this->actor.world.rot.y = this->actor.shape.rot.y; EnGeldB_SetupAction(this, EnGeldB_Jump); } @@ -1304,10 +1304,10 @@ void EnGeldB_Sidestep(EnGeldB* this, PlayState* play) { if ((prevFrame != (s32)this->skelAnime.curFrame) && (((beforeCurFrame < 0) && (((s32)absPlaySpeed + prevFrame) > 0)) || ((beforeCurFrame < 5) && (((s32)absPlaySpeed + prevFrame) > 5)))) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_MUSI_LAND); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_MUSI_LAND); } if ((play->gameplayFrames & 0x5F) == 0) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_GERUDOFT_BREATH); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_GERUDOFT_BREATH); } } } @@ -1323,7 +1323,7 @@ void EnGeldB_SetupDefeated(EnGeldB* this) { } this->action = GELDB_DEFEAT; this->actor.flags &= ~ACTOR_FLAG_0; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_GERUDOFT_DEAD); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_GERUDOFT_DEAD); EnGeldB_SetupAction(this, EnGeldB_Defeated); } @@ -1338,7 +1338,7 @@ void EnGeldB_Defeated(EnGeldB* this, PlayState* play) { if (SkelAnime_Update(&this->skelAnime)) { EnGeldB_SetupFlee(this); } else if ((s32)this->skelAnime.curFrame == 10) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_RIZA_DOWN); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_RIZA_DOWN); func_800F5B58(); } } @@ -1385,9 +1385,9 @@ void EnGeldB_CollisionCheck(EnGeldB* this, PlayState* play) { if (key != NULL) { key->actor.world.rot.y = Math_Vec3f_Yaw(&key->actor.world.pos, &this->actor.home.pos); key->actor.speedXZ = 6.0f; - Audio_PlaySoundGeneral(NA_SE_SY_TRE_BOX_APPEAR, &gSfxDefaultPos, 4, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_TRE_BOX_APPEAR, &gSfxDefaultPos, 4, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultReverb); } } EnGeldB_SetupDefeated(this); diff --git a/src/overlays/actors/ovl_En_Go/z_en_go.c b/src/overlays/actors/ovl_En_Go/z_en_go.c index de9f51e090..5386ee8eb7 100644 --- a/src/overlays/actors/ovl_En_Go/z_en_go.c +++ b/src/overlays/actors/ovl_En_Go/z_en_go.c @@ -766,8 +766,8 @@ void EnGo_FireGenericActionFunc(EnGo* this, PlayState* play) { void EnGo_CurledUp(EnGo* this, PlayState* play) { if ((DECR(this->unk_210) == 0) && EnGo_IsCameraModified(this, play)) { - Audio_PlaySoundGeneral(NA_SE_EN_GOLON_WAKE_UP, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EN_GOLON_WAKE_UP, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); this->skelAnime.playSpeed = 0.1f; this->skelAnime.playSpeed *= (this->actor.params & 0xF0) == 0x90 ? 0.5f : 1.0f; @@ -801,8 +801,8 @@ void EnGo_WakeUp(EnGo* this, PlayState* play) { } if (DECR(this->unk_212) == 0) { - Audio_PlaySoundGeneral(NA_SE_EN_GOLON_SIT_DOWN, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EN_GOLON_SIT_DOWN, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); EnGo_SetupAction(this, func_80A405CC); } else if (!EnGo_IsCameraModified(this, play)) { EnGo_ReverseAnimation(this); @@ -820,8 +820,8 @@ void func_80A40494(EnGo* this, PlayState* play) { frame += this->skelAnime.playSpeed; if (!(frame >= 0.0f)) { - Audio_PlaySoundGeneral(NA_SE_EN_DODO_M_GND, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EN_DODO_M_GND, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); EnGo_SpawnDust(this, 10, 0.4f, 0.1f, 16, 26.0f, 2.0f); EnGo_ReverseAnimation(this); this->skelAnime.playSpeed = 0.0f; @@ -912,8 +912,8 @@ void func_80A408D8(EnGo* this, PlayState* play) { EnGo_SetupAction(this, func_80A40494); } else if (EnGo_IsCameraModified(this, play)) { EnGo_ReverseAnimation(this); - Audio_PlaySoundGeneral(NA_SE_EN_GOLON_SIT_DOWN, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EN_GOLON_SIT_DOWN, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); this->skelAnime.playSpeed = 0.0f; EnGo_SetupAction(this, func_80A405CC); } diff --git a/src/overlays/actors/ovl_En_Go2/z_en_go2.c b/src/overlays/actors/ovl_En_Go2/z_en_go2.c index cd988eb622..de374fa169 100644 --- a/src/overlays/actors/ovl_En_Go2/z_en_go2.c +++ b/src/overlays/actors/ovl_En_Go2/z_en_go2.c @@ -611,8 +611,8 @@ s16 EnGo2_GetStateGoronDmtBiggoron(PlayState* play, EnGo2* this) { FALLTHROUGH; case 0x3054: if (dialogState == TEXT_STATE_NONE) { - Audio_PlaySoundGeneral(NA_SE_SY_TRE_BOX_APPEAR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_TRE_BOX_APPEAR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } break; } @@ -893,8 +893,8 @@ s32 func_80A44AB0(EnGo2* this, PlayState* play) { return false; } else { if (this->collider.base.acFlags & AC_HIT) { - Audio_PlaySoundGeneral(NA_SE_SY_CORRECT_CHIME, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_CORRECT_CHIME, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); this->actor.flags &= ~ACTOR_FLAG_24; this->collider.base.acFlags &= ~AC_HIT; EnGo2_StopRolling(this, play); @@ -912,7 +912,7 @@ s32 func_80A44AB0(EnGo2* this, PlayState* play) { play->damagePlayer(play, -4); func_8002F71C(play, &this->actor, arg2, this->actor.yawTowardsPlayer, 6.0f); - Audio_PlayActorSound2(&player->actor, NA_SE_PL_BODY_HIT); + Audio_PlayActorSfx2(&player->actor, NA_SE_PL_BODY_HIT); this->collider.base.ocFlags1 &= ~OC1_TYPE_PLAYER; } } @@ -1000,15 +1000,15 @@ s32 EnGo2_IsRollingOnGround(EnGo2* this, s16 arg1, f32 arg2, s16 arg3) { } else { this->actor.world.pos.y = (this->unk_590 & 1) ? this->actor.world.pos.y + 1.5f : this->actor.world.pos.y - 1.5f; - Audio_PlayActorSound2(&this->actor, NA_SE_EV_BIGBALL_ROLL - SFX_FLAG); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_BIGBALL_ROLL - SFX_FLAG); return true; } } if (this->unk_59C >= 2) { - Audio_PlayActorSound2(&this->actor, (this->actor.params & 0x1F) == GORON_CITY_ROLLING_BIG - ? NA_SE_EN_GOLON_LAND_BIG - : NA_SE_EN_DODO_M_GND); + Audio_PlayActorSfx2(&this->actor, (this->actor.params & 0x1F) == GORON_CITY_ROLLING_BIG + ? NA_SE_EN_GOLON_LAND_BIG + : NA_SE_EN_DODO_M_GND); } this->unk_59C--; @@ -1276,17 +1276,17 @@ void EnGo2_SitDownAnimation(EnGo2* this) { if ((this->skelAnime.playSpeed != 0.0f) && (this->skelAnime.animation == &gGoronAnim_004930)) { if (this->skelAnime.playSpeed > 0.0f && this->skelAnime.curFrame == 14.0f) { if ((this->actor.params & 0x1F) != GORON_DMT_BIGGORON) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_GOLON_SIT_DOWN); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_GOLON_SIT_DOWN); } else { func_800F4524(&gSfxDefaultPos, NA_SE_EN_GOLON_SIT_DOWN, 60); } } if (this->skelAnime.playSpeed < 0.0f) { if (this->skelAnime.curFrame == 1.0f) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_DODO_M_GND); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_DODO_M_GND); } if (this->skelAnime.curFrame == 40.0f) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_GOLON_SIT_DOWN); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_GOLON_SIT_DOWN); } } } @@ -1319,7 +1319,7 @@ void EnGo2_RollingAnimation(EnGo2* this, PlayState* play) { void EnGo2_WakeUp(EnGo2* this, PlayState* play) { if (this->skelAnime.playSpeed == 0.0f) { if ((this->actor.params & 0x1F) != GORON_DMT_BIGGORON) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_GOLON_WAKE_UP); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_GOLON_WAKE_UP); } else { func_800F4524(&gSfxDefaultPos, NA_SE_EN_GOLON_WAKE_UP, 60); } @@ -1468,7 +1468,7 @@ void EnGo2_GoronLinkAnimation(EnGo2* this, PlayState* play) { if (this->skelAnime.animation == &gGoronAnim_000750) { if (this->skelAnime.curFrame == 20.0f) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_GOLON_CRY); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_GOLON_CRY); } } @@ -1931,7 +1931,7 @@ void EnGo2_GoronFireGenericAction(EnGo2* this, PlayState* play) { case 2: // Walking away if (DECR(this->animTimer)) { if (!(this->animTimer % 8)) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_MORIBLIN_WALK); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_MORIBLIN_WALK); } Actor_MoveForward(&this->actor); } else { @@ -1948,13 +1948,13 @@ void EnGo2_GoronFireGenericAction(EnGo2* this, PlayState* play) { case 3: // Walking away this->animTimer++; if (!(this->animTimer % 8) && (this->animTimer < 10)) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_MORIBLIN_WALK); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_MORIBLIN_WALK); } if (this->animTimer == 10) { - Audio_PlayActorSound2(&this->actor, NA_SE_EV_IRON_DOOR_OPEN); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_IRON_DOOR_OPEN); } if (this->animTimer > 44) { - SoundSource_PlaySfxAtFixedWorldPos(play, &this->actor.world.pos, 20, NA_SE_EV_IRON_DOOR_CLOSE); + SfxSource_PlaySfxAtFixedWorldPos(play, &this->actor.world.pos, 20, NA_SE_EV_IRON_DOOR_CLOSE); } else { break; } diff --git a/src/overlays/actors/ovl_En_Goma/z_en_goma.c b/src/overlays/actors/ovl_En_Goma/z_en_goma.c index 189ffc7f6b..13eb480d56 100644 --- a/src/overlays/actors/ovl_En_Goma/z_en_goma.c +++ b/src/overlays/actors/ovl_En_Goma/z_en_goma.c @@ -185,9 +185,9 @@ void EnGoma_SetupFlee(EnGoma* this) { this->actionTimer = 20; if (this->actor.params < 6) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_GOMA_BJR_DAM2); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_GOMA_BJR_DAM2); } else { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_GOMA_JR_DAM2); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_GOMA_JR_DAM2); } } @@ -214,9 +214,9 @@ void EnGoma_EggFallToGround(EnGoma* this, PlayState* play) { case 0: if (this->actor.bgCheckFlags & BGCHECKFLAG_GROUND) { if (this->actor.params < 6) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_GOMA_BJR_EGG1); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_GOMA_BJR_EGG1); } else { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_GOMA_EGG1); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_GOMA_EGG1); } if (this->actor.params > 5) { @@ -331,9 +331,9 @@ void EnGoma_SetupHurt(EnGoma* this, PlayState* play) { this->actor.speedXZ = 20.0f; this->actor.world.rot.y = this->actor.yawTowardsPlayer + 0x8000; if (this->actor.params < 6) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_GOMA_BJR_DAM1); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_GOMA_BJR_DAM1); } else { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_GOMA_JR_DAM1); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_GOMA_JR_DAM1); } } @@ -360,9 +360,9 @@ void EnGoma_SetupDie(EnGoma* this) { this->actionTimer = 30; if (this->actor.params < 6) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_GOMA_BJR_DEAD); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_GOMA_BJR_DEAD); } else { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_GOMA_JR_DEAD); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_GOMA_JR_DEAD); } this->invincibilityTimer = 100; @@ -378,9 +378,9 @@ void EnGoma_Die(EnGoma* this, PlayState* play) { if (this->actionTimer == 17) { if (this->actor.params < 6) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_GOMA_BJR_LAND); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_GOMA_BJR_LAND); } else { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_GOMA_JR_LAND); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_GOMA_JR_LAND); } } @@ -418,8 +418,8 @@ void EnGoma_Dead(EnGoma* this, PlayState* play) { parent->childrenGohmaState[this->actor.params] = -1; } - Audio_PlaySoundGeneral(NA_SE_EN_EXTINCT, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EN_EXTINCT, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); Actor_Kill(&this->actor); Item_DropCollectibleRandom(play, NULL, &this->actor.world.pos, 0x30); } @@ -491,9 +491,9 @@ void EnGoma_SetupJump(EnGoma* this) { this->actor.velocity.y = 8.0f; if (this->actor.params < 6) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_GOMA_BJR_CRY); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_GOMA_BJR_CRY); } else { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_GOMA_JR_CRY); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_GOMA_JR_CRY); } } @@ -505,9 +505,9 @@ void EnGoma_Jump(EnGoma* this, PlayState* play) { if (this->actor.velocity.y <= 0.0f && (this->actor.bgCheckFlags & BGCHECKFLAG_GROUND)) { EnGoma_SetupLand(this); if (this->actor.params < 6) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_GOMA_BJR_LAND2); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_GOMA_BJR_LAND2); } else { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_GOMA_JR_LAND2); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_GOMA_JR_LAND2); } } this->visualState = 0; @@ -529,9 +529,9 @@ void EnGoma_ChasePlayer(EnGoma* this, PlayState* play) { if (Animation_OnFrame(&this->skelanime, 1.0f) || Animation_OnFrame(&this->skelanime, 5.0f)) { if (this->actor.params < 6) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_GOMA_BJR_WALK); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_GOMA_BJR_WALK); } else { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_GOMA_JR_WALK); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_GOMA_JR_WALK); } } @@ -554,9 +554,9 @@ void EnGoma_SetupStunned(EnGoma* this, PlayState* play) { this->actionTimer = (s16)Rand_ZeroFloat(15.0f) + 3; if (this->actor.params < 6) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_GOMA_BJR_FREEZE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_GOMA_BJR_FREEZE); } else { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_GOMA_JR_FREEZE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_GOMA_JR_FREEZE); } } @@ -855,9 +855,9 @@ void EnGoma_SpawnHatchDebris(EnGoma* this, PlayState* play2) { s16 i; if (this->actor.params < 6) { - SoundSource_PlaySfxAtFixedWorldPos(play, &this->actor.world.pos, 40, NA_SE_EN_GOMA_BJR_EGG2); + SfxSource_PlaySfxAtFixedWorldPos(play, &this->actor.world.pos, 40, NA_SE_EN_GOMA_BJR_EGG2); } else { - SoundSource_PlaySfxAtFixedWorldPos(play, &this->actor.world.pos, 40, NA_SE_EN_GOMA_EGG2); + SfxSource_PlaySfxAtFixedWorldPos(play, &this->actor.world.pos, 40, NA_SE_EN_GOMA_EGG2); } for (i = 0; i < 15; i++) { diff --git a/src/overlays/actors/ovl_En_Goroiwa/z_en_goroiwa.c b/src/overlays/actors/ovl_En_Goroiwa/z_en_goroiwa.c index 9a43bfde93..ee71cc80a9 100644 --- a/src/overlays/actors/ovl_En_Goroiwa/z_en_goroiwa.c +++ b/src/overlays/actors/ovl_En_Goroiwa/z_en_goroiwa.c @@ -628,7 +628,7 @@ void EnGoroiwa_Roll(EnGoroiwa* this, PlayState* play) { EnGoroiwa_SetupRoll(this); } } - Audio_PlayActorSound2(&this->actor, NA_SE_EV_BIGBALL_ROLL - SFX_FLAG); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_BIGBALL_ROLL - SFX_FLAG); } void EnGoroiwa_SetupMoveAndFallToGround(EnGoroiwa* this) { diff --git a/src/overlays/actors/ovl_En_Gs/z_en_gs.c b/src/overlays/actors/ovl_En_Gs/z_en_gs.c index 78d62f28f6..858443281d 100644 --- a/src/overlays/actors/ovl_En_Gs/z_en_gs.c +++ b/src/overlays/actors/ovl_En_Gs/z_en_gs.c @@ -156,11 +156,11 @@ void func_80A4E470(EnGs* this, PlayState* play) { (play->msgCtx.unk_E3F2 == OCARINA_SONG_TIME)) { Actor_Spawn(&play->actorCtx, play, ACTOR_EN_ELF, this->actor.world.pos.x, this->actor.world.pos.y + 40.0f, this->actor.world.pos.z, 0, 0, 0, FAIRY_HEAL_TIMED); - Audio_PlayActorSound2(&this->actor, NA_SE_EV_BUTTERFRY_TO_FAIRY); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_BUTTERFRY_TO_FAIRY); } else if (play->msgCtx.unk_E3F2 == OCARINA_SONG_STORMS) { Actor_Spawn(&play->actorCtx, play, ACTOR_EN_ELF, this->actor.world.pos.x, this->actor.world.pos.y + 40.0f, this->actor.world.pos.z, 0, 0, 0, FAIRY_HEAL_BIG); - Audio_PlayActorSound2(&this->actor, NA_SE_EV_BUTTERFRY_TO_FAIRY); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_BUTTERFRY_TO_FAIRY); } this->unk_19D = 0; Flags_SetSwitch(play, (this->actor.params >> 8) & 0x3F); @@ -211,7 +211,7 @@ f32 func_80A4E754(EnGs* this, PlayState* play, f32* arg2, f32* arg3, u16* arg4, void func_80A4E910(EnGs* this, PlayState* play) { if (this->unk_19F == 0) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_STALKID_ATTACK); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_STALKID_ATTACK); this->unk_200 = 0; this->unk_19F = 1; this->unk_1E8 = 0.5f; @@ -228,7 +228,7 @@ void func_80A4E910(EnGs* this, PlayState* play) { void func_80A4EA08(EnGs* this, PlayState* play) { if (this->unk_19F == 0) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_STALKID_ATTACK); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_STALKID_ATTACK); this->unk_1E8 = 0.3f; this->unk_1EC = 0.0f; this->unk_200 = 0; @@ -272,7 +272,7 @@ void func_80A4EB3C(EnGs* this, PlayState* play) { this->unk_1E8 = 0.5f; this->unk_1EC = 0.0f; this->unk_200 = 0; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_STALKID_ATTACK); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_STALKID_ATTACK); this->unk_19F++; } } else if (this->unk_19F == 4) { @@ -318,14 +318,14 @@ void func_80A4ED34(EnGs* this, PlayState* play) { if (this->unk_200 < 20) { Color_RGBA8_Copy(&this->flashColor, &flashRed); if ((this->unk_200 % 20) == 7) { - Audio_PlaySoundGeneral(NA_SE_SY_WARNING_COUNT_E, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_WARNING_COUNT_E, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } } else { Color_RGBA8_Copy(&this->flashColor, &flashBlue); if ((this->unk_200 % 20) == 7) { - Audio_PlaySoundGeneral(NA_SE_SY_WARNING_COUNT_N, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_WARNING_COUNT_N, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } } } @@ -365,7 +365,7 @@ void func_80A4ED34(EnGs* this, PlayState* play) { bomb2Pos.x = this->actor.world.pos.x; bomb2Pos.y = this->actor.world.pos.y; bomb2Pos.z = this->actor.world.pos.z; - Audio_PlayActorSound2(&this->actor, NA_SE_IT_BOMB_EXPLOSION); + Audio_PlayActorSfx2(&this->actor, NA_SE_IT_BOMB_EXPLOSION); EffectSsBomb2_SpawnLayered(play, &bomb2Pos, &bomb2Velocity, &bomb2Accel, 100, 20); this->unk_200 = 10; this->unk_19E |= 8; @@ -412,7 +412,7 @@ void func_80A4F13C(EnGs* this, PlayState* play) { this->unk_1EC = 1.5f; this->unk_1F0 = this->unk_1B4[1].y - 1.0f; this->unk_1F4 = -0.3f; - Audio_PlayActorSound2(&this->actor, NA_SE_EV_STONE_GROW_UP); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_STONE_GROW_UP); this->unk_19F = 3; } } @@ -460,7 +460,7 @@ void func_80A4F13C(EnGs* this, PlayState* play) { this->unk_1F4 = 0; this->unk_1F8 = 0.5f; this->unk_1FC = 0; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_STALKID_ATTACK); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_STALKID_ATTACK); this->unk_19F = 6; } } @@ -479,7 +479,7 @@ void func_80A4F13C(EnGs* this, PlayState* play) { } } if ((u16)this->unk_1A0[0].y < (u16)tmp2) { - Audio_PlayActorSound2(&this->actor, NA_SE_EV_STONE_ROLLING); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_STONE_ROLLING); } } diff --git a/src/overlays/actors/ovl_En_Heishi1/z_en_heishi1.c b/src/overlays/actors/ovl_En_Heishi1/z_en_heishi1.c index 0726839bb0..be46befc8e 100644 --- a/src/overlays/actors/ovl_En_Heishi1/z_en_heishi1.c +++ b/src/overlays/actors/ovl_En_Heishi1/z_en_heishi1.c @@ -149,7 +149,7 @@ void EnHeishi1_Walk(EnHeishi1* this, PlayState* play) { SkelAnime_Update(&this->skelAnime); if (Animation_OnFrame(&this->skelAnime, 1.0f) || Animation_OnFrame(&this->skelAnime, 17.0f)) { - Audio_PlayActorSound2(&this->actor, NA_SE_EV_KNIGHT_WALK); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_KNIGHT_WALK); } if (!sPlayerIsCaught) { diff --git a/src/overlays/actors/ovl_En_Heishi2/z_en_heishi2.c b/src/overlays/actors/ovl_En_Heishi2/z_en_heishi2.c index e7c199911c..31940309b1 100644 --- a/src/overlays/actors/ovl_En_Heishi2/z_en_heishi2.c +++ b/src/overlays/actors/ovl_En_Heishi2/z_en_heishi2.c @@ -284,7 +284,7 @@ void func_80A53638(EnHeishi2* this, PlayState* play) { SkelAnime_Update(&this->skelAnime); if ((frameCount >= 12.0f) && (!this->audioFlag)) { - Audio_PlayActorSound2(&this->actor, NA_SE_EV_SPEAR_HIT); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_SPEAR_HIT); this->audioFlag = 1; } if (this->unk_2EC <= frameCount) { @@ -447,7 +447,7 @@ void func_80A53D0C(EnHeishi2* this, PlayState* play) { SkelAnime_Update(&this->skelAnime); if (12.0f <= frameCount) { if (this->audioFlag == 0) { - Audio_PlayActorSound2(&this->actor, NA_SE_EV_SPEAR_HIT); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_SPEAR_HIT); this->audioFlag = 1; } } @@ -605,7 +605,7 @@ void func_80A543A0(EnHeishi2* this, PlayState* play) { SkelAnime_Update(&this->skelAnime); if ((frameCount >= 12.0f) && (!this->audioFlag)) { - Audio_PlayActorSound2(&this->actor, NA_SE_EV_SPEAR_HIT); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_SPEAR_HIT); this->audioFlag = 1; } diff --git a/src/overlays/actors/ovl_En_Heishi3/z_en_heishi3.c b/src/overlays/actors/ovl_En_Heishi3/z_en_heishi3.c index f058f77aa7..a82a0e9dfe 100644 --- a/src/overlays/actors/ovl_En_Heishi3/z_en_heishi3.c +++ b/src/overlays/actors/ovl_En_Heishi3/z_en_heishi3.c @@ -179,7 +179,7 @@ void func_80A55BD4(EnHeishi3* this, PlayState* play) { SkelAnime_Update(&this->skelAnime); if (Animation_OnFrame(&this->skelAnime, 1.0f) || Animation_OnFrame(&this->skelAnime, 17.0f)) { - Audio_PlayActorSound2(&this->actor, NA_SE_EV_KNIGHT_WALK); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_KNIGHT_WALK); } if (this->caughtTimer == 0) { this->actionFunc = EnHeishi3_ResetAnimationToIdle; diff --git a/src/overlays/actors/ovl_En_Hintnuts/z_en_hintnuts.c b/src/overlays/actors/ovl_En_Hintnuts/z_en_hintnuts.c index 5a1836045f..ba8d3562ed 100644 --- a/src/overlays/actors/ovl_En_Hintnuts/z_en_hintnuts.c +++ b/src/overlays/actors/ovl_En_Hintnuts/z_en_hintnuts.c @@ -148,14 +148,14 @@ void EnHintnuts_SetupStand(EnHintnuts* this) { void EnHintnuts_SetupBurrow(EnHintnuts* this) { Animation_MorphToPlayOnce(&this->skelAnime, &gHintNutsBurrowAnim, -5.0f); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_NUTS_DOWN); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_NUTS_DOWN); this->actionFunc = EnHintnuts_Burrow; } void EnHintnuts_HitByScrubProjectile2(EnHintnuts* this) { Animation_MorphToPlayOnce(&this->skelAnime, &gHintNutsUnburrowAnim, -3.0f); this->collider.dim.height = 37; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_NUTS_DAMAGE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_NUTS_DAMAGE); this->collider.base.acFlags &= ~AC_ON; if (this->actor.params > 0 && this->actor.params < 4 && this->actor.category == ACTORCAT_ENEMY) { @@ -196,7 +196,7 @@ void EnHintnuts_SetupLeave(EnHintnuts* this, PlayState* play) { this->actor.world.rot.y = this->actor.shape.rot.y; this->collider.base.ocFlags1 &= ~OC1_ON; this->actor.flags |= ACTOR_FLAG_4; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_NUTS_DAMAGE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_NUTS_DAMAGE); Actor_Spawn(&play->actorCtx, play, ACTOR_EN_ITEM00, this->actor.world.pos.x, this->actor.world.pos.y, this->actor.world.pos.z, 0x0, 0x0, 0x0, 0x3); // recovery heart this->actionFunc = EnHintnuts_Leave; @@ -208,7 +208,7 @@ void EnHintnuts_SetupFreeze(EnHintnuts* this) { Actor_SetColorFilter(&this->actor, 0, 0xFF, 0, 100); this->actor.colorFilterTimer = 1; this->animFlagAndTimer = 0; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_NUTS_FAINT); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_NUTS_FAINT); if (sPuzzleCounter == -3) { func_80078884(NA_SE_SY_ERROR); sPuzzleCounter = -4; @@ -228,7 +228,7 @@ void EnHintnuts_Wait(EnHintnuts* this, PlayState* play) { if (Animation_OnFrame(&this->skelAnime, 9.0f)) { this->collider.base.acFlags |= AC_ON; } else if (Animation_OnFrame(&this->skelAnime, 8.0f)) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_NUTS_UP); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_NUTS_UP); } this->collider.dim.height = 5.0f + ((CLAMP(this->skelAnime.curFrame, 9.0f, 12.0f) - 9.0f) * 9.0f); @@ -288,7 +288,7 @@ void EnHintnuts_ThrowNut(EnHintnuts* this, PlayState* play) { nutPos.z = this->actor.world.pos.z + (Math_CosS(this->actor.shape.rot.y) * 23.0f); if (Actor_Spawn(&play->actorCtx, play, ACTOR_EN_NUTSBALL, nutPos.x, nutPos.y, nutPos.z, this->actor.shape.rot.x, this->actor.shape.rot.y, this->actor.shape.rot.z, 1) != NULL) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_NUTS_THROW); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_NUTS_THROW); } } } @@ -347,7 +347,7 @@ void EnHintnuts_Run(EnHintnuts* this, PlayState* play) { this->animFlagAndTimer--; } if ((temp_ret != 0) || (Animation_OnFrame(&this->skelAnime, 6.0f))) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_NUTS_WALK); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_NUTS_WALK); } Math_StepToF(&this->actor.speedXZ, 7.5f, 1.0f); @@ -403,7 +403,7 @@ void EnHintnuts_Leave(EnHintnuts* this, PlayState* play) { this->animFlagAndTimer--; } if (Animation_OnFrame(&this->skelAnime, 0.0f) || Animation_OnFrame(&this->skelAnime, 6.0f)) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_NUTS_WALK); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_NUTS_WALK); } if (this->actor.bgCheckFlags & BGCHECKFLAG_WALL) { temp_a1 = this->actor.wallYaw; @@ -434,7 +434,7 @@ void EnHintnuts_Freeze(EnHintnuts* this, PlayState* play) { this->actor.colorFilterTimer = 1; SkelAnime_Update(&this->skelAnime); if (Animation_OnFrame(&this->skelAnime, 0.0f)) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_NUTS_FAINT); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_NUTS_FAINT); } if (this->animFlagAndTimer == 0) { if (sPuzzleCounter == 3) { diff --git a/src/overlays/actors/ovl_En_Honotrap/z_en_honotrap.c b/src/overlays/actors/ovl_En_Honotrap/z_en_honotrap.c index 902be6f05b..0a3943b94d 100644 --- a/src/overlays/actors/ovl_En_Honotrap/z_en_honotrap.c +++ b/src/overlays/actors/ovl_En_Honotrap/z_en_honotrap.c @@ -199,7 +199,7 @@ void EnHonotrap_InitFlame(Actor* thisx, PlayState* play) { this->targetPos.y += 10.0f; this->flameScroll = Rand_ZeroOne() * 511.0f; EnHonotrap_SetupFlame(this); - Audio_PlayActorSound2(&this->actor, NA_SE_EV_FLAME_IGNITION); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_FLAME_IGNITION); if (this->actor.params == HONOTRAP_FLAME_DROP) { this->actor.room = -1; this->collider.cyl.dim.radius = 12; @@ -248,7 +248,7 @@ void EnHonotrap_SetupEyeOpen(EnHonotrap* this) { this->actionFunc = EnHonotrap_EyeOpen; Actor_SetColorFilter(&this->actor, 0x4000, 0xFF, 0, 0x28); this->timer = 30; - Audio_PlayActorSound2(&this->actor, NA_SE_EV_RED_EYE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_RED_EYE); } void EnHonotrap_EyeOpen(EnHonotrap* this, PlayState* play) { @@ -478,7 +478,7 @@ void EnHonotrap_Update(Actor* thisx, PlayState* play) { this->bobPhase += 0x640; this->actor.shape.yOffset = (Math_SinS(this->bobPhase) * 1000.0f) + 600.0f; Actor_SetFocus(&this->actor, 5.0f); - Audio_PlayActorSound2(&this->actor, NA_SE_EV_BURN_OUT - SFX_FLAG); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_BURN_OUT - SFX_FLAG); } this->actionFunc(this, play); if (this->actor.params == HONOTRAP_EYE) { diff --git a/src/overlays/actors/ovl_En_Horse/z_en_horse.c b/src/overlays/actors/ovl_En_Horse/z_en_horse.c index eddf488023..9b9a62efed 100644 --- a/src/overlays/actors/ovl_En_Horse/z_en_horse.c +++ b/src/overlays/actors/ovl_En_Horse/z_en_horse.c @@ -603,28 +603,28 @@ void EnHorse_UpdateIngoRaceInfo(EnHorse* this, PlayState* play, RaceInfo* raceIn this->ingoRaceFlags &= ~0x1; } -void EnHorse_PlayWalkingSound(EnHorse* this) { +void EnHorse_PlayWalkingSfx(EnHorse* this) { if (sAnimSoundFrames[this->soundTimer] < this->curFrame) { if (this->soundTimer == 0 && (sAnimSoundFrames[1] < this->curFrame)) { return; } - Audio_PlaySoundGeneral(NA_SE_EV_HORSE_WALK, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EV_HORSE_WALK, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); if (++this->soundTimer >= ARRAY_COUNT(sAnimSoundFrames)) { this->soundTimer = 0; } } } -void EnHorse_PlayTrottingSound(EnHorse* this) { - Audio_PlaySoundGeneral(NA_SE_EV_HORSE_RUN, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); +void EnHorse_PlayTrottingSfx(EnHorse* this) { + Audio_PlaySfxGeneral(NA_SE_EV_HORSE_RUN, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } -void EnHorse_PlayGallopingSound(EnHorse* this) { - Audio_PlaySoundGeneral(NA_SE_EV_HORSE_RUN, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); +void EnHorse_PlayGallopingSfx(EnHorse* this) { + Audio_PlaySfxGeneral(NA_SE_EV_HORSE_RUN, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } f32 EnHorse_SlopeSpeedMultiplier(EnHorse* this, PlayState* play) { @@ -659,13 +659,13 @@ void EnHorse_IdleAnimSounds(EnHorse* this, PlayState* play) { (this->curFrame > 28.0f && this->type == HORSE_HNI)) && !(this->stateFlags & ENHORSE_SANDDUST_SOUND)) { this->stateFlags |= ENHORSE_SANDDUST_SOUND; - Audio_PlaySoundGeneral(NA_SE_EV_HORSE_SANDDUST, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EV_HORSE_SANDDUST, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } else if (this->animationIdx == ENHORSE_ANIM_REARING && this->curFrame > 25.0f && !(this->stateFlags & ENHORSE_LAND2_SOUND)) { this->stateFlags |= ENHORSE_LAND2_SOUND; - Audio_PlaySoundGeneral(NA_SE_EV_HORSE_LAND2, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EV_HORSE_LAND2, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } } @@ -1075,8 +1075,8 @@ void EnHorse_StartMountedIdle(EnHorse* this) { if ((this->curFrame > 35.0f && this->type == HORSE_EPONA) || (this->curFrame > 28.0f && this->type == HORSE_HNI)) { if (!(this->stateFlags & ENHORSE_SANDDUST_SOUND)) { this->stateFlags |= ENHORSE_SANDDUST_SOUND; - Audio_PlaySoundGeneral(NA_SE_EV_HORSE_SANDDUST, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EV_HORSE_SANDDUST, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } } curFrame = this->skin.skelAnime.curFrame; @@ -1128,8 +1128,8 @@ void EnHorse_MountedIdleWhinney(EnHorse* this) { Animation_GetLastFrame(sAnimationHeaders[this->type][this->animationIdx]), ANIMMODE_ONCE, -3.0f); this->unk_21C = this->unk_228; if (this->stateFlags & ENHORSE_DRAW) { - Audio_PlaySoundGeneral(NA_SE_EV_HORSE_GROAN, &this->unk_21C, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EV_HORSE_GROAN, &this->unk_21C, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } } @@ -1167,7 +1167,7 @@ void EnHorse_MountedTurn(EnHorse* this, PlayState* play) { s16 stickAngle; this->actor.speedXZ = 0; - EnHorse_PlayWalkingSound(this); + EnHorse_PlayWalkingSfx(this); EnHorse_StickDirection(&this->curStick, &stickMag, &stickAngle); if (stickMag > 10.0f) { if (!EnHorse_PlayerCanMove(this, play)) { @@ -1232,7 +1232,7 @@ void EnHorse_MountedWalk(EnHorse* this, PlayState* play) { f32 stickMag; s16 stickAngle; - EnHorse_PlayWalkingSound(this); + EnHorse_PlayWalkingSfx(this); EnHorse_StickDirection(&this->curStick, &stickMag, &stickAngle); if (this->noInputTimerMax == 0.0f || (this->noInputTimer > 0.0f && this->noInputTimer < this->noInputTimerMax - 20.0f)) { @@ -1311,7 +1311,7 @@ void EnHorse_MountedTrot(EnHorse* this, PlayState* play) { this->skin.skelAnime.playSpeed = this->actor.speedXZ * 0.375f; if (SkelAnime_Update(&this->skin.skelAnime)) { - EnHorse_PlayTrottingSound(this); + EnHorse_PlayTrottingSfx(this); func_800AA000(0.0f, 60, 8, 255); if (this->actor.speedXZ >= 6.0f) { EnHorse_StartGallopingInterruptable(this); @@ -1379,7 +1379,7 @@ void EnHorse_MountedGallop(EnHorse* this, PlayState* play) { this->skin.skelAnime.playSpeed = this->actor.speedXZ * 0.3f; if (SkelAnime_Update(&this->skin.skelAnime)) { - EnHorse_PlayGallopingSound(this); + EnHorse_PlayGallopingSfx(this); func_800AA000(0, 120, 8, 255); if (EnHorse_PlayerCanMove(this, play) == true) { if (stickMag >= 10.0f && Math_CosS(stickAngle) <= -0.5f) { @@ -1401,8 +1401,8 @@ void EnHorse_StartRearing(EnHorse* this) { this->stateFlags &= ~ENHORSE_LAND2_SOUND; this->unk_21C = this->unk_228; if (this->stateFlags & ENHORSE_DRAW) { - Audio_PlaySoundGeneral(NA_SE_EV_HORSE_NEIGH, &this->unk_21C, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EV_HORSE_NEIGH, &this->unk_21C, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } func_800AA000(0.0f, 180, 20, 100); Animation_Change(&this->skin.skelAnime, sAnimationHeaders[this->type][this->animationIdx], 1.0f, 0.0f, @@ -1417,8 +1417,8 @@ void EnHorse_MountedRearing(EnHorse* this, PlayState* play) { if (this->curFrame > 25.0f) { if (!(this->stateFlags & ENHORSE_LAND2_SOUND)) { this->stateFlags |= ENHORSE_LAND2_SOUND; - Audio_PlaySoundGeneral(NA_SE_EV_HORSE_LAND2, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EV_HORSE_LAND2, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); func_800AA000(0, 180, 20, 100); } } @@ -1451,8 +1451,8 @@ void EnHorse_StartBraking(EnHorse* this, PlayState* play) { this->action = ENHORSE_ACT_STOPPING; this->animationIdx = ENHORSE_ANIM_STOPPING; - Audio_PlaySoundGeneral(NA_SE_EV_HORSE_SLIP, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EV_HORSE_SLIP, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); Animation_Change(&this->skin.skelAnime, sAnimationHeaders[this->type][this->animationIdx], 1.5f, 0.0f, Animation_GetLastFrame(sAnimationHeaders[this->type][this->animationIdx]), ANIMMODE_ONCE, -3.0f); @@ -1473,8 +1473,8 @@ void EnHorse_Stopping(EnHorse* this, PlayState* play) { if (Rand_ZeroOne() > 0.5) { this->unk_21C = this->unk_228; if (this->stateFlags & ENHORSE_DRAW) { - Audio_PlaySoundGeneral(NA_SE_EV_HORSE_NEIGH, &this->unk_21C, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EV_HORSE_NEIGH, &this->unk_21C, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } func_800AA000(0.0f, 180, 20, 100); this->stateFlags &= ~ENHORSE_STOPPING_NEIGH_SOUND; @@ -1521,7 +1521,7 @@ void EnHorse_Reverse(EnHorse* this, PlayState* play) { s16 turnAmount; Player* player = GET_PLAYER(play); - EnHorse_PlayWalkingSound(this); + EnHorse_PlayWalkingSfx(this); EnHorse_StickDirection(&this->curStick, &stickMag, &stickAngle); if (EnHorse_PlayerCanMove(this, play) == true) { if (this->noInputTimerMax == 0.0f || @@ -1605,8 +1605,8 @@ void EnHorse_StartLowJump(EnHorse* this, PlayState* play) { y = jointTable->y; this->riderPos.y -= y * 0.01f; - Audio_PlaySoundGeneral(NA_SE_EV_HORSE_JUMP, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EV_HORSE_JUMP, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); func_800AA000(0.0f, 170, 10, 10); } @@ -1640,8 +1640,8 @@ void EnHorse_LowJump(EnHorse* this, PlayState* play) { if (SkelAnime_Update(&this->skin.skelAnime) || (curFrame > 17.0f && this->actor.world.pos.y < this->actor.floorHeight - this->actor.velocity.y + 80.0f)) { - Audio_PlaySoundGeneral(NA_SE_EV_HORSE_LAND, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EV_HORSE_LAND, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); func_800AA000(0.0f, 255, 10, 80); this->stateFlags &= ~ENHORSE_JUMPING; this->actor.gravity = -3.5f; @@ -1680,8 +1680,8 @@ void EnHorse_StartHighJump(EnHorse* this, PlayState* play) { this->riderPos.y -= y * 0.01f; this->stateFlags |= ENHORSE_CALC_RIDER_POS; - Audio_PlaySoundGeneral(NA_SE_EV_HORSE_JUMP, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EV_HORSE_JUMP, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); func_800AA000(0.0f, 170, 10, 10); } @@ -1716,8 +1716,8 @@ void EnHorse_HighJump(EnHorse* this, PlayState* play) { if (SkelAnime_Update(&this->skin.skelAnime) || (curFrame > 23.0f && this->actor.world.pos.y < this->actor.floorHeight - this->actor.velocity.y + 80.0f)) { - Audio_PlaySoundGeneral(NA_SE_EV_HORSE_LAND, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EV_HORSE_LAND, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); func_800AA000(0.0f, 255, 10, 80); this->stateFlags &= ~ENHORSE_JUMPING; this->actor.gravity = -3.5f; @@ -1745,8 +1745,8 @@ void EnHorse_Inactive(EnHorse* this, PlayState* play2) { if (DREG(53) != 0 && this->type == HORSE_EPONA) { DREG(53) = 0; if (EnHorse_Spawn(this, play) != 0) { - Audio_PlaySoundGeneral(NA_SE_EV_HORSE_NEIGH, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EV_HORSE_NEIGH, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); this->stateFlags &= ~ENHORSE_INACTIVE; gSaveContext.horseData.scene = play->sceneNum; @@ -1779,14 +1779,14 @@ void EnHorse_PlayIdleAnimation(EnHorse* this, s32 anim, f32 morphFrames, f32 sta } else if (this->animationIdx == ENHORSE_ANIM_WHINNEY) { this->unk_21C = this->unk_228; if (this->stateFlags & ENHORSE_DRAW) { - Audio_PlaySoundGeneral(NA_SE_EV_HORSE_GROAN, &this->unk_21C, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EV_HORSE_GROAN, &this->unk_21C, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } } else if (this->animationIdx == ENHORSE_ANIM_REARING) { this->unk_21C = this->unk_228; if (this->stateFlags & ENHORSE_DRAW) { - Audio_PlaySoundGeneral(NA_SE_EV_HORSE_NEIGH, &this->unk_21C, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EV_HORSE_NEIGH, &this->unk_21C, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } this->stateFlags &= ~ENHORSE_LAND2_SOUND; } @@ -1821,8 +1821,8 @@ void EnHorse_Idle(EnHorse* this, PlayState* play) { DREG(53) = 0; if (!func_80A5BBBC(play, this, &this->actor.world.pos)) { if (EnHorse_Spawn(this, play)) { - Audio_PlaySoundGeneral(NA_SE_EV_HORSE_NEIGH, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EV_HORSE_NEIGH, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); this->followTimer = 0; EnHorse_SetFollowAnimation(this, play); Camera_SetParam(play->cameraPtrs[CAM_ID_MAIN], 8, this); @@ -1830,8 +1830,8 @@ void EnHorse_Idle(EnHorse* this, PlayState* play) { Camera_SetCameraData(play->cameraPtrs[CAM_ID_MAIN], 4, NULL, NULL, 0x51, 0, 0); } } else { - Audio_PlaySoundGeneral(NA_SE_EV_HORSE_NEIGH, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EV_HORSE_NEIGH, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); this->followTimer = 0; EnHorse_StartMovingAnimation(this, 6, -3.0f, 0.0f); } @@ -1940,8 +1940,8 @@ void EnHorse_FollowPlayer(EnHorse* this, PlayState* play) { if (this->curFrame > 25.0f) { if (!(this->stateFlags & ENHORSE_LAND2_SOUND)) { this->stateFlags |= ENHORSE_LAND2_SOUND; - Audio_PlaySoundGeneral(NA_SE_EV_HORSE_LAND2, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EV_HORSE_LAND2, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } } } else { @@ -1956,7 +1956,7 @@ void EnHorse_FollowPlayer(EnHorse* this, PlayState* play) { this->skin.skelAnime.playSpeed = this->actor.speedXZ * 0.375f; } else if (this->animationIdx == ENHORSE_ANIM_WALK) { this->actor.speedXZ = 3; - EnHorse_PlayWalkingSound(this); + EnHorse_PlayWalkingSfx(this); this->skin.skelAnime.playSpeed = this->actor.speedXZ * 0.75f; } else { this->actor.speedXZ = 0; @@ -1968,16 +1968,16 @@ void EnHorse_FollowPlayer(EnHorse* this, PlayState* play) { this->unk_21C = this->unk_228; if (this->stateFlags & ENHORSE_DRAW) { - Audio_PlaySoundGeneral(NA_SE_EV_HORSE_NEIGH, &this->unk_21C, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EV_HORSE_NEIGH, &this->unk_21C, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } } if (SkelAnime_Update(&this->skin.skelAnime)) { if (this->animationIdx == ENHORSE_ANIM_GALLOP) { - EnHorse_PlayGallopingSound(this); + EnHorse_PlayGallopingSfx(this); } else if (this->animationIdx == ENHORSE_ANIM_TROT) { - EnHorse_PlayTrottingSound(this); + EnHorse_PlayTrottingSfx(this); } this->stateFlags &= ~ENHORSE_TURNING_TO_PLAYER; if (distToPlayer < 100.0f) { @@ -1997,8 +1997,8 @@ void EnHorse_InitIngoHorse(EnHorse* this) { EnHorse_UpdateIngoHorseAnim(this); this->unk_21C = this->unk_228; if (this->stateFlags & ENHORSE_DRAW) { - Audio_PlaySoundGeneral(NA_SE_IT_INGO_HORSE_NEIGH, &this->unk_21C, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_IT_INGO_HORSE_NEIGH, &this->unk_21C, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } } @@ -2051,12 +2051,12 @@ void EnHorse_UpdateIngoHorseAnim(EnHorse* this) { animSpeed = this->actor.speedXZ * 0.5f; } else if (this->animationIdx == ENHORSE_ANIM_TROT) { animSpeed = this->actor.speedXZ * 0.25f; - Audio_PlaySoundGeneral(NA_SE_EV_HORSE_RUN, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EV_HORSE_RUN, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } else if (this->animationIdx == ENHORSE_ANIM_GALLOP) { animSpeed = this->actor.speedXZ * 0.2f; - Audio_PlaySoundGeneral(NA_SE_EV_HORSE_RUN, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EV_HORSE_RUN, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } else { animSpeed = 1.0f; } @@ -2078,7 +2078,7 @@ void EnHorse_UpdateIngoRace(EnHorse* this, PlayState* play) { if (this->animationIdx == ENHORSE_ANIM_IDLE || this->animationIdx == ENHORSE_ANIM_WHINNEY) { EnHorse_IdleAnimSounds(this, play); } else if (this->animationIdx == ENHORSE_ANIM_WALK) { - EnHorse_PlayWalkingSound(this); + EnHorse_PlayWalkingSfx(this); } EnHorse_UpdateIngoRaceInfo(this, play, &sIngoRace); @@ -2141,7 +2141,7 @@ void EnHorse_CsMoveToPoint(EnHorse* this, PlayState* play, CsCmdActorAction* act } if (SkelAnime_Update(&this->skin.skelAnime)) { - EnHorse_PlayGallopingSound(this); + EnHorse_PlayGallopingSfx(this); func_800AA000(0.0f, 120, 8, 255); Animation_PlayOnceSetSpeed(&this->skin.skelAnime, sAnimationHeaders[this->type][this->animationIdx], this->actor.speedXZ * 0.3f); @@ -2172,8 +2172,8 @@ void EnHorse_CsPlayHighJumpAnim(EnHorse* this, PlayState* play) { this->riderPos.y -= y * 0.01f; this->stateFlags |= ENHORSE_CALC_RIDER_POS; - Audio_PlaySoundGeneral(NA_SE_EV_HORSE_JUMP, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EV_HORSE_JUMP, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); func_800AA000(0.0f, 170, 10, 10); } @@ -2217,8 +2217,8 @@ void EnHorse_CsJump(EnHorse* this, PlayState* play, CsCmdActorAction* action) { f32 y; this->cutsceneFlags |= 1; - Audio_PlaySoundGeneral(NA_SE_EV_HORSE_LAND, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EV_HORSE_LAND, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); func_800AA000(0.0f, 255, 10, 80); this->stateFlags &= ~ENHORSE_JUMPING; this->actor.gravity = -3.5f; @@ -2242,8 +2242,8 @@ void EnHorse_CsRearingInit(EnHorse* this, PlayState* play, CsCmdActorAction* act this->stateFlags &= ~ENHORSE_LAND2_SOUND; this->unk_21C = this->unk_228; if (this->stateFlags & ENHORSE_DRAW) { - Audio_PlaySoundGeneral(NA_SE_EV_HORSE_NEIGH, &this->unk_21C, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EV_HORSE_NEIGH, &this->unk_21C, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } Animation_Change(&this->skin.skelAnime, sAnimationHeaders[this->type][this->animationIdx], 1.0f, 0.0f, Animation_GetLastFrame(sAnimationHeaders[this->type][this->animationIdx]), ANIMMODE_ONCE, -3.0f); @@ -2254,8 +2254,8 @@ void EnHorse_CsRearing(EnHorse* this, PlayState* play, CsCmdActorAction* action) if (this->curFrame > 25.0f) { if (!(this->stateFlags & ENHORSE_LAND2_SOUND)) { this->stateFlags |= ENHORSE_LAND2_SOUND; - Audio_PlaySoundGeneral(NA_SE_EV_HORSE_LAND2, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EV_HORSE_LAND2, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } } if (SkelAnime_Update(&this->skin.skelAnime)) { @@ -2302,7 +2302,7 @@ void EnHorse_CsWarpMoveToPoint(EnHorse* this, PlayState* play, CsCmdActorAction* } if (SkelAnime_Update(&this->skin.skelAnime)) { - EnHorse_PlayGallopingSound(this); + EnHorse_PlayGallopingSfx(this); func_800AA000(0.0f, 120, 8, 255); Animation_PlayOnceSetSpeed(&this->skin.skelAnime, sAnimationHeaders[this->type][this->animationIdx], this->actor.speedXZ * 0.3f); @@ -2322,8 +2322,8 @@ void EnHorse_CsWarpRearingInit(EnHorse* this, PlayState* play, CsCmdActorAction* this->stateFlags &= ~ENHORSE_LAND2_SOUND; this->unk_21C = this->unk_228; if (this->stateFlags & ENHORSE_DRAW) { - Audio_PlaySoundGeneral(NA_SE_EV_HORSE_NEIGH, &this->unk_21C, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EV_HORSE_NEIGH, &this->unk_21C, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } Animation_Change(&this->skin.skelAnime, sAnimationHeaders[this->type][this->animationIdx], 1.0f, 0.0f, Animation_GetLastFrame(sAnimationHeaders[this->type][this->animationIdx]), ANIMMODE_ONCE, -3.0f); @@ -2334,8 +2334,8 @@ void EnHorse_CsWarpRearing(EnHorse* this, PlayState* play, CsCmdActorAction* act if (this->curFrame > 25.0f) { if (!(this->stateFlags & ENHORSE_LAND2_SOUND)) { this->stateFlags |= ENHORSE_LAND2_SOUND; - Audio_PlaySoundGeneral(NA_SE_EV_HORSE_LAND2, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EV_HORSE_LAND2, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } } if (SkelAnime_Update(&this->skin.skelAnime)) { @@ -2485,13 +2485,13 @@ void EnHorse_UpdateHbaAnim(EnHorse* this) { animSpeed = this->actor.speedXZ * 0.5f; } else if (this->animationIdx == ENHORSE_ANIM_TROT) { animSpeed = this->actor.speedXZ * 0.25f; - Audio_PlaySoundGeneral(NA_SE_EV_HORSE_RUN, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EV_HORSE_RUN, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); func_800AA000(0.0f, 60, 8, 255); } else if (this->animationIdx == ENHORSE_ANIM_GALLOP) { animSpeed = this->actor.speedXZ * 0.2f; - Audio_PlaySoundGeneral(NA_SE_EV_HORSE_RUN, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EV_HORSE_RUN, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); func_800AA000(0.0f, 120, 8, 255); } else { animSpeed = 1.0f; @@ -2514,7 +2514,7 @@ void EnHorse_UpdateHorsebackArchery(EnHorse* this, PlayState* play) { s32 sp20; if (this->animationIdx == ENHORSE_ANIM_WALK) { - EnHorse_PlayWalkingSound(this); + EnHorse_PlayWalkingSfx(this); } if (play->interfaceCtx.hbaAmmo == 0) { this->hbaTimer++; @@ -2593,8 +2593,8 @@ void EnHorse_FleePlayer(EnHorse* this, PlayState* play) { if (DREG(53) || this->type == HORSE_HNI) { EnHorse_StartIdleRidable(this); - Audio_PlaySoundGeneral(NA_SE_EV_HORSE_NEIGH, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EV_HORSE_NEIGH, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } distToHome = Math3D_Vec3f_DistXYZ(&this->actor.home.pos, &this->actor.world.pos); @@ -2638,7 +2638,7 @@ void EnHorse_FleePlayer(EnHorse* this, PlayState* play) { } else if (this->actor.speedXZ > 0.1f) { // walk this->skin.skelAnime.playSpeed = this->actor.speedXZ * 0.75f; nextAnim = ENHORSE_ANIM_WALK; - EnHorse_PlayWalkingSound(this); + EnHorse_PlayWalkingSfx(this); } else { // idle nextAnim = Rand_ZeroOne() > 0.5f ? 1 : 0; EnHorse_IdleAnimSounds(this, play); @@ -2674,9 +2674,9 @@ void EnHorse_FleePlayer(EnHorse* this, PlayState* play) { Animation_GetLastFrame(sAnimationHeaders[this->type][this->animationIdx]), ANIMMODE_ONCE, -3.0f); if (this->animationIdx == ENHORSE_ANIM_GALLOP) { - EnHorse_PlayGallopingSound(this); + EnHorse_PlayGallopingSfx(this); } else if (this->animationIdx == ENHORSE_ANIM_TROT) { - EnHorse_PlayTrottingSound(this); + EnHorse_PlayTrottingSfx(this); } return; } @@ -2684,9 +2684,9 @@ void EnHorse_FleePlayer(EnHorse* this, PlayState* play) { if (animFinished) { if (nextAnim == ENHORSE_ANIM_GALLOP) { - EnHorse_PlayGallopingSound(this); + EnHorse_PlayGallopingSfx(this); } else if (nextAnim == ENHORSE_ANIM_TROT) { - EnHorse_PlayTrottingSound(this); + EnHorse_PlayTrottingSfx(this); } if (this->animationIdx == ENHORSE_ANIM_IDLE || this->animationIdx == ENHORSE_ANIM_WHINNEY) { @@ -2704,8 +2704,8 @@ void EnHorse_FleePlayer(EnHorse* this, PlayState* play) { this->animationIdx = ENHORSE_ANIM_WHINNEY; this->unk_21C = this->unk_228; if (this->stateFlags & ENHORSE_DRAW) { - Audio_PlaySoundGeneral(NA_SE_EV_HORSE_GROAN, &this->unk_21C, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EV_HORSE_GROAN, &this->unk_21C, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } } Animation_Change(&this->skin.skelAnime, sAnimationHeaders[this->type][this->animationIdx], 1.0f, 0.0f, @@ -2761,11 +2761,11 @@ void EnHorse_BridgeJumpInit(EnHorse* this, PlayState* play) { Animation_GetLastFrame(sAnimationHeaders[this->type][this->animationIdx]), ANIMMODE_ONCE, -3.0f); this->unk_21C = this->unk_228; if (this->stateFlags & ENHORSE_DRAW) { - Audio_PlaySoundGeneral(NA_SE_EV_HORSE_NEIGH, &this->unk_21C, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EV_HORSE_NEIGH, &this->unk_21C, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } - Audio_PlaySoundGeneral(NA_SE_EV_HORSE_JUMP, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EV_HORSE_JUMP, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); func_800AA000(0.0f, 170, 10, 10); this->postDrawFunc = NULL; } @@ -2814,8 +2814,8 @@ void EnHorse_CheckBridgeJumpLanding(EnHorse* this, PlayState* play) { this->actor.world.pos.y = sBridgeJumps[this->bridgeJumpIdx].pos.y; func_80028A54(play, 25.0f, &this->actor.world.pos); EnHorse_JumpLanding(this, play); - Audio_PlaySoundGeneral(NA_SE_EV_HORSE_LAND, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EV_HORSE_LAND, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); func_800AA000(0.0f, 255, 10, 80); } } @@ -3141,8 +3141,8 @@ void EnHorse_UpdateBgCheckInfo(EnHorse* this, PlayState* play) { Math_CosS(this->actor.wallYaw - ((void)0, this->actor.world).rot.y) < -0.3f) { if (this->actor.speedXZ > 4.0f) { this->actor.speedXZ -= 1.0f; - Audio_PlaySoundGeneral(NA_SE_EV_HORSE_SANDDUST, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EV_HORSE_SANDDUST, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } } @@ -3347,8 +3347,8 @@ void EnHorse_CheckBoost(EnHorse* thisx, PlayState* play2) { this->unk_21C = this->unk_228; if (this->stateFlags & ENHORSE_DRAW) { if (Rand_ZeroOne() < 0.1f) { - Audio_PlaySoundGeneral(NA_SE_EV_HORSE_NEIGH, &this->unk_21C, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EV_HORSE_NEIGH, &this->unk_21C, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } } } @@ -3365,8 +3365,8 @@ void EnHorse_RegenBoost(EnHorse* this, PlayState* play) { this->numBoosts = this->numBoosts + 1; if (!EN_HORSE_CHECK_4(this)) { - Audio_PlaySoundGeneral(NA_SE_SY_CARROT_RECOVER, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_CARROT_RECOVER, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } if (this->numBoosts < 6) { @@ -3382,8 +3382,8 @@ void EnHorse_RegenBoost(EnHorse* this, PlayState* play) { this->numBoosts = 6; if (!EN_HORSE_CHECK_4(this)) { - Audio_PlaySoundGeneral(NA_SE_SY_CARROT_RECOVER, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_CARROT_RECOVER, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } } } @@ -3391,8 +3391,8 @@ void EnHorse_RegenBoost(EnHorse* this, PlayState* play) { if (this->boostTimer == 8 && Rand_ZeroOne() < 0.25f) { this->unk_21C = this->unk_228; if (this->stateFlags & ENHORSE_DRAW) { - Audio_PlaySoundGeneral(NA_SE_EV_HORSE_NEIGH, &this->unk_21C, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EV_HORSE_NEIGH, &this->unk_21C, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } } play->interfaceCtx.numHorseBoosts = this->numBoosts; @@ -3533,8 +3533,8 @@ void EnHorse_Update(Actor* thisx, PlayState* play2) { if (this->jntSph.base.acFlags & AC_HIT) { this->unk_21C = this->unk_228; if (this->stateFlags & ENHORSE_DRAW) { - Audio_PlaySoundGeneral(NA_SE_EV_HORSE_NEIGH, &this->unk_21C, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EV_HORSE_NEIGH, &this->unk_21C, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } } if (this->action != ENHORSE_ACT_INGO_RACE) { diff --git a/src/overlays/actors/ovl_En_Horse_Game_Check/z_en_horse_game_check.c b/src/overlays/actors/ovl_En_Horse_Game_Check/z_en_horse_game_check.c index 339312bc02..0e96f3fb3e 100644 --- a/src/overlays/actors/ovl_En_Horse_Game_Check/z_en_horse_game_check.c +++ b/src/overlays/actors/ovl_En_Horse_Game_Check/z_en_horse_game_check.c @@ -150,8 +150,8 @@ s32 EnHorseGameCheck_UpdateIngoRace(EnHorseGameCheckBase* base, PlayState* play) ingoHorse->inRace = 1; this->startFlags |= INGORACE_INGO_MOVE; - Audio_PlaySoundGeneral(NA_SE_SY_START_SHOT, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_START_SHOT, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } this->startTimer++; @@ -183,8 +183,8 @@ s32 EnHorseGameCheck_UpdateIngoRace(EnHorseGameCheckBase* base, PlayState* play) this->result = INGORACE_PLAYER_WIN; this->finishTimer = 55; Audio_QueueSeqCmd(SEQ_PLAYER_BGM_MAIN << 24 | NA_BGM_HORSE_GOAL); - Audio_PlaySoundGeneral(NA_SE_SY_START_SHOT, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_START_SHOT, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } for (i = 0; i < 3; i++) { this->playerCheck[i] = 0; @@ -199,8 +199,8 @@ s32 EnHorseGameCheck_UpdateIngoRace(EnHorseGameCheckBase* base, PlayState* play) this->finishTimer = 70; ingoHorse->stateFlags |= ENHORSE_INGO_WON; Audio_QueueSeqCmd(SEQ_PLAYER_BGM_MAIN << 24 | NA_BGM_HORSE_GOAL); - Audio_PlaySoundGeneral(NA_SE_SY_START_SHOT, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_START_SHOT, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } for (i = 0; i < 3; i++) { this->ingoCheck[i] = 0; @@ -336,8 +336,8 @@ s32 EnHorseGameCheck_UpdateMalonRace(EnHorseGameCheckBase* base, PlayState* play horse->inRace = 1; } else if ((this->startTimer > 81) && !(this->raceFlags & MALONRACE_START_SFX)) { this->raceFlags |= MALONRACE_START_SFX; - Audio_PlaySoundGeneral(NA_SE_SY_START_SHOT, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_START_SHOT, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } this->startTimer++; @@ -379,8 +379,8 @@ s32 EnHorseGameCheck_UpdateMalonRace(EnHorseGameCheckBase* base, PlayState* play } else if (this->fenceCheck[15] == 1) { this->lapCount = 2; Audio_QueueSeqCmd(SEQ_PLAYER_BGM_MAIN << 24 | NA_BGM_HORSE_GOAL); - Audio_PlaySoundGeneral(NA_SE_SY_START_SHOT, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_START_SHOT, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); this->result = MALONRACE_SUCCESS; this->finishTimer = 70; gSaveContext.timer1State = 0xF; diff --git a/src/overlays/actors/ovl_En_Horse_Ganon/z_en_horse_ganon.c b/src/overlays/actors/ovl_En_Horse_Ganon/z_en_horse_ganon.c index 210a38a320..e502860872 100644 --- a/src/overlays/actors/ovl_En_Horse_Ganon/z_en_horse_ganon.c +++ b/src/overlays/actors/ovl_En_Horse_Ganon/z_en_horse_ganon.c @@ -154,8 +154,8 @@ void func_80A686A8(EnHorseGanon* this, PlayState* play) { void func_80A68870(EnHorseGanon* this) { if ((this->skin.skelAnime.curFrame > D_80A692B8[this->soundCount]) && (this->soundCount != 0 || !(this->skin.skelAnime.curFrame > D_80A692B8[1]))) { - Audio_PlaySoundGeneral(NA_SE_EV_HORSE_WALK, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EV_HORSE_WALK, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); this->soundCount++; if (this->soundCount >= 2) { @@ -235,12 +235,12 @@ void func_80A68B20(EnHorseGanon* this) { sp30 = this->actor.speedXZ / 3.0f; } else if (this->currentAnimation == 3) { sp30 = this->actor.speedXZ / 5.0f; - Audio_PlaySoundGeneral(NA_SE_EV_HORSE_RUN, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EV_HORSE_RUN, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } else if (this->currentAnimation == 4) { sp30 = this->actor.speedXZ / 7.0f; - Audio_PlaySoundGeneral(NA_SE_EV_HORSE_RUN, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EV_HORSE_RUN, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } else { sp30 = 1.0f; } diff --git a/src/overlays/actors/ovl_En_Horse_Link_Child/z_en_horse_link_child.c b/src/overlays/actors/ovl_En_Horse_Link_Child/z_en_horse_link_child.c index 1134276472..37163b39e7 100644 --- a/src/overlays/actors/ovl_En_Horse_Link_Child/z_en_horse_link_child.c +++ b/src/overlays/actors/ovl_En_Horse_Link_Child/z_en_horse_link_child.c @@ -89,8 +89,8 @@ void func_80A693D0(EnHorseLinkChild* this) { if ((this->skin.skelAnime.curFrame > D_80A6AF5C[this->unk_1F0]) && !((this->unk_1F0 == 0) && (this->skin.skelAnime.curFrame > D_80A6AF5C[1]))) { - Audio_PlaySoundGeneral(NA_SE_EV_KID_HORSE_WALK, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EV_KID_HORSE_WALK, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); this->unk_1F0++; if (this->unk_1F0 >= ARRAY_COUNT(D_80A6AF5C)) { this->unk_1F0 = 0; @@ -103,15 +103,15 @@ void func_80A6948C(EnHorseLinkChild* this) { func_80A693D0(this); } else if (this->skin.skelAnime.curFrame == 0.0f) { if ((this->animationIdx == 3) || (this->animationIdx == 4)) { - Audio_PlaySoundGeneral(NA_SE_EV_KID_HORSE_RUN, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EV_KID_HORSE_RUN, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } else if (this->animationIdx == 1) { if (Rand_ZeroOne() > 0.5f) { - Audio_PlaySoundGeneral(NA_SE_EV_KID_HORSE_GROAN, &this->actor.projectedPos, 4, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EV_KID_HORSE_GROAN, &this->actor.projectedPos, 4, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } else { - Audio_PlaySoundGeneral(NA_SE_EV_KID_HORSE_NEIGH, &this->actor.projectedPos, 4, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EV_KID_HORSE_NEIGH, &this->actor.projectedPos, 4, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } } } @@ -352,8 +352,8 @@ void func_80A6A068(EnHorseLinkChild* this, PlayState* play) { distFromLink = Actor_WorldDistXZToActor(&this->actor, &player->actor); if (gSaveContext.entranceIndex == ENTR_SPOT20_1) { - Audio_PlaySoundGeneral(NA_SE_EV_KID_HORSE_NEIGH, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EV_KID_HORSE_NEIGH, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); func_80A6A724(this); return; } @@ -444,8 +444,8 @@ void func_80A6A5A4(EnHorseLinkChild* this, PlayState* play) { if (DREG(53) != 0) { DREG(53) = 0; - Audio_PlaySoundGeneral(NA_SE_EV_KID_HORSE_NEIGH, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EV_KID_HORSE_NEIGH, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); func_80A6A724(this); } else { this->actor.speedXZ = 0.0f; diff --git a/src/overlays/actors/ovl_En_Horse_Normal/z_en_horse_normal.c b/src/overlays/actors/ovl_En_Horse_Normal/z_en_horse_normal.c index aa3c7e3bab..1cd06ab78a 100644 --- a/src/overlays/actors/ovl_En_Horse_Normal/z_en_horse_normal.c +++ b/src/overlays/actors/ovl_En_Horse_Normal/z_en_horse_normal.c @@ -150,8 +150,8 @@ void func_80A6B250(EnHorseNormal* this) { if (D_80A6D4C0[this->unk_200] < this->skin.skelAnime.curFrame && ((this->unk_200 != 0) || !(D_80A6D4C0[1] < this->skin.skelAnime.curFrame))) { - Audio_PlaySoundGeneral(NA_SE_EV_HORSE_WALK, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EV_HORSE_WALK, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); this->unk_200++; if (this->unk_200 >= ARRAY_COUNT(D_80A6D4C0)) { this->unk_200 = 0; @@ -343,11 +343,11 @@ void func_80A6BC48(EnHorseNormal* this) { void func_80A6BCEC(EnHorseNormal* this) { if (this->animationIdx == 5) { - Audio_PlaySoundGeneral(NA_SE_EV_HORSE_RUN, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EV_HORSE_RUN, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } else if (this->animationIdx == 6) { - Audio_PlaySoundGeneral(NA_SE_EV_HORSE_RUN, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EV_HORSE_RUN, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } } @@ -356,12 +356,12 @@ void func_80A6BD7C(EnHorseNormal* this) { if (this->animationIdx == 0 && frame > 28.0f && !(this->unk_1E4 & 1)) { this->unk_1E4 |= 1; - Audio_PlaySoundGeneral(NA_SE_EV_HORSE_SANDDUST, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EV_HORSE_SANDDUST, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } else if (this->animationIdx == 3 && frame > 25.0f && !(this->unk_1E4 & 2)) { this->unk_1E4 |= 2; - Audio_PlaySoundGeneral(NA_SE_EV_HORSE_LAND2, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EV_HORSE_LAND2, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } } @@ -430,11 +430,11 @@ void EnHorseNormal_Wander(EnHorseNormal* this, PlayState* play) { this->unk_1E4 &= ~1; this->unk_1E4 &= ~2; if (phi_t0 == 1) { - Audio_PlaySoundGeneral(NA_SE_EV_HORSE_GROAN, &this->unk_204, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EV_HORSE_GROAN, &this->unk_204, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } else if (phi_t0 == 3) { - Audio_PlaySoundGeneral(NA_SE_EV_HORSE_NEIGH, &this->unk_204, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EV_HORSE_NEIGH, &this->unk_204, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } else { func_80A6BCEC(this); } @@ -461,11 +461,11 @@ void EnHorseNormal_Wander(EnHorseNormal* this, PlayState* play) { this->unk_1E4 &= ~1; this->unk_1E4 &= ~2; if (phi_t0 == 1) { - Audio_PlaySoundGeneral(NA_SE_EV_HORSE_GROAN, &this->unk_204, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EV_HORSE_GROAN, &this->unk_204, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } else if (phi_t0 == 3) { - Audio_PlaySoundGeneral(NA_SE_EV_HORSE_NEIGH, &this->unk_204, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EV_HORSE_NEIGH, &this->unk_204, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } else { func_80A6BCEC(this); } @@ -500,12 +500,12 @@ void EnHorseNormal_Wait(EnHorseNormal* this, PlayState* play) { this->animationIdx = 0; } else if (rand < 0.8f) { this->animationIdx = 1; - Audio_PlaySoundGeneral(NA_SE_EV_HORSE_GROAN, &this->unk_204, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EV_HORSE_GROAN, &this->unk_204, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } else { this->animationIdx = 3; - Audio_PlaySoundGeneral(NA_SE_EV_HORSE_NEIGH, &this->unk_204, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EV_HORSE_NEIGH, &this->unk_204, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } Animation_Change(&this->skin.skelAnime, sAnimations[this->animationIdx], func_80A6B30C(this), 0.0f, @@ -536,13 +536,13 @@ void EnHorseNormal_WaitClone(EnHorseNormal* this, PlayState* play) { } else if (rand < 0.8f) { this->animationIdx = 1; this->unk_1E4 |= 0x20; - Audio_PlaySoundGeneral(NA_SE_EV_HORSE_GROAN, &this->unk_204, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EV_HORSE_GROAN, &this->unk_204, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } else { this->animationIdx = 3; this->unk_1E4 |= 0x20; - Audio_PlaySoundGeneral(NA_SE_EV_HORSE_NEIGH, &this->unk_204, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EV_HORSE_NEIGH, &this->unk_204, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } Animation_Change(&this->skin.skelAnime, sAnimations[this->animationIdx], func_80A6B30C(this), 0.0f, @@ -631,20 +631,20 @@ void func_80A6CC88(PlayState* play, EnHorseNormal* this, Vec3f* arg2) { if (this->animationIdx == 0 && curFrame > 28.0f && !(this->unk_1E4 & 8)) { this->unk_1E4 |= 8; - Audio_PlaySoundGeneral(NA_SE_EV_HORSE_SANDDUST, &this->unk_1E8, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EV_HORSE_SANDDUST, &this->unk_1E8, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } else if (this->animationIdx == 3 && curFrame > 25.0f && !(this->unk_1E4 & 0x10)) { this->unk_1E4 |= 0x10; - Audio_PlaySoundGeneral(NA_SE_EV_HORSE_LAND2, &this->unk_1E8, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EV_HORSE_LAND2, &this->unk_1E8, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } else if (this->animationIdx == 3 && this->unk_1E4 & 0x20) { this->unk_1E4 &= ~0x20; - Audio_PlaySoundGeneral(NA_SE_EV_HORSE_NEIGH, &this->unk_1F4, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EV_HORSE_NEIGH, &this->unk_1F4, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } else if (this->animationIdx == 1 && this->unk_1E4 & 0x20) { this->unk_1E4 &= ~0x20; - Audio_PlaySoundGeneral(NA_SE_EV_HORSE_GROAN, &this->unk_1F4, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EV_HORSE_GROAN, &this->unk_1F4, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } } diff --git a/src/overlays/actors/ovl_En_Horse_Zelda/z_en_horse_zelda.c b/src/overlays/actors/ovl_En_Horse_Zelda/z_en_horse_zelda.c index 15d81de394..8eaf3f3f86 100644 --- a/src/overlays/actors/ovl_En_Horse_Zelda/z_en_horse_zelda.c +++ b/src/overlays/actors/ovl_En_Horse_Zelda/z_en_horse_zelda.c @@ -199,8 +199,8 @@ void func_80A6DD14(EnHorseZelda* this) { this->action = 1; this->animationIndex = 0; sp34 = this->actor.speedXZ / 6.0f; - Audio_PlaySoundGeneral(NA_SE_EV_HORSE_RUN, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EV_HORSE_RUN, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); Animation_Change(&this->skin.skelAnime, sAnimationHeaders[this->animationIndex], splaySpeeds[this->animationIndex] * sp34 * 1.5f, 0.0f, Animation_GetLastFrame(sAnimationHeaders[this->animationIndex]), ANIMMODE_ONCE, 0.0f); diff --git a/src/overlays/actors/ovl_En_Hy/z_en_hy.c b/src/overlays/actors/ovl_En_Hy/z_en_hy.c index e1a8040507..19e0ccfdf3 100644 --- a/src/overlays/actors/ovl_En_Hy/z_en_hy.c +++ b/src/overlays/actors/ovl_En_Hy/z_en_hy.c @@ -567,9 +567,9 @@ s16 func_80A70058(PlayState* play, Actor* thisx) { case 0x709E: case 0x709F: if (!this->unk_215) { - Audio_PlaySoundGeneral(this->actor.textId == 0x709F ? NA_SE_SY_CORRECT_CHIME : NA_SE_SY_ERROR, - &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(this->actor.textId == 0x709F ? NA_SE_SY_CORRECT_CHIME : NA_SE_SY_ERROR, + &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); this->unk_215 = true; } break; diff --git a/src/overlays/actors/ovl_En_Ik/z_en_ik.c b/src/overlays/actors/ovl_En_Ik/z_en_ik.c index 9c56d5b5ac..7834a2bd8a 100644 --- a/src/overlays/actors/ovl_En_Ik/z_en_ik.c +++ b/src/overlays/actors/ovl_En_Ik/z_en_ik.c @@ -288,14 +288,14 @@ void func_80A747C0(EnIk* this, PlayState* play) { if (this->bodyCollider.base.acFlags & AC_HIT) { sp24 = this->actor.world.pos; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_IRONNACK_ARMOR_HIT); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_IRONNACK_ARMOR_HIT); sp24.y += 30.0f; func_8003424C(play, &sp24); this->skelAnime.playSpeed = 1.0f; func_800F5ACC(NA_BGM_MINI_BOSS); } if (this->skelAnime.curFrame == 5.0f) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_IRONNACK_WAKEUP); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_IRONNACK_WAKEUP); } if (SkelAnime_Update(&this->skelAnime)) { this->actor.flags |= ACTOR_FLAG_0 | ACTOR_FLAG_2; @@ -342,7 +342,7 @@ void func_80A74AAC(EnIk* this) { } else { Animation_Change(&this->skelAnime, &object_ik_Anim_006734, 1.0f, 0.0f, Animation_GetLastFrame(&object_ik_Anim_006734), ANIMMODE_LOOP, -4.0f); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_IRONNACK_DASH); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_IRONNACK_DASH); this->actor.speedXZ = 2.5f; } this->actor.world.rot.y = this->actor.shape.rot.y; @@ -403,7 +403,7 @@ void func_80A74BA4(EnIk* this, PlayState* play) { func_80A745E4(this, play); SkelAnime_Update(&this->skelAnime); if ((sp30 == (s16)this->skelAnime.curFrame) || (sp2E == (s16)this->skelAnime.curFrame)) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_IRONNACK_WALK); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_IRONNACK_WALK); } } @@ -421,12 +421,12 @@ void func_80A74EBC(EnIk* this, PlayState* play) { Vec3f sp2C; if (this->skelAnime.curFrame == 15.0f) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_IRONNACK_SWING_AXE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_IRONNACK_SWING_AXE); } else if (this->skelAnime.curFrame == 21.0f) { sp2C.x = this->actor.world.pos.x + Math_SinS(this->actor.shape.rot.y + 0x6A4) * 70.0f; sp2C.z = this->actor.world.pos.z + Math_CosS(this->actor.shape.rot.y + 0x6A4) * 70.0f; sp2C.y = this->actor.world.pos.y; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_IRONNACK_HIT_GND); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_IRONNACK_HIT_GND); Camera_AddQuake(&play->mainCamera, 2, 0x19, 5); func_800AA000(this->actor.xzDistToPlayer, 0xFF, 0x14, 0x96); CollisionCheck_SpawnShieldParticles(play, &sp2C); @@ -455,7 +455,7 @@ void func_80A7506C(EnIk* this) { this->unk_2F8 = 7; this->unk_2FF = this->unk_2FE; Animation_Change(&this->skelAnime, &object_ik_Anim_0029FC, 1.0f, 0.0f, frames, ANIMMODE_LOOP, -4.0f); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_IRONNACK_PULLOUT); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_IRONNACK_PULLOUT); EnIk_SetupAction(this, func_80A7510C); } @@ -502,7 +502,7 @@ void func_80A75260(EnIk* this, PlayState* play) { this->actor.shape.rot.y = this->actor.world.rot.y; } if (this->unk_2FE < 0) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_IRONNACK_SWING_AXE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_IRONNACK_SWING_AXE); } this->unk_2FE = 1; } else { @@ -544,7 +544,7 @@ void func_80A75530(EnIk* this, PlayState* play) { this->actor.shape.rot.y = this->actor.world.rot.y; if ((this->skelAnime.curFrame > 13.0f) && (this->skelAnime.curFrame < 18.0f)) { if (this->unk_2FE < 0) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_IRONNACK_SWING_AXE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_IRONNACK_SWING_AXE); } this->unk_2FE = 1; } else { @@ -625,8 +625,8 @@ void func_80A7598C(EnIk* this) { this->actor.speedXZ = 0.0f; Animation_Change(&this->skelAnime, &object_ik_Anim_005944, 1.0f, 0.0f, frames, ANIMMODE_ONCE, -4.0f); this->unk_2F9 = 0x18; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_IRONNACK_DEAD); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_NUTS_CUTBODY); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_IRONNACK_DEAD); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_NUTS_CUTBODY); EnIk_SetupAction(this, func_80A75A38); } @@ -654,7 +654,7 @@ void func_80A75A38(EnIk* this, PlayState* play) { } } } else if (this->skelAnime.curFrame == 23.0f) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_IRONNACK_WALK); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_IRONNACK_WALK); } } @@ -706,7 +706,7 @@ void func_80A75C38(EnIk* this, PlayState* play) { } } else if (this->actor.colChkInfo.health <= 10) { Actor_ChangeCategory(play, &play->actorCtx, &this->actor, ACTORCAT_BOSS); - SoundSource_PlaySfxAtFixedWorldPos(play, &this->actor.world.pos, 20, NA_SE_EN_LAST_DAMAGE); + SfxSource_PlaySfxAtFixedWorldPos(play, &this->actor.world.pos, 20, NA_SE_EN_LAST_DAMAGE); if (this->switchFlags != 0xFF) { Flags_SetSwitch(play, this->switchFlags); } @@ -728,16 +728,16 @@ void func_80A75C38(EnIk* this, PlayState* play) { } if ((this->actor.params != 0) && (this->unk_2FB != 0)) { if ((prevHealth > 10) && (this->actor.colChkInfo.health <= 10)) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_IRONNACK_ARMOR_OFF_DEMO); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_IRONNACK_ARMOR_OFF_DEMO); } else { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_IRONNACK_DAMAGE); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_NUTS_CUTBODY); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_IRONNACK_DAMAGE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_NUTS_CUTBODY); } func_80A75790(this); return; } - Audio_PlayActorSound2(&this->actor, NA_SE_EN_IRONNACK_ARMOR_HIT); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_IRONNACK_DAMAGE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_IRONNACK_ARMOR_HIT); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_IRONNACK_DAMAGE); CollisionCheck_SpawnShieldParticles(play, &sp38); } @@ -965,29 +965,29 @@ void EnIk_StartMusic(void) { void func_80A76C14(EnIk* this) { if (Animation_OnFrame(&this->skelAnime, 1.0f)) { - Audio_PlaySoundGeneral(NA_SE_EN_IRONNACK_WAKEUP, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EN_IRONNACK_WAKEUP, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } else if (Animation_OnFrame(&this->skelAnime, 33.0f)) { - Audio_PlaySoundGeneral(NA_SE_EN_IRONNACK_WALK, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EN_IRONNACK_WALK, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } else if (Animation_OnFrame(&this->skelAnime, 68.0f) || Animation_OnFrame(&this->skelAnime, 80.0f)) { - Audio_PlaySoundGeneral(NA_SE_EN_IRONNACK_ARMOR_DEMO, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EN_IRONNACK_ARMOR_DEMO, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } else if (Animation_OnFrame(&this->skelAnime, 107.0f)) { - Audio_PlaySoundGeneral(NA_SE_EN_IRONNACK_FINGER_DEMO, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EN_IRONNACK_FINGER_DEMO, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } else if (Animation_OnFrame(&this->skelAnime, 156.0f)) { - Audio_PlaySoundGeneral(NA_SE_EN_IRONNACK_ARMOR_DEMO, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EN_IRONNACK_ARMOR_DEMO, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } else if (Animation_OnFrame(&this->skelAnime, 188.0f)) { - Audio_PlaySoundGeneral(NA_SE_EN_IRONNACK_WAVE_DEMO, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EN_IRONNACK_WAVE_DEMO, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } } void func_80A76DDC(EnIk* this, PlayState* play, Vec3f* pos) { - Audio_PlaySoundGeneral(NA_SE_EN_TWINROBA_TRANSFORM, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EN_TWINROBA_TRANSFORM, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } void func_80A76E2C(EnIk* this, PlayState* play, Vec3f* pos) { @@ -1094,8 +1094,8 @@ void func_80A77264(EnIk* this, PlayState* play, s32 arg2) { } void func_80A772A4(EnIk* this) { - Audio_PlaySoundGeneral(NA_SE_EN_IRONNACK_STAGGER_DEMO, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EN_IRONNACK_STAGGER_DEMO, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } void func_80A772EC(EnIk* this, PlayState* play) { @@ -1104,8 +1104,8 @@ void func_80A772EC(EnIk* this, PlayState* play) { f32 wDest; SkinMatrix_Vec3fMtxFMultXYZW(&play->viewProjectionMtxF, &this->actor.world.pos, &D_80A78FA0, &wDest); - Audio_PlaySoundGeneral(NA_SE_EN_IRONNACK_DEAD, &D_80A78FA0, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EN_IRONNACK_DEAD, &D_80A78FA0, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } void func_80A7735C(EnIk* this, PlayState* play) { diff --git a/src/overlays/actors/ovl_En_In/z_en_in.c b/src/overlays/actors/ovl_En_In/z_en_in.c index c804c3bd3c..87a2ac0981 100644 --- a/src/overlays/actors/ovl_En_In/z_en_in.c +++ b/src/overlays/actors/ovl_En_In/z_en_in.c @@ -610,22 +610,22 @@ void func_80A79FB0(EnIn* this, PlayState* play) { void func_80A7A304(EnIn* this, PlayState* play) { if (this->skelAnime.animation == &object_in_Anim_015814 || this->skelAnime.animation == &object_in_Anim_01646C) { if (this->skelAnime.curFrame == 8.0f) { - Audio_PlaySoundRandom(&this->actor.projectedPos, NA_SE_VO_IN_LASH_0, - NA_SE_VO_IN_LASH_1 - NA_SE_VO_IN_LASH_0 + 1); + Audio_PlaySfxRandom(&this->actor.projectedPos, NA_SE_VO_IN_LASH_0, + NA_SE_VO_IN_LASH_1 - NA_SE_VO_IN_LASH_0 + 1); } } if (this->skelAnime.animation == &object_in_Anim_018C38 && this->skelAnime.curFrame == 20.0f) { - Audio_PlayActorSound2(&this->actor, NA_SE_VO_IN_CRY_0); + Audio_PlayActorSfx2(&this->actor, NA_SE_VO_IN_CRY_0); } if (SkelAnime_Update(&this->skelAnime) != 0) { this->animationIdx %= 8; this->unk_1E8 = this->animationIdx; if (this->animationIdx == 3 || this->animationIdx == 4) { - Audio_PlaySoundGeneral(NA_SE_IT_LASH, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_IT_LASH, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); if (Rand_ZeroOne() < 0.3f) { - Audio_PlaySoundGeneral(NA_SE_IT_INGO_HORSE_NEIGH, &this->actor.projectedPos, 4, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_IT_INGO_HORSE_NEIGH, &this->actor.projectedPos, 4, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } } Animation_Change(&this->skelAnime, D_80A7B918[this->animationIdx], 1.0f, 0.0f, @@ -658,8 +658,8 @@ void func_80A7A568(EnIn* this, PlayState* play) { SET_INFTABLE(INFTABLE_AB); } if (gSaveContext.timer1State == 10) { - Audio_PlaySoundGeneral(NA_SE_SY_FOUND, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_FOUND, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); func_80A79C78(this, play); this->actionFunc = func_80A7B024; gSaveContext.timer1State = 0; @@ -676,8 +676,8 @@ void func_80A7A568(EnIn* this, PlayState* play) { phi_a2 = 2; transitionType = TRANS_TYPE_FADE_BLACK; } else { - Audio_PlaySoundGeneral(NA_SE_SY_FOUND, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_FOUND, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); if (!GET_EVENTCHKINF(EVENTCHKINF_1B)) { if (GET_INFTABLE(INFTABLE_AB)) { SET_EVENTCHKINF(EVENTCHKINF_1B); @@ -741,7 +741,7 @@ void func_80A7A940(EnIn* this, PlayState* play) { if (this->unk_1EC != 0) { this->unk_1EC--; if (this->unk_1EC == 0) { - Audio_PlayActorSound2(&this->actor, NA_SE_VO_IN_LOST); + Audio_PlayActorSfx2(&this->actor, NA_SE_VO_IN_LOST); } } if (this->unk_308.unk_00 == 2) { @@ -809,7 +809,7 @@ void func_80A7ABD4(EnIn* this, PlayState* play) { if (this->unk_1EC != 0) { this->unk_1EC--; if (this->unk_1EC == 0) { - Audio_PlayActorSound2(&this->actor, NA_SE_VO_IN_LOST); + Audio_PlayActorSfx2(&this->actor, NA_SE_VO_IN_LOST); } } } @@ -831,7 +831,7 @@ void func_80A7ABD4(EnIn* this, PlayState* play) { return; } if (play->csCtx.frames == 44) { - Audio_PlayActorSound2(&this->actor, NA_SE_EV_RONRON_DOOR_CLOSE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_RONRON_DOOR_CLOSE); } Math_SmoothStepToF(&this->subCamAtOffset.x, 0.0f, 0.06f, 10000.0f, 0.0f); Math_SmoothStepToF(&this->subCamAtOffset.y, 50.0f, 0.06f, 10000.0f, 0.0f); diff --git a/src/overlays/actors/ovl_En_Insect/z_en_insect.c b/src/overlays/actors/ovl_En_Insect/z_en_insect.c index fbe94395a1..79ffe92576 100644 --- a/src/overlays/actors/ovl_En_Insect/z_en_insect.c +++ b/src/overlays/actors/ovl_En_Insect/z_en_insect.c @@ -161,7 +161,7 @@ s32 EnInsect_TryFindNearbySoil(EnInsect* this, PlayState* play) { } /** - * Update the crawl sound timer, and play the crawling sound when it reaches 0. + * Update the crawl sound timer, and play the crawling sound effect when it reaches 0. */ void EnInsect_UpdateCrawlSfx(EnInsect* this) { if (this->crawlSoundDelay > 0) { @@ -169,7 +169,7 @@ void EnInsect_UpdateCrawlSfx(EnInsect* this) { return; } - Audio_PlayActorSound2(&this->actor, NA_SE_EN_MUSI_WALK); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_MUSI_WALK); this->crawlSoundDelay = 3.0f / CLAMP_MIN(this->skelAnime.playSpeed, 0.1f); if (this->crawlSoundDelay < 2) { @@ -413,7 +413,7 @@ void EnInsect_SetupDig(EnInsect* this) { this->actionTimer = 60; EnInsect_SetCrawlAnim(this); this->skelAnime.playSpeed = 1.9f; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_MUSI_SINK); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_MUSI_SINK); Math_Vec3f_Copy(&this->actor.home.pos, &this->actor.world.pos); this->actionFunc = EnInsect_Dig; this->insectFlags &= ~INSECT_FLAG_CRAWLING; @@ -664,7 +664,7 @@ void EnInsect_Dropped(EnInsect* this, PlayState* play) { SkelAnime_Update(&this->skelAnime); if (!(this->insectFlags & INSECT_FLAG_DROPPED_HAS_LANDED) && (this->insectFlags & INSECT_FLAG_0) && (this->actor.bgCheckFlags & BGCHECKFLAG_GROUND)) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_MUSI_LAND); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_MUSI_LAND); this->insectFlags |= INSECT_FLAG_DROPPED_HAS_LANDED; } diff --git a/src/overlays/actors/ovl_En_Ishi/z_en_ishi.c b/src/overlays/actors/ovl_En_Ishi/z_en_ishi.c index 54551d4098..7ab7ca164d 100644 --- a/src/overlays/actors/ovl_En_Ishi/z_en_ishi.c +++ b/src/overlays/actors/ovl_En_Ishi/z_en_ishi.c @@ -51,9 +51,9 @@ static f32 D_80A7FA28[] = { 0.0f, 0.005f }; // the sizes of these arrays are very large and take up way more space than it needs to. // coincidentally the sizes are the same as the ID for NA_SE_EV_ROCK_BROKEN, which may explain a mistake that could // have been made here -static u16 sBreakSounds[0x2852] = { NA_SE_EV_ROCK_BROKEN, NA_SE_EV_WALL_BROKEN }; +static u16 sBreakSfxIds[0x2852] = { NA_SE_EV_ROCK_BROKEN, NA_SE_EV_WALL_BROKEN }; -static u8 sBreakSoundDurations[0x2852] = { 20, 40 }; +static u8 sBreakSfxDurations[0x2852] = { 20, 40 }; static EnIshiEffectSpawnFunc sFragmentSpawnFuncs[] = { EnIshi_SpawnFragmentsSmall, EnIshi_SpawnFragmentsLarge }; @@ -345,21 +345,20 @@ void EnIshi_SetupWait(EnIshi* this) { } void EnIshi_Wait(EnIshi* this, PlayState* play) { - static u16 liftSounds[] = { NA_SE_PL_PULL_UP_ROCK, NA_SE_PL_PULL_UP_BIGROCK }; + static u16 liftSfxIds[] = { NA_SE_PL_PULL_UP_ROCK, NA_SE_PL_PULL_UP_BIGROCK }; s32 pad; s16 type = this->actor.params & 1; if (Actor_HasParent(&this->actor, play)) { EnIshi_SetupLiftedUp(this); - SoundSource_PlaySfxAtFixedWorldPos(play, &this->actor.world.pos, 20, liftSounds[type]); + SfxSource_PlaySfxAtFixedWorldPos(play, &this->actor.world.pos, 20, liftSfxIds[type]); if ((this->actor.params >> 4) & 1) { EnIshi_SpawnBugs(this, play); } } else if ((this->collider.base.acFlags & AC_HIT) && (type == ROCK_SMALL) && this->collider.info.acHitInfo->toucher.dmgFlags & (DMG_HAMMER | DMG_EXPLOSIVE)) { EnIshi_DropCollectible(this, play); - SoundSource_PlaySfxAtFixedWorldPos(play, &this->actor.world.pos, sBreakSoundDurations[type], - sBreakSounds[type]); + SfxSource_PlaySfxAtFixedWorldPos(play, &this->actor.world.pos, sBreakSfxDurations[type], sBreakSfxIds[type]); sFragmentSpawnFuncs[type](this, play); sDustSpawnFuncs[type](this, play); Actor_Kill(&this->actor); @@ -428,8 +427,8 @@ void EnIshi_Fly(EnIshi* this, PlayState* play) { EnIshi_DropCollectible(this, play); sFragmentSpawnFuncs[type](this, play); if (!(this->actor.bgCheckFlags & BGCHECKFLAG_WATER)) { - SoundSource_PlaySfxAtFixedWorldPos(play, &this->actor.world.pos, sBreakSoundDurations[type], - sBreakSounds[type]); + SfxSource_PlaySfxAtFixedWorldPos(play, &this->actor.world.pos, sBreakSfxDurations[type], + sBreakSfxIds[type]); sDustSpawnFuncs[type](this, play); } if (type == ROCK_LARGE) { @@ -459,7 +458,7 @@ void EnIshi_Fly(EnIshi* this, PlayState* play) { this->actor.minVelocityY = -6.0f; sRotSpeedX >>= 2; sRotSpeedY >>= 2; - SoundSource_PlaySfxAtFixedWorldPos(play, &this->actor.world.pos, 40, NA_SE_EV_DIVE_INTO_WATER_L); + SfxSource_PlaySfxAtFixedWorldPos(play, &this->actor.world.pos, 40, NA_SE_EV_DIVE_INTO_WATER_L); this->actor.bgCheckFlags &= ~BGCHECKFLAG_WATER_TOUCH; } Math_StepToF(&this->actor.shape.yOffset, 0.0f, 2.0f); diff --git a/src/overlays/actors/ovl_En_Jj/z_en_jj.c b/src/overlays/actors/ovl_En_Jj/z_en_jj.c index 2773a6dc02..3c956978d7 100644 --- a/src/overlays/actors/ovl_En_Jj/z_en_jj.c +++ b/src/overlays/actors/ovl_En_Jj/z_en_jj.c @@ -258,7 +258,7 @@ void EnJj_CutsceneUpdate(EnJj* this, PlayState* play) { } if (this->unk_30A & 1) { - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EV_JABJAB_BREATHE - SFX_FLAG); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EV_JABJAB_BREATHE - SFX_FLAG); if (this->mouthOpenAngle >= -5200) { this->mouthOpenAngle -= 102; @@ -292,7 +292,7 @@ void EnJj_Update(Actor* thisx, PlayState* play) { this->actionFunc(this, play); if (this->skelAnime.curFrame == 41.0f) { - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EV_JABJAB_GROAN); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EV_JABJAB_GROAN); } } diff --git a/src/overlays/actors/ovl_En_Kakasi/z_en_kakasi.c b/src/overlays/actors/ovl_En_Kakasi/z_en_kakasi.c index d17e8ad0b9..8788bb3033 100644 --- a/src/overlays/actors/ovl_En_Kakasi/z_en_kakasi.c +++ b/src/overlays/actors/ovl_En_Kakasi/z_en_kakasi.c @@ -109,7 +109,7 @@ void func_80A8F320(EnKakasi* this, PlayState* play, s16 arg) { this->unk_19A++; if (this->unk_1A4 == 0) { this->unk_1A4 = 1; - Audio_PlayActorSound2(&this->actor, NA_SE_EV_KAKASHI_ROLL); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_KAKASHI_ROLL); } break; case OCARINA_BTN_C_DOWN: @@ -142,7 +142,7 @@ void func_80A8F320(EnKakasi* this, PlayState* play, s16 arg) { this->actor.gravity = -1.0f; if (this->unk_19A == 8 && (this->actor.bgCheckFlags & BGCHECKFLAG_GROUND)) { this->actor.velocity.y = 3.0f; - Audio_PlayActorSound2(&this->actor, NA_SE_IT_KAKASHI_JUMP); + Audio_PlayActorSfx2(&this->actor, NA_SE_IT_KAKASHI_JUMP); } Math_ApproachF(&this->skelanime.playSpeed, this->unk_1B8, 0.1f, 0.2f); Math_SmoothStepToS(&this->actor.shape.rot.x, this->unk_1A8, 5, 0x3E8, 0); @@ -163,7 +163,7 @@ void func_80A8F320(EnKakasi* this, PlayState* play, s16 arg) { } currentFrame = this->skelanime.curFrame; if (currentFrame == 11 || currentFrame == 17) { - Audio_PlayActorSound2(&this->actor, NA_SE_EV_KAKASHI_SWING); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_KAKASHI_SWING); } SkelAnime_Update(&this->skelanime); } diff --git a/src/overlays/actors/ovl_En_Kakasi2/z_en_kakasi2.c b/src/overlays/actors/ovl_En_Kakasi2/z_en_kakasi2.c index 8430270c89..60230bf82f 100644 --- a/src/overlays/actors/ovl_En_Kakasi2/z_en_kakasi2.c +++ b/src/overlays/actors/ovl_En_Kakasi2/z_en_kakasi2.c @@ -161,7 +161,7 @@ void func_80A904D8(EnKakasi2* this, PlayState* play) { f32 frameCount = Animation_GetLastFrame(&object_ka_Anim_000214); Animation_Change(&this->skelAnime, &object_ka_Anim_000214, 1.0f, 0.0f, (s16)frameCount, ANIMMODE_LOOP, -10.0f); - Audio_PlayActorSound2(&this->actor, NA_SE_EV_COME_UP_DEKU_JR); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_COME_UP_DEKU_JR); this->actionFunc = func_80A90578; } @@ -172,7 +172,7 @@ void func_80A90578(EnKakasi2* this, PlayState* play) { currentFrame = this->skelAnime.curFrame; if (currentFrame == 11 || currentFrame == 17) { - Audio_PlayActorSound2(&this->actor, NA_SE_EV_KAKASHI_SWING); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_KAKASHI_SWING); } this->actor.shape.rot.y += 0x800; diff --git a/src/overlays/actors/ovl_En_Kakasi3/z_en_kakasi3.c b/src/overlays/actors/ovl_En_Kakasi3/z_en_kakasi3.c index e9ad97ef0e..93ca2416d7 100644 --- a/src/overlays/actors/ovl_En_Kakasi3/z_en_kakasi3.c +++ b/src/overlays/actors/ovl_En_Kakasi3/z_en_kakasi3.c @@ -112,7 +112,7 @@ void func_80A90EBC(EnKakasi3* this, PlayState* play, s32 arg) { this->unk_19A++; if (this->unk_1A4 == 0) { this->unk_1A4 = 1; - Audio_PlayActorSound2(&this->actor, NA_SE_EV_KAKASHI_ROLL); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_KAKASHI_ROLL); } break; case OCARINA_BTN_C_DOWN: @@ -145,7 +145,7 @@ void func_80A90EBC(EnKakasi3* this, PlayState* play, s32 arg) { this->actor.gravity = -1.0f; if (this->unk_19A == 8 && (this->actor.bgCheckFlags & BGCHECKFLAG_GROUND)) { this->actor.velocity.y = 3.0f; - Audio_PlayActorSound2(&this->actor, NA_SE_IT_KAKASHI_JUMP); + Audio_PlayActorSfx2(&this->actor, NA_SE_IT_KAKASHI_JUMP); } Math_ApproachF(&this->skelAnime.playSpeed, this->unk_1B8, 0.1f, 0.2f); Math_SmoothStepToS(&this->actor.shape.rot.x, this->unk_1AA, 0x5, 0x3E8, 0); @@ -166,7 +166,7 @@ void func_80A90EBC(EnKakasi3* this, PlayState* play, s32 arg) { } currentFrame = this->skelAnime.curFrame; if (currentFrame == 11 || currentFrame == 17) { - Audio_PlayActorSound2(&this->actor, NA_SE_EV_KAKASHI_SWING); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_KAKASHI_SWING); } SkelAnime_Update(&this->skelAnime); } diff --git a/src/overlays/actors/ovl_En_Kanban/z_en_kanban.c b/src/overlays/actors/ovl_En_Kanban/z_en_kanban.c index 8d65285117..0376bed38c 100644 --- a/src/overlays/actors/ovl_En_Kanban/z_en_kanban.c +++ b/src/overlays/actors/ovl_En_Kanban/z_en_kanban.c @@ -403,7 +403,7 @@ void EnKanban_Update(Actor* thisx, PlayState* play2) { piece->actor.flags &= ~ACTOR_FLAG_0; piece->actor.flags |= ACTOR_FLAG_25; this->cutMarkTimer = 5; - Audio_PlayActorSound2(&this->actor, NA_SE_IT_SWORD_STRIKE); + Audio_PlayActorSfx2(&this->actor, NA_SE_IT_SWORD_STRIKE); } } this->actor.focus.pos = this->actor.world.pos; @@ -499,11 +499,11 @@ void EnKanban_Update(Actor* thisx, PlayState* play2) { } if (this->actor.bgCheckFlags & BGCHECKFLAG_WALL) { this->actor.speedXZ *= -0.5f; - Audio_PlayActorSound2(&this->actor, NA_SE_EV_WOODPLATE_BOUND); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_WOODPLATE_BOUND); } if (this->actor.bgCheckFlags & BGCHECKFLAG_WATER_TOUCH) { this->actionState = ENKANBAN_WATER; - Audio_PlayActorSound2(&this->actor, NA_SE_EV_BOMB_DROP_WATER); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_BOMB_DROP_WATER); this->bounceX = this->bounceZ = 0; this->actor.world.pos.y += this->actor.yDistToWater; EffectSsGSplash_Spawn(play, &this->actor.world.pos, NULL, NULL, 0, (this->partCount * 20) + 300); @@ -568,7 +568,7 @@ void EnKanban_Update(Actor* thisx, PlayState* play2) { Vec3f accel; Vec3f pos; - Audio_PlayActorSound2(&this->actor, NA_SE_EV_WOODPLATE_BOUND); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_WOODPLATE_BOUND); accel.x = 0.0f; accel.y = 0.1f; accel.z = 0.0f; @@ -732,8 +732,8 @@ void EnKanban_Update(Actor* thisx, PlayState* play2) { (play->msgCtx.unk_E3F2 == OCARINA_SONG_LULLABY)) { this->actionState = ENKANBAN_REPAIR; this->bounceX = 1; - Audio_PlaySoundGeneral(NA_SE_SY_TRE_BOX_APPEAR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_TRE_BOX_APPEAR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } break; } diff --git a/src/overlays/actors/ovl_En_Karebaba/z_en_karebaba.c b/src/overlays/actors/ovl_En_Karebaba/z_en_karebaba.c index 36e287ea8e..96d3f0f575 100644 --- a/src/overlays/actors/ovl_En_Karebaba/z_en_karebaba.c +++ b/src/overlays/actors/ovl_En_Karebaba/z_en_karebaba.c @@ -146,7 +146,7 @@ void EnKarebaba_SetupIdle(EnKarebaba* this) { void EnKarebaba_SetupAwaken(EnKarebaba* this) { Animation_Change(&this->skelAnime, &gDekuBabaFastChompAnim, 4.0f, 0.0f, Animation_GetLastFrame(&gDekuBabaFastChompAnim), ANIMMODE_LOOP, -3.0f); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_DUMMY482); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_DUMMY482); this->actionFunc = EnKarebaba_Awaken; } @@ -177,7 +177,7 @@ void EnKarebaba_SetupDying(EnKarebaba* this) { this->actor.velocity.y = 4.0f; this->actor.world.rot.y = this->actor.shape.rot.y + 0x8000; this->actor.speedXZ = 3.0f; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_DEKU_JR_DEAD); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_DEKU_JR_DEAD); this->actor.flags |= ACTOR_FLAG_4 | ACTOR_FLAG_5; this->actionFunc = EnKarebaba_Dying; } @@ -260,7 +260,7 @@ void EnKarebaba_Upright(EnKarebaba* this, PlayState* play) { } if (Animation_OnFrame(&this->skelAnime, 0.0f) || Animation_OnFrame(&this->skelAnime, 12.0f)) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_DEKU_JR_MOUTH); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_DEKU_JR_MOUTH); } if (this->bodyCollider.base.acFlags & AC_HIT) { @@ -286,7 +286,7 @@ void EnKarebaba_Spin(EnKarebaba* this, PlayState* play) { if (Animation_OnFrame(&this->skelAnime, 0.0f) || Animation_OnFrame(&this->skelAnime, 12.0f)) { if (1) {} // Here for matching purposes only. - Audio_PlayActorSound2(&this->actor, NA_SE_EN_DEKU_JR_MOUTH); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_DEKU_JR_MOUTH); } value = 20 - this->actor.params; @@ -335,7 +335,7 @@ void EnKarebaba_Dying(EnKarebaba* this, PlayState* play) { } if (this->actor.bgCheckFlags & BGCHECKFLAG_GROUND_TOUCH) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_DODO_M_GND); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_DODO_M_GND); this->actor.params = 1; } } else if (this->actor.params == 1) { diff --git a/src/overlays/actors/ovl_En_Ko/z_en_ko.c b/src/overlays/actors/ovl_En_Ko/z_en_ko.c index 0726fad1b2..296b42863e 100644 --- a/src/overlays/actors/ovl_En_Ko/z_en_ko.c +++ b/src/overlays/actors/ovl_En_Ko/z_en_ko.c @@ -538,8 +538,8 @@ s16 func_80A97738(PlayState* play, Actor* thisx) { case 0x10B7: case 0x10B8: if (this->unk_210 == 0) { - Audio_PlaySoundGeneral(NA_SE_SY_TRE_BOX_APPEAR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_TRE_BOX_APPEAR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); this->unk_210 = 1; } } diff --git a/src/overlays/actors/ovl_En_Kusa/z_en_kusa.c b/src/overlays/actors/ovl_En_Kusa/z_en_kusa.c index 91c83982a3..e2f691e0af 100644 --- a/src/overlays/actors/ovl_En_Kusa/z_en_kusa.c +++ b/src/overlays/actors/ovl_En_Kusa/z_en_kusa.c @@ -300,12 +300,12 @@ void EnKusa_Main(EnKusa* this, PlayState* play) { if (Actor_HasParent(&this->actor, play)) { EnKusa_SetupLiftedUp(this); - SoundSource_PlaySfxAtFixedWorldPos(play, &this->actor.world.pos, 20, NA_SE_PL_PULL_UP_PLANT); + SfxSource_PlaySfxAtFixedWorldPos(play, &this->actor.world.pos, 20, NA_SE_PL_PULL_UP_PLANT); } else if (this->collider.base.acFlags & AC_HIT) { this->collider.base.acFlags &= ~AC_HIT; EnKusa_SpawnFragments(this, play); EnKusa_DropCollectible(this, play); - SoundSource_PlaySfxAtFixedWorldPos(play, &this->actor.world.pos, 20, NA_SE_EV_PLANT_BROKEN); + SfxSource_PlaySfxAtFixedWorldPos(play, &this->actor.world.pos, 20, NA_SE_EV_PLANT_BROKEN); if ((this->actor.params >> 4) & 1) { EnKusa_SpawnBugs(this, play); @@ -375,7 +375,7 @@ void EnKusa_Fall(EnKusa* this, PlayState* play) { if (this->actor.bgCheckFlags & (BGCHECKFLAG_GROUND | BGCHECKFLAG_GROUND_TOUCH | BGCHECKFLAG_WALL)) { if (!(this->actor.bgCheckFlags & BGCHECKFLAG_WATER)) { - SoundSource_PlaySfxAtFixedWorldPos(play, &this->actor.world.pos, 20, NA_SE_EV_PLANT_BROKEN); + SfxSource_PlaySfxAtFixedWorldPos(play, &this->actor.world.pos, 20, NA_SE_EV_PLANT_BROKEN); } EnKusa_SpawnFragments(this, play); EnKusa_DropCollectible(this, play); @@ -406,7 +406,7 @@ void EnKusa_Fall(EnKusa* this, PlayState* play) { rotSpeedY >>= 1; rotSpeedYtarget >>= 1; this->actor.bgCheckFlags &= ~BGCHECKFLAG_WATER_TOUCH; - SoundSource_PlaySfxAtFixedWorldPos(play, &this->actor.world.pos, 40, NA_SE_EV_DIVE_INTO_WATER_L); + SfxSource_PlaySfxAtFixedWorldPos(play, &this->actor.world.pos, 40, NA_SE_EV_DIVE_INTO_WATER_L); } EnKusa_UpdateVelY(this); diff --git a/src/overlays/actors/ovl_En_Kz/z_en_kz.c b/src/overlays/actors/ovl_En_Kz/z_en_kz.c index 2d9afe326e..c21534016f 100644 --- a/src/overlays/actors/ovl_En_Kz/z_en_kz.c +++ b/src/overlays/actors/ovl_En_Kz/z_en_kz.c @@ -138,13 +138,13 @@ s16 func_80A9C6C0(PlayState* play, Actor* thisx) { case TEXT_STATE_DONE_FADING: if (this->actor.textId != 0x4014) { if (this->actor.textId == 0x401B && !this->sfxPlayed) { - Audio_PlaySoundGeneral(NA_SE_SY_CORRECT_CHIME, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_CORRECT_CHIME, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); this->sfxPlayed = true; } } else if (!this->sfxPlayed) { - Audio_PlaySoundGeneral(NA_SE_SY_TRE_BOX_APPEAR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_TRE_BOX_APPEAR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); this->sfxPlayed = true; } break; @@ -401,7 +401,7 @@ void EnKz_Mweep(EnKz* this, PlayState* play) { this->actionFunc = EnKz_StopMweep; } if (this->skelanime.curFrame == 13.0f) { - Audio_PlayActorSound2(&this->actor, NA_SE_VO_KZ_MOVE); + Audio_PlayActorSfx2(&this->actor, NA_SE_VO_KZ_MOVE); } } diff --git a/src/overlays/actors/ovl_En_Light/z_en_light.c b/src/overlays/actors/ovl_En_Light/z_en_light.c index bf85d4619e..db54898f82 100644 --- a/src/overlays/actors/ovl_En_Light/z_en_light.c +++ b/src/overlays/actors/ovl_En_Light/z_en_light.c @@ -101,7 +101,7 @@ void EnLight_Update(Actor* thisx, PlayState* play) { EnLight_UpdatePosRot(this, play); if (this->actor.params >= 0) { - Audio_PlayActorSound2(&this->actor, NA_SE_EV_TORCH - SFX_FLAG); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_TORCH - SFX_FLAG); } } @@ -144,7 +144,7 @@ void EnLight_UpdateSwitch(Actor* thisx, PlayState* play) { EnLight_UpdatePosRot(this, play); if (this->actor.params >= 0) { - Audio_PlayActorSound2(&this->actor, NA_SE_EV_TORCH - SFX_FLAG); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_TORCH - SFX_FLAG); } } diff --git a/src/overlays/actors/ovl_En_Lightbox/z_en_lightbox.c b/src/overlays/actors/ovl_En_Lightbox/z_en_lightbox.c index e3624a384e..311324c38a 100644 --- a/src/overlays/actors/ovl_En_Lightbox/z_en_lightbox.c +++ b/src/overlays/actors/ovl_En_Lightbox/z_en_lightbox.c @@ -79,8 +79,8 @@ void EnLightbox_Update(Actor* thisx, PlayState* play) { if (thisx->speedXZ) { if (thisx->bgCheckFlags & BGCHECKFLAG_WALL) { thisx->world.rot.y = (thisx->world.rot.y + thisx->wallYaw) - thisx->world.rot.y; - Audio_PlaySoundGeneral(NA_SE_EV_BOMB_BOUND, &thisx->projectedPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EV_BOMB_BOUND, &thisx->projectedPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); thisx->speedXZ *= 0.7f; thisx->bgCheckFlags &= ~BGCHECKFLAG_WALL; } @@ -91,8 +91,8 @@ void EnLightbox_Update(Actor* thisx, PlayState* play) { } else { Math_StepToF(&thisx->speedXZ, 0, IREG(58) / 100.0f); if ((thisx->bgCheckFlags & BGCHECKFLAG_GROUND_TOUCH) && (thisx->velocity.y < IREG(59) / 100.0f)) { - Audio_PlaySoundGeneral(NA_SE_EV_BOMB_BOUND, &thisx->projectedPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EV_BOMB_BOUND, &thisx->projectedPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); thisx->velocity.y *= IREG(60) / 100.0f; thisx->bgCheckFlags &= ~BGCHECKFLAG_GROUND; } else { diff --git a/src/overlays/actors/ovl_En_M_Thunder/z_en_m_thunder.c b/src/overlays/actors/ovl_En_M_Thunder/z_en_m_thunder.c index 5ea75dda85..2c7cb84ff6 100644 --- a/src/overlays/actors/ovl_En_M_Thunder/z_en_m_thunder.c +++ b/src/overlays/actors/ovl_En_M_Thunder/z_en_m_thunder.c @@ -87,10 +87,10 @@ void EnMThunder_Init(Actor* thisx, PlayState* play2) { if (!gSaveContext.isMagicAcquired || (gSaveContext.magicState != MAGIC_STATE_IDLE) || (((this->actor.params & 0xFF00) >> 8) && !(Magic_RequestChange(play, (this->actor.params & 0xFF00) >> 8, MAGIC_CONSUME_NOW)))) { - Audio_PlaySoundGeneral(NA_SE_IT_ROLLING_CUT, &player->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); - Audio_PlaySoundGeneral(NA_SE_IT_SWORD_SWING_HARD, &player->actor.projectedPos, 4, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_IT_ROLLING_CUT, &player->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_IT_SWORD_SWING_HARD, &player->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); Actor_Kill(&this->actor); return; } @@ -102,8 +102,8 @@ void EnMThunder_Init(Actor* thisx, PlayState* play2) { this->unk_1C9 = ((this->unk_1C7 == 1) ? 2 : 4); func_80A9EFE0(this, func_80A9F9B4); this->unk_1C4 = 8; - Audio_PlaySoundGeneral(NA_SE_IT_ROLLING_CUT_LV1, &player->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_IT_ROLLING_CUT_LV1, &player->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); this->unk_1AC = 1.0f; } else { func_80A9EFE0(this, func_80A9F408); @@ -132,10 +132,10 @@ void func_80A9F350(EnMThunder* this, PlayState* play) { if (player->stateFlags2 & PLAYER_STATE2_17) { if (player->meleeWeaponAnimation >= PLAYER_MWA_SPIN_ATTACK_1H) { - Audio_PlaySoundGeneral(NA_SE_IT_ROLLING_CUT, &player->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); - Audio_PlaySoundGeneral(NA_SE_IT_SWORD_SWING_HARD, &player->actor.projectedPos, 4, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_IT_ROLLING_CUT, &player->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_IT_SWORD_SWING_HARD, &player->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } Actor_Kill(&this->actor); @@ -183,10 +183,10 @@ void func_80A9F408(EnMThunder* this, PlayState* play) { if (player->unk_858 <= 0.15f) { if ((player->unk_858 >= 0.1f) && (player->meleeWeaponAnimation >= PLAYER_MWA_SPIN_ATTACK_1H)) { - Audio_PlaySoundGeneral(NA_SE_IT_ROLLING_CUT, &player->actor.projectedPos, 4, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); - Audio_PlaySoundGeneral(NA_SE_IT_SWORD_SWING_HARD, &player->actor.projectedPos, 4, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_IT_ROLLING_CUT, &player->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_IT_SWORD_SWING_HARD, &player->actor.projectedPos, 4, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } Actor_Kill(&this->actor); return; @@ -207,8 +207,8 @@ void func_80A9F408(EnMThunder* this, PlayState* play) { func_80A9EFE0(this, func_80A9F9B4); this->unk_1C4 = 8; - Audio_PlaySoundGeneral(sSfxIds[this->unk_1C6], &player->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(sSfxIds[this->unk_1C6], &player->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); this->unk_1AC = 1.0f; return; } diff --git a/src/overlays/actors/ovl_En_Ma2/z_en_ma2.c b/src/overlays/actors/ovl_En_Ma2/z_en_ma2.c index eb31c40193..0559f6ff9b 100644 --- a/src/overlays/actors/ovl_En_Ma2/z_en_ma2.c +++ b/src/overlays/actors/ovl_En_Ma2/z_en_ma2.c @@ -281,8 +281,8 @@ void func_80AA20E4(EnMa2* this, PlayState* play) { this->actionFunc = func_80AA204C; play->msgCtx.ocarinaMode = OCARINA_MODE_04; } else if (play->msgCtx.ocarinaMode == OCARINA_MODE_03) { - Audio_PlaySoundGeneral(NA_SE_SY_CORRECT_CHIME, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_CORRECT_CHIME, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); this->unk_208 = 0x1E; SET_INFTABLE(INFTABLE_8E); this->actionFunc = func_80AA21C8; diff --git a/src/overlays/actors/ovl_En_Mag/z_en_mag.c b/src/overlays/actors/ovl_En_Mag/z_en_mag.c index 9d43794d92..854cb7f2b4 100644 --- a/src/overlays/actors/ovl_En_Mag/z_en_mag.c +++ b/src/overlays/actors/ovl_En_Mag/z_en_mag.c @@ -111,8 +111,8 @@ void EnMag_Update(Actor* thisx, PlayState* play) { CHECK_BTN_ALL(play->state.input[0].press.button, BTN_A) || CHECK_BTN_ALL(play->state.input[0].press.button, BTN_B)) { - Audio_PlaySoundGeneral(NA_SE_SY_PIECE_OF_HEART, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_PIECE_OF_HEART, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); this->mainAlpha = 210; this->subAlpha = 255; @@ -142,8 +142,8 @@ void EnMag_Update(Actor* thisx, PlayState* play) { if (play->transitionTrigger != TRANS_TRIGGER_START) { Audio_SetCutsceneFlag(0); - Audio_PlaySoundGeneral(NA_SE_SY_PIECE_OF_HEART, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_PIECE_OF_HEART, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); gSaveContext.gameMode = GAMEMODE_FILE_SELECT; play->transitionTrigger = TRANS_TRIGGER_START; diff --git a/src/overlays/actors/ovl_En_Mb/z_en_mb.c b/src/overlays/actors/ovl_En_Mb/z_en_mb.c index 9c00733208..56d839f399 100644 --- a/src/overlays/actors/ovl_En_Mb/z_en_mb.c +++ b/src/overlays/actors/ovl_En_Mb/z_en_mb.c @@ -484,7 +484,7 @@ void EnMb_SetupSpearPrepareAndCharge(EnMb* this) { this->state = ENMB_STATE_ATTACK; this->actor.speedXZ = 0.0f; this->timer3 = (s16)frameCount + 6; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_MORIBLIN_SPEAR_AT); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_MORIBLIN_SPEAR_AT); if (this->actor.params == ENMB_TYPE_SPEAR_GUARD) { EnMb_SetupAction(this, EnMb_SpearGuardPrepareAndCharge); } else { @@ -494,7 +494,7 @@ void EnMb_SetupSpearPrepareAndCharge(EnMb* this) { void EnMb_SetupSpearPatrolImmediateCharge(EnMb* this) { Animation_PlayLoop(&this->skelAnime, &gEnMbSpearChargeAnim); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_MORIBLIN_ATTACK); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_MORIBLIN_ATTACK); this->attack = ENMB_ATTACK_SPEAR; this->state = ENMB_STATE_ATTACK; this->timer3 = 3; @@ -527,7 +527,7 @@ void EnMb_SetupSpearEndChargeQuick(EnMb* this) { this->state = ENMB_STATE_ATTACK_END; this->timer1 = 0; this->timer3 = 5; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_MORIBLIN_SLIDE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_MORIBLIN_SLIDE); EnMb_SetupAction(this, EnMb_SpearEndChargeQuick); } @@ -539,7 +539,7 @@ void EnMb_SetupSpearPatrolEndCharge(EnMb* this) { this->timer3 = 50; this->actor.speedXZ = -8.0f; this->actor.velocity.y = 6.0f; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_MORIBLIN_SLIDE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_MORIBLIN_SLIDE); EnMb_SetupAction(this, EnMb_SpearPatrolEndCharge); } @@ -557,7 +557,7 @@ void EnMb_SetupClubDamaged(EnMb* this) { this->state = ENMB_STATE_CLUB_KNEELING; this->timer1 = 0; this->timer3 = 20; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_MORIBLIN_DEAD); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_MORIBLIN_DEAD); EnMb_SetupAction(this, EnMb_ClubDamaged); } @@ -579,7 +579,7 @@ void EnMb_SetupClubDead(EnMb* this) { this->hitbox.dim.radius = 95; this->timer1 = 30; this->actor.speedXZ = 0.0f; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_MORIBLIN_DEAD); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_MORIBLIN_DEAD); EnMb_SetupAction(this, EnMb_ClubDead); } @@ -593,7 +593,7 @@ void EnMb_SetupStunned(EnMb* this) { if (this->actor.params != ENMB_TYPE_CLUB) { Animation_PlayOnceSetSpeed(&this->skelAnime, &gEnMbSpearDamagedFromFrontAnim, 0.0f); } - Audio_PlayActorSound2(&this->actor, NA_SE_EN_GOMA_JR_FREEZE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_GOMA_JR_FREEZE); } EnMb_SetupAction(this, EnMb_Stunned); } @@ -664,7 +664,7 @@ void EnMb_SpearPatrolTurnTowardsWaypoint(EnMb* this, PlayState* play) { relYawFromPlayer = this->actor.shape.rot.y - this->actor.yawTowardsPlayer; if (ABS(relYawFromPlayer) <= 0x4000 || (func_8002DDE4(play) && this->actor.xzDistToPlayer < 160.0f)) { EnMb_FindWaypointTowardsPlayer(this, play); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_MORIBLIN_VOICE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_MORIBLIN_VOICE); EnMb_SetupSpearPrepareAndCharge(this); } } @@ -689,7 +689,7 @@ void EnMb_SpearEndChargeQuick(EnMb* this, PlayState* play) { Animation_GetLastFrame(&gEnMbSpearPrepareChargeAnim), 0.0f, ANIMMODE_ONCE, 0.0f); this->timer1 = 1; this->actor.speedXZ = 0.0f; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_MORIBLIN_SPEAR_NORM); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_MORIBLIN_SPEAR_NORM); } } else { if (this->actor.params <= ENMB_TYPE_SPEAR_GUARD) { @@ -746,7 +746,7 @@ void EnMb_SpearPatrolEndCharge(EnMb* this, PlayState* play) { Animation_Change(&this->skelAnime, &gEnMbSpearPrepareChargeAnim, -1.0f, lastFrame, 0.0f, ANIMMODE_ONCE, 0.0f); this->actor.speedXZ = 0.0f; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_MORIBLIN_SPEAR_NORM); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_MORIBLIN_SPEAR_NORM); } } else { if (this->actor.xzDistToPlayer <= 160.0f) { @@ -792,7 +792,7 @@ void EnMb_SpearGuardPrepareAndCharge(EnMb* this, PlayState* play) { if (SkelAnime_Update(&this->skelAnime)) { Animation_PlayLoop(&this->skelAnime, &gEnMbSpearChargeAnim); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_MORIBLIN_ATTACK); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_MORIBLIN_ATTACK); } if (this->timer3 != 0) { @@ -804,7 +804,7 @@ void EnMb_SpearGuardPrepareAndCharge(EnMb* this, PlayState* play) { Actor_SpawnFloorDustRing(play, &this->actor, &this->actor.world.pos, 5.0f, 3, 4.0f, 100, 15, false); if (prevFrame != (s32)this->skelAnime.curFrame && ((s32)this->skelAnime.curFrame == 2 || (s32)this->skelAnime.curFrame == 6)) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_MORIBLIN_DASH); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_MORIBLIN_DASH); } } @@ -857,7 +857,7 @@ void EnMb_ClubAttack(EnMb* this, PlayState* play) { } else { effSpawnPos = this->effSpawnPos; effSpawnPos.y = this->actor.floorHeight; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_MONBLIN_HAM_LAND); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_MONBLIN_HAM_LAND); func_800AA000(this->actor.xzDistToPlayer, 0xFF, 0x14, 0x96); EffectSsBlast_SpawnWhiteShockwave(play, &effSpawnPos, &effWhiteShockwaveDynamics, &effWhiteShockwaveDynamics); @@ -869,10 +869,10 @@ void EnMb_ClubAttack(EnMb* this, PlayState* play) { } } else { if (this->timer3 != 0 && this->skelAnime.curFrame == 6.0f) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_MONBLIN_HAM_UP); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_MONBLIN_HAM_UP); } else if (this->timer3 == 0 && this->skelAnime.curFrame == 3.0f) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_MONBLIN_HAM_DOWN); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_MONBLIN_HAM_DOWN); } } } @@ -889,7 +889,7 @@ void EnMb_SpearPatrolPrepareAndCharge(EnMb* this, PlayState* play) { prevFrame = (s32)this->skelAnime.curFrame; if (SkelAnime_Update(&this->skelAnime)) { Animation_PlayLoop(&this->skelAnime, &gEnMbSpearChargeAnim); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_MORIBLIN_ATTACK); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_MORIBLIN_ATTACK); } if (this->timer3 != 0) { @@ -902,7 +902,7 @@ void EnMb_SpearPatrolPrepareAndCharge(EnMb* this, PlayState* play) { Actor_SpawnFloorDustRing(play, &this->actor, &this->actor.world.pos, 5.0f, 3, 4.0f, 100, 15, false); if (prevFrame != (s32)this->skelAnime.curFrame && ((s32)this->skelAnime.curFrame == 2 || (s32)this->skelAnime.curFrame == 6)) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_MORIBLIN_DASH); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_MORIBLIN_DASH); } } @@ -918,7 +918,7 @@ void EnMb_SpearPatrolPrepareAndCharge(EnMb* this, PlayState* play) { } } if (!(this->attackCollider.base.atFlags & AT_BOUNCED)) { - Audio_PlayActorSound2(&player->actor, NA_SE_PL_BODY_HIT); + Audio_PlayActorSfx2(&player->actor, NA_SE_PL_BODY_HIT); } if (play->grabPlayer(play, player)) { player->actor.parent = &this->actor; @@ -972,7 +972,7 @@ void EnMb_SpearPatrolImmediateCharge(EnMb* this, PlayState* play) { Actor_SpawnFloorDustRing(play, &this->actor, &this->actor.world.pos, 5.0f, 3, 4.0f, 100, 15, false); if (prevFrame != (s32)this->skelAnime.curFrame && ((s32)this->skelAnime.curFrame == 2 || (s32)this->skelAnime.curFrame == 6)) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_MORIBLIN_DASH); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_MORIBLIN_DASH); } if (this->attackCollider.base.atFlags & AT_HIT) { @@ -987,7 +987,7 @@ void EnMb_SpearPatrolImmediateCharge(EnMb* this, PlayState* play) { } } if (!(this->attackCollider.base.atFlags & AT_BOUNCED)) { - Audio_PlayActorSound2(&player->actor, NA_SE_PL_BODY_HIT); + Audio_PlayActorSfx2(&player->actor, NA_SE_PL_BODY_HIT); } if (play->grabPlayer(play, player)) { player->actor.parent = &this->actor; @@ -1104,7 +1104,7 @@ void EnMb_ClubDead(EnMb* this, PlayState* play) { } else if ((s32)this->skelAnime.curFrame == 15 || (s32)this->skelAnime.curFrame == 22) { func_800AA000(this->actor.xzDistToPlayer, 0xFF, 0x14, 0x96); Actor_SpawnFloorDustRing(play, &this->actor, &effPos, 50.0f, 10, 3.0f, 400, 60, false); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_RIZA_DOWN); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_RIZA_DOWN); Camera_AddQuake(&play->mainCamera, 2, 25, 5); } } @@ -1151,7 +1151,7 @@ void EnMb_SpearGuardWalk(EnMb* this, PlayState* play) { this->timer3--; } if (this->timer2 == 0) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_MORIBLIN_VOICE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_MORIBLIN_VOICE); } this->timer1--; if (this->timer1 == 0) { @@ -1167,7 +1167,7 @@ void EnMb_SpearGuardWalk(EnMb* this, PlayState* play) { if (prevFrame != (s32)this->skelAnime.curFrame) { if ((beforeCurFrame <= 1 && prevFrame + (s32)playSpeedAbs >= 1) || (beforeCurFrame <= 20 && prevFrame + (s32)playSpeedAbs >= 20)) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_MORIBLIN_WALK); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_MORIBLIN_WALK); } } @@ -1197,7 +1197,7 @@ void EnMb_SpearPatrolWalkTowardsWaypoint(EnMb* this, PlayState* play) { relYawTowardsPlayer = (this->actor.shape.rot.y - this->actor.yawTowardsPlayer); if (ABS(relYawTowardsPlayer) <= 0x4000 || (func_8002DDE4(play) && this->actor.xzDistToPlayer < 160.0f)) { EnMb_FindWaypointTowardsPlayer(this, play); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_MORIBLIN_VOICE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_MORIBLIN_VOICE); EnMb_SetupSpearPrepareAndCharge(this); return; } @@ -1210,7 +1210,7 @@ void EnMb_SpearPatrolWalkTowardsWaypoint(EnMb* this, PlayState* play) { this->timer3--; } if (this->timer2 == 0) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_MORIBLIN_VOICE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_MORIBLIN_VOICE); this->timer2 = Rand_S16Offset(30, 70); } @@ -1222,7 +1222,7 @@ void EnMb_SpearPatrolWalkTowardsWaypoint(EnMb* this, PlayState* play) { if (prevFrame != (s32)this->skelAnime.curFrame) { if ((beforeCurFrame <= 1 && (s32)playSpeedABS + prevFrame >= 1) || (beforeCurFrame <= 20 && (s32)playSpeedABS + prevFrame >= 20)) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_MORIBLIN_WALK); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_MORIBLIN_WALK); } } @@ -1255,7 +1255,7 @@ void EnMb_SetupSpearDamaged(EnMb* this) { this->timer1 = 30; this->state = ENMB_STATE_SPEAR_SPEARPATH_DAMAGED; this->actor.shape.rot.y = this->actor.world.rot.y; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_MORIBLIN_DEAD); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_MORIBLIN_DEAD); EnMb_SetupAction(this, EnMb_SpearDamaged); } @@ -1285,7 +1285,7 @@ void EnMb_SetupSpearDead(EnMb* this) { this->actor.world.rot.y = this->actor.shape.rot.y; this->timer1 = 30; this->state = ENMB_STATE_SPEAR_SPEARPATH_DAMAGED; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_MORIBLIN_DEAD); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_MORIBLIN_DEAD); this->actor.flags &= ~ACTOR_FLAG_0; EnMb_SetupAction(this, EnMb_SpearDead); } diff --git a/src/overlays/actors/ovl_En_Md/z_en_md.c b/src/overlays/actors/ovl_En_Md/z_en_md.c index 38883ca6f3..2b16b5e215 100644 --- a/src/overlays/actors/ovl_En_Md/z_en_md.c +++ b/src/overlays/actors/ovl_En_Md/z_en_md.c @@ -781,8 +781,8 @@ void func_80AABC10(EnMd* this, PlayState* play) { this->actionFunc = func_80AAB948; play->msgCtx.ocarinaMode = OCARINA_MODE_04; } else if (play->msgCtx.ocarinaMode == OCARINA_MODE_03) { - Audio_PlaySoundGeneral(NA_SE_SY_CORRECT_CHIME, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_CORRECT_CHIME, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); this->actor.textId = 0x1067; func_8002F2CC(&this->actor, play, this->collider.dim.radius + 30.0f); diff --git a/src/overlays/actors/ovl_En_Mm/z_en_mm.c b/src/overlays/actors/ovl_En_Mm/z_en_mm.c index 1fae3e0d8c..6a522cb0e1 100644 --- a/src/overlays/actors/ovl_En_Mm/z_en_mm.c +++ b/src/overlays/actors/ovl_En_Mm/z_en_mm.c @@ -415,7 +415,7 @@ void func_80AAE294(EnMm* this, PlayState* play) { if (this->curAnimIndex == 0) { if (((s32)this->skelAnime.curFrame == 1) || ((s32)this->skelAnime.curFrame == 6)) { - Audio_PlayActorSound2(&this->actor, NA_SE_PL_WALK_GROUND); + Audio_PlayActorSfx2(&this->actor, NA_SE_PL_WALK_GROUND); } } @@ -423,7 +423,7 @@ void func_80AAE294(EnMm* this, PlayState* play) { if (((this->skelAnime.curFrame - this->skelAnime.playSpeed < 9.0f) && (this->skelAnime.curFrame >= 9.0f)) || ((this->skelAnime.curFrame - this->skelAnime.playSpeed < 19.0f) && (this->skelAnime.curFrame >= 19.0f))) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_MORIBLIN_WALK); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_MORIBLIN_WALK); } } diff --git a/src/overlays/actors/ovl_En_Nb/z_en_nb.c b/src/overlays/actors/ovl_En_Nb/z_en_nb.c index 5935f5cfdb..fee73f00eb 100644 --- a/src/overlays/actors/ovl_En_Nb/z_en_nb.c +++ b/src/overlays/actors/ovl_En_Nb/z_en_nb.c @@ -451,7 +451,7 @@ void EnNb_SetupLightArrowOrSealingCs(EnNb* this, PlayState* play) { this->actor.shape.shadowAlpha = 0; } -void EnNb_PlaySealingSound(void) { +void EnNb_PlaySealingSfx(void) { func_800788CC(NA_SE_SY_WHITE_OUT_T); } @@ -467,7 +467,7 @@ void EnNb_SetupHide(EnNb* this, PlayState* play) { this->alpha = 0; this->actor.shape.shadowAlpha = 0; this->alphaTimer = 0.0f; - EnNb_PlaySealingSound(); + EnNb_PlaySealingSfx(); } } diff --git a/src/overlays/actors/ovl_En_Niw/z_en_niw.c b/src/overlays/actors/ovl_En_Niw/z_en_niw.c index 031a57ae08..8c62080793 100644 --- a/src/overlays/actors/ovl_En_Niw/z_en_niw.c +++ b/src/overlays/actors/ovl_En_Niw/z_en_niw.c @@ -456,7 +456,7 @@ void func_80AB6450(EnNiw* this, PlayState* play) { this->actionFunc = func_80AB7290; } else if (Actor_HasParent(&this->actor, play)) { this->actor.gravity = -2.0f; - Audio_PlayActorSound2(&this->actor, NA_SE_EV_CHICKEN_CRY_M); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_CHICKEN_CRY_M); this->sfxTimer1 = 30; this->path = 0; this->timer4 = 30; @@ -478,7 +478,7 @@ void func_80AB6570(EnNiw* this, PlayState* play) { if (this->actor.params != 0xA) { if (Actor_HasParent(&this->actor, play)) { - Audio_PlayActorSound2(&this->actor, NA_SE_EV_CHICKEN_CRY_M); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_CHICKEN_CRY_M); this->sfxTimer1 = 30; this->path = 0; this->timer4 = 30; @@ -492,7 +492,7 @@ void func_80AB6570(EnNiw* this, PlayState* play) { if (this->path != 0) { this->unk_2A6 = 1; if (this->sfxTimer3 == 0) { - Audio_PlayActorSound2(&this->actor, NA_SE_EV_CHICKEN_CRY_M); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_CHICKEN_CRY_M); this->sfxTimer3 = 100; } this->unk_2A0 = Rand_ZeroFloat(1.99f); @@ -687,7 +687,7 @@ void func_80AB6D08(EnNiw* this, PlayState* play) { } if (Actor_HasParent(&this->actor, play)) { - Audio_PlayActorSound2(&this->actor, NA_SE_EV_CHICKEN_CRY_M); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_CHICKEN_CRY_M); this->sfxTimer1 = 30; this->path = 0; this->timer4 = 30; @@ -793,7 +793,7 @@ void func_80AB714C(EnNiw* this, PlayState* play) { this->unk_26C[1] = 0.0f; this->unk_26C[2] = 0.0f; this->timer1 = 10; - Audio_PlayActorSound2(&this->actor, NA_SE_EV_CHICKEN_CRY_M); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_CHICKEN_CRY_M); } if (this->timer5 == 0) { this->timer7 = 10; @@ -865,7 +865,7 @@ void func_80AB747C(EnNiw* this, PlayState* play) { this->unk_2A4--; } this->unk_2A6 = 1; - Audio_PlayActorSound2(&this->actor, NA_SE_EV_CHICKEN_CRY_M); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_CHICKEN_CRY_M); this->timer6 = 100; this->path = 0; this->actionFunc = func_80AB7290; @@ -1086,15 +1086,15 @@ void EnNiw_Update(Actor* thisx, PlayState* play) { if (this->sfxTimer2 == 0 && this->actionFunc == func_80AB6BF8) { this->sfxTimer2 = 7; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_DEKU_WAKEUP); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_DEKU_WAKEUP); } if (this->sfxTimer1 == 0) { if (this->actionFunc != func_80AB6570) { this->sfxTimer1 = 30; - Audio_PlayActorSound2(&this->actor, NA_SE_EV_CHICKEN_CRY_A); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_CHICKEN_CRY_A); } else { this->sfxTimer1 = 300; - Audio_PlayActorSound2(&this->actor, NA_SE_EV_CHICKEN_CRY_N); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_CHICKEN_CRY_N); } } if (this->unk_2A8 == 0) { diff --git a/src/overlays/actors/ovl_En_Nutsball/z_en_nutsball.c b/src/overlays/actors/ovl_En_Nutsball/z_en_nutsball.c index d1cb883abf..dd80194ff3 100644 --- a/src/overlays/actors/ovl_En_Nutsball/z_en_nutsball.c +++ b/src/overlays/actors/ovl_En_Nutsball/z_en_nutsball.c @@ -133,7 +133,7 @@ void func_80ABBBA8(EnNutsball* this, PlayState* play) { sp40.z = this->actor.world.pos.z; EffectSsHahen_SpawnBurst(play, &sp40, 6.0f, 0, 7, 3, 15, HAHEN_OBJECT_DEFAULT, 10, NULL); - SoundSource_PlaySfxAtFixedWorldPos(play, &this->actor.world.pos, 20, NA_SE_EN_OCTAROCK_ROCK); + SfxSource_PlaySfxAtFixedWorldPos(play, &this->actor.world.pos, 20, NA_SE_EN_OCTAROCK_ROCK); Actor_Kill(&this->actor); } else { if (this->timer == -300) { diff --git a/src/overlays/actors/ovl_En_Ny/z_en_ny.c b/src/overlays/actors/ovl_En_Ny/z_en_ny.c index 9dcdf2e08c..c3e5d7c4b6 100644 --- a/src/overlays/actors/ovl_En_Ny/z_en_ny.c +++ b/src/overlays/actors/ovl_En_Ny/z_en_ny.c @@ -177,7 +177,7 @@ void func_80ABCDBC(EnNy* this) { } void EnNy_SetupTurnToStone(EnNy* this) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_NYU_HIT_STOP); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_NYU_HIT_STOP); this->actionFunc = EnNy_TurnToStone; this->unk_1E8 = 0.0f; } @@ -253,7 +253,7 @@ void EnNy_TurnToStone(EnNy* this, PlayState* play) { phi_f0 = 0.25f; if (this->actor.bgCheckFlags & BGCHECKFLAG_GROUND_TOUCH) { if (!(this->unk_1F0 < this->actor.yDistToWater)) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_DODO_M_GND); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_DODO_M_GND); } this->actor.bgCheckFlags &= ~BGCHECKFLAG_GROUND_TOUCH; this->actor.speedXZ = 0.0f; @@ -444,7 +444,7 @@ void EnNy_SetupDie(EnNy* this, PlayState* play) { } else { Item_DropCollectible(play, &this->actor.world.pos, ITEM00_ARROWS_SMALL); } - Audio_PlayActorSound2(&this->actor, NA_SE_EN_NYU_DEAD); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_NYU_DEAD); this->actionFunc = EnNy_Die; } } diff --git a/src/overlays/actors/ovl_En_Okuta/z_en_okuta.c b/src/overlays/actors/ovl_En_Okuta/z_en_okuta.c index 81f4c66ae6..9bab150750 100644 --- a/src/overlays/actors/ovl_En_Okuta/z_en_okuta.c +++ b/src/overlays/actors/ovl_En_Okuta/z_en_okuta.c @@ -233,7 +233,7 @@ void EnOkuta_SetupShoot(EnOkuta* this, PlayState* play) { EnOkuta_SpawnSplash(this, play); } if (this->jumpHeight > 50.0f) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_OCTAROCK_JUMP); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_OCTAROCK_JUMP); } this->actionFunc = EnOkuta_Shoot; } @@ -243,7 +243,7 @@ void EnOkuta_SetupWaitToDie(EnOkuta* this) { Actor_SetColorFilter(&this->actor, 0x4000, 0xFF, 0, 0xB); this->collider.base.acFlags &= ~AC_HIT; Actor_SetScale(&this->actor, 0.01f); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_OCTAROCK_DEAD1); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_OCTAROCK_DEAD1); this->actionFunc = EnOkuta_WaitToDie; } @@ -278,7 +278,7 @@ void EnOkuta_SpawnProjectile(EnOkuta* this, PlayState* play) { velocity.z = 1.5f * cosY; EnOkuta_SpawnDust(&pos, &velocity, 20, play); } - Audio_PlayActorSound2(&this->actor, NA_SE_EN_NUTS_THROW); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_NUTS_THROW); } void EnOkuta_WaitToAppear(EnOkuta* this, PlayState* play) { @@ -303,10 +303,10 @@ void EnOkuta_Appear(EnOkuta* this, PlayState* play) { Actor_SetScale(&this->actor, 0.01f); } if (Animation_OnFrame(&this->skelAnime, 2.0f)) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_OCTAROCK_JUMP); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_OCTAROCK_JUMP); } if (Animation_OnFrame(&this->skelAnime, 12.0f)) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_OCTAROCK_LAND); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_OCTAROCK_LAND); } if (Animation_OnFrame(&this->skelAnime, 3.0f) || Animation_OnFrame(&this->skelAnime, 15.0f)) { EnOkuta_SpawnSplash(this, play); @@ -318,14 +318,14 @@ void EnOkuta_Hide(EnOkuta* this, PlayState* play) { Math_ApproachF(&this->actor.world.pos.y, this->actor.home.pos.y, 0.5f, 30.0f); if (SkelAnime_Update(&this->skelAnime)) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_OCTAROCK_BUBLE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_OCTAROCK_BUBLE); EnOkuta_SpawnBubbles(this, play); EnOkuta_SetupWaitToAppear(this); } else if (this->skelAnime.curFrame >= 4.0f) { Actor_SetScale(&this->actor, (6.0f - this->skelAnime.curFrame) * 0.5f * 0.01f); } if (Animation_OnFrame(&this->skelAnime, 2.0f)) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_OCTAROCK_SINK); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_OCTAROCK_SINK); } if (Animation_OnFrame(&this->skelAnime, 4.0f)) { EnOkuta_SpawnSplash(this, play); @@ -344,7 +344,7 @@ void EnOkuta_WaitToShoot(EnOkuta* this, PlayState* play) { } } if (Animation_OnFrame(&this->skelAnime, 0.5f)) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_OCTAROCK_FLOAT); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_OCTAROCK_FLOAT); } if (this->actor.xzDistToPlayer < 160.0f || this->actor.xzDistToPlayer > 560.0f) { EnOkuta_SetupHide(this); @@ -381,7 +381,7 @@ void EnOkuta_Shoot(EnOkuta* this, PlayState* play) { EnOkuta_SpawnSplash(this, play); } if ((this->jumpHeight > 50.0f) && Animation_OnFrame(&this->skelAnime, 13.0f)) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_OCTAROCK_LAND); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_OCTAROCK_LAND); } } if (this->actor.xzDistToPlayer < 160.0f) { @@ -416,11 +416,11 @@ void EnOkuta_Die(EnOkuta* this, PlayState* play) { velocity.y = -0.5f; velocity.z = 0.0f; EnOkuta_SpawnDust(&pos, &velocity, -0x14, play); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_OCTAROCK_DEAD2); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_OCTAROCK_DEAD2); } if (Animation_OnFrame(&this->skelAnime, 15.0f)) { EnOkuta_SpawnSplash(this, play); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_OCTAROCK_LAND); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_OCTAROCK_LAND); } if (this->timer < 3) { Actor_SetScale(&this->actor, ((this->timer * 0.25f) + 1.0f) * 0.01f); @@ -430,7 +430,7 @@ void EnOkuta_Die(EnOkuta* this, PlayState* play) { Actor_SetScale(&this->actor, (((this->timer - 5) * 0.04f) + 0.8f) * 0.01f); } else { if (Math_StepToF(&this->actor.scale.x, 0.0f, 0.0005f)) { - SoundSource_PlaySfxAtFixedWorldPos(play, &this->actor.world.pos, 30, NA_SE_EN_OCTAROCK_BUBLE); + SfxSource_PlaySfxAtFixedWorldPos(play, &this->actor.world.pos, 30, NA_SE_EN_OCTAROCK_BUBLE); Item_DropCollectibleRandom(play, &this->actor, &this->actor.world.pos, 0x70); for (i = 0; i < 20; i++) { velocity.x = (Rand_ZeroOne() - 0.5f) * 7.0f; @@ -499,7 +499,7 @@ void EnOkuta_ProjectileFly(EnOkuta* this, PlayState* play) { pos.y = this->actor.world.pos.y + 11.0f; pos.z = this->actor.world.pos.z; EffectSsHahen_SpawnBurst(play, &pos, 6.0f, 0, 1, 2, 15, 7, 10, gOctorokProjectileDL); - SoundSource_PlaySfxAtFixedWorldPos(play, &this->actor.world.pos, 20, NA_SE_EN_OCTAROCK_ROCK); + SfxSource_PlaySfxAtFixedWorldPos(play, &this->actor.world.pos, 20, NA_SE_EN_OCTAROCK_ROCK); Actor_Kill(&this->actor); } } else if (this->timer == -300) { diff --git a/src/overlays/actors/ovl_En_Owl/z_en_owl.c b/src/overlays/actors/ovl_En_Owl/z_en_owl.c index 8d8593deb9..2b3c27da4f 100644 --- a/src/overlays/actors/ovl_En_Owl/z_en_owl.c +++ b/src/overlays/actors/ovl_En_Owl/z_en_owl.c @@ -1095,7 +1095,7 @@ void EnOwl_Update(Actor* thisx, PlayState* play) { this->skelAnime.curFrame == 23.0f || this->skelAnime.curFrame == 40.0f || this->skelAnime.curFrame == 58.0f)) || (this->skelAnime.animation == &gOwlFlyAnim && this->skelAnime.curFrame == 4.0f)) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_OWL_FLUTTER); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_OWL_FLUTTER); } } diff --git a/src/overlays/actors/ovl_En_Part/z_en_part.c b/src/overlays/actors/ovl_En_Part/z_en_part.c index 11c9069389..e2b832c059 100644 --- a/src/overlays/actors/ovl_En_Part/z_en_part.c +++ b/src/overlays/actors/ovl_En_Part/z_en_part.c @@ -206,7 +206,7 @@ void func_80ACE5C8(EnPart* this, PlayState* play) { velocity.x = Rand_CenteredFloat(16.0f); EffectSsHahen_Spawn(play, &this->actor.world.pos, &velocity, &accel, 20, (s32)((Rand_ZeroOne() * 5.0f + 12.0f) * 2), -1, 10, NULL); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_MONBLIN_GNDWAVE - SFX_FLAG); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_MONBLIN_GNDWAVE - SFX_FLAG); } } @@ -229,7 +229,7 @@ void func_80ACE7E8(EnPart* this, PlayState* play) { if (diffsSum == 0.0f) { this->actor.parent->home.rot.x--; this->timer--; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_STAL_DAMAGE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_STAL_DAMAGE); } } else if (this->timer > 0) { this->timer--; diff --git a/src/overlays/actors/ovl_En_Peehat/z_en_peehat.c b/src/overlays/actors/ovl_En_Peehat/z_en_peehat.c index a26f2db372..c5002dc687 100644 --- a/src/overlays/actors/ovl_En_Peehat/z_en_peehat.c +++ b/src/overlays/actors/ovl_En_Peehat/z_en_peehat.c @@ -306,7 +306,7 @@ void EnPeehat_HitWhenGrounded(EnPeehat* this, PlayState* play) { } this->unk_2D4 = 8; } - Audio_PlayActorSound2(&this->actor, NA_SE_EN_PIHAT_DAMAGE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_PIHAT_DAMAGE); } void EnPeehat_Ground_SetStateGround(EnPeehat* this) { @@ -384,7 +384,7 @@ void EnPeehat_Flying_SetStateFly(EnPeehat* this) { } void EnPeehat_Flying_StateFly(EnPeehat* this, PlayState* play) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_PIHAT_FLY - SFX_FLAG); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_PIHAT_FLY - SFX_FLAG); SkelAnime_Update(&this->skelAnime); if (!IS_DAY || this->xzDistToRise < this->actor.xzDistToPlayer) { EnPeehat_Flying_SetStateLanding(this); @@ -411,7 +411,7 @@ void EnPeehat_Ground_SetStateRise(EnPeehat* this) { } this->state = PEAHAT_STATE_8; this->animTimer = lastFrame; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_PIHAT_UP); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_PIHAT_UP); EnPeehat_SetupAction(this, EnPeehat_Ground_StateRise); } @@ -452,7 +452,7 @@ void EnPeehat_Flying_SetStateRise(EnPeehat* this) { } this->state = PEAHAT_STATE_9; this->animTimer = lastFrame; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_PIHAT_UP); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_PIHAT_UP); EnPeehat_SetupAction(this, EnPeehat_Flying_StateRise); } @@ -518,7 +518,7 @@ void EnPeehat_Ground_StateSeekPlayer(EnPeehat* this, PlayState* play) { Math_SmoothStepToS(&this->bladeRotVel, 4000, 1, 500, 0); this->bladeRot += this->bladeRotVel; Math_SmoothStepToF(&this->scaleShift, 0.075f, 1.0f, 0.005f, 0.0f); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_PIHAT_FLY - SFX_FLAG); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_PIHAT_FLY - SFX_FLAG); } void EnPeehat_Larva_SetStateSeekPlayer(EnPeehat* this) { @@ -553,7 +553,7 @@ void EnPeehat_Larva_StateSeekPlayer(EnPeehat* this, PlayState* play) { Math_SmoothStepToS(&this->bladeRotVel, 4000, 1, 500, 0); this->bladeRot += this->bladeRotVel; Math_SmoothStepToF(&this->scaleShift, 0.075f, 1.0f, 0.005f, 0.0f); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_PIHAT_SM_FLY - SFX_FLAG); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_PIHAT_SM_FLY - SFX_FLAG); if (this->colQuad.base.atFlags & AT_BOUNCED) { this->actor.colChkInfo.health = 0; this->colQuad.base.acFlags = this->colQuad.base.acFlags & ~AC_BOUNCED; @@ -603,7 +603,7 @@ void EnPeehat_Ground_StateLanding(EnPeehat* this, PlayState* play) { if (SkelAnime_Update(&this->skelAnime)) { EnPeehat_Ground_SetStateGround(this); this->actor.world.pos.y = this->actor.floorHeight; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_PIHAT_LAND); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_PIHAT_LAND); } else if (this->actor.floorHeight < this->actor.world.pos.y) { Math_SmoothStepToF(&this->actor.world.pos.y, this->actor.floorHeight, 0.3f, 3.5f, 0.25f); if (this->actor.world.pos.y - this->actor.floorHeight < 60.0f) { @@ -629,7 +629,7 @@ void EnPeehat_Flying_StateLanding(EnPeehat* this, PlayState* play) { Math_SmoothStepToS(&this->actor.shape.rot.x, 0, 1, 50, 0); if (SkelAnime_Update(&this->skelAnime)) { EnPeehat_Flying_SetStateGround(this); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_PIHAT_LAND); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_PIHAT_LAND); this->actor.world.pos.y = this->actor.floorHeight; } else if (this->actor.floorHeight < this->actor.world.pos.y) { Math_SmoothStepToF(&this->actor.world.pos.y, this->actor.floorHeight, 0.3f, 13.5f, 0.25f); @@ -689,7 +689,7 @@ void EnPeehat_Ground_StateHover(EnPeehat* this, PlayState* play) { Math_SmoothStepToS(&this->bladeRotVel, 4000, 1, 500, 0); this->bladeRot += this->bladeRotVel; Math_SmoothStepToF(&this->scaleShift, 0.075f, 1.0f, 0.005f, 0.0f); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_PIHAT_FLY - SFX_FLAG); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_PIHAT_FLY - SFX_FLAG); } void EnPeehat_Ground_SetStateReturnHome(EnPeehat* this) { @@ -726,7 +726,7 @@ void EnPeehat_Ground_StateReturnHome(EnPeehat* this, PlayState* play) { EnPeehat_Ground_SetStateSeekPlayer(this); this->unk_2FA = (play->gameplayFrames & 1); } - Audio_PlayActorSound2(&this->actor, NA_SE_EN_PIHAT_FLY - SFX_FLAG); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_PIHAT_FLY - SFX_FLAG); } void EnPeehat_SetStateAttackRecoil(EnPeehat* this) { @@ -762,7 +762,7 @@ void EnPeehat_StateAttackRecoil(EnPeehat* this, PlayState* play) { } } } - Audio_PlayActorSound2(&this->actor, NA_SE_EN_PIHAT_FLY - SFX_FLAG); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_PIHAT_FLY - SFX_FLAG); } void EnPeehat_SetStateBoomerangStunned(EnPeehat* this) { @@ -773,7 +773,7 @@ void EnPeehat_SetStateBoomerangStunned(EnPeehat* this) { this->bladeRotVel = 0; this->actor.world.rot.y = this->actor.yawTowardsPlayer; Actor_SetColorFilter(&this->actor, 0, 200, 0, 80); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_GOMA_JR_FREEZE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_GOMA_JR_FREEZE); EnPeehat_SetupAction(this, EnPeehat_StateBoomerangStunned); } @@ -895,7 +895,7 @@ void EnPeehat_Adult_CollisionCheck(EnPeehat* this, PlayState* play) { } else { Actor_ApplyDamage(&this->actor); Actor_SetColorFilter(&this->actor, 0x4000, 255, 0, 8); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_PIHAT_DAMAGE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_PIHAT_DAMAGE); } if (this->actor.colChkInfo.damageEffect == PEAHAT_DMG_EFF_FIRE) { diff --git a/src/overlays/actors/ovl_En_Po_Desert/z_en_po_desert.c b/src/overlays/actors/ovl_En_Po_Desert/z_en_po_desert.c index 86b74b3ed5..4dae5a2910 100644 --- a/src/overlays/actors/ovl_En_Po_Desert/z_en_po_desert.c +++ b/src/overlays/actors/ovl_En_Po_Desert/z_en_po_desert.c @@ -115,7 +115,7 @@ void EnPoDesert_SetupDisappear(EnPoDesert* this) { Animation_MorphToPlayOnce(&this->skelAnime, &gPoeFieldDisappearAnim, -6.0f); this->actionTimer = 16; this->actor.speedXZ = 0.0f; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_PO_DISAPPEAR); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_PO_DISAPPEAR); this->actionFunc = EnPoDesert_Disappear; } diff --git a/src/overlays/actors/ovl_En_Po_Field/z_en_po_field.c b/src/overlays/actors/ovl_En_Po_Field/z_en_po_field.c index 8c2f7ae37a..5c1ffda408 100644 --- a/src/overlays/actors/ovl_En_Po_Field/z_en_po_field.c +++ b/src/overlays/actors/ovl_En_Po_Field/z_en_po_field.c @@ -210,7 +210,7 @@ void EnPoField_SetupAppear(EnPoField* this) { this->lightColor.a = 0; this->actor.shape.shadowAlpha = 0; this->actor.shape.yOffset = 0.0f; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_PO_APPEAR); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_PO_APPEAR); this->actor.home.pos.y = this->actor.world.pos.y; if (this->actor.params == EN_PO_FIELD_BIG) { this->actor.speedXZ = 12.0f; @@ -291,8 +291,8 @@ void EnPoField_SetupDisappear(EnPoField* this) { this->actionTimer = 16; this->collider.base.acFlags &= ~(AC_HIT | AC_ON); this->actor.speedXZ = 0.0f; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_PO_LAUGH); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_PO_DISAPPEAR); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_PO_LAUGH); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_PO_DISAPPEAR); this->actionFunc = EnPoField_Disappear; } @@ -322,7 +322,7 @@ void func_80AD42B0(EnPoField* this) { this->actor.home.pos.y = this->actor.world.pos.y; this->actor.scale.x = 0.0f; this->actor.scale.y = 0.0f; - Audio_PlayActorSound2(&this->actor, NA_SE_EV_METAL_BOX_BOUND); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_METAL_BOX_BOUND); if (this->actor.params == EN_PO_FIELD_BIG) { func_80078884(NA_SE_SY_TRE_BOX_APPEAR); } @@ -568,7 +568,7 @@ void EnPoField_Death(EnPoField* this, PlayState* play) { EffectSsDeadDb_Spawn(play, &sp6C, &D_80AD7114, &D_80AD7120, this->actionTimer * 10 + 80, 0, 255, 255, 255, 255, 0, 0, 255, 1, 9, 1); if (this->actionTimer == 1) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_EXTINCT); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_EXTINCT); } } else if (this->actionTimer == 28) { EnPoField_SetupSoulIdle(this, play); @@ -580,7 +580,7 @@ void EnPoField_Death(EnPoField* this, PlayState* play) { this->actor.scale.x = temp_f0; } if (this->actionTimer == 18) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_PO_DEAD2); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_PO_DEAD2); } } @@ -651,7 +651,7 @@ void func_80AD58D4(EnPoField* this, PlayState* play) { return; } if (this->actionTimer == 0) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_PO_LAUGH); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_PO_LAUGH); this->actor.flags &= ~ACTOR_FLAG_16; EnPoField_SetupSoulDisappear(this); return; @@ -696,7 +696,7 @@ void EnPoField_SoulInteract(EnPoField* this, PlayState* play) { Audio_StopSfxByPosAndId(&this->actor.projectedPos, NA_SE_EN_PO_BIG_CRY - SFX_FLAG); if (play->msgCtx.choiceIndex == 0) { if (Inventory_HasEmptyBottle()) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_PO_BIG_GET); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_PO_BIG_GET); if (this->actor.params == 0) { Item_Give(play, ITEM_POE); this->actor.textId = 0x5008; @@ -706,12 +706,12 @@ void EnPoField_SoulInteract(EnPoField* this, PlayState* play) { Flags_SetSwitch(play, sSpawnSwitchFlags[this->spawnFlagIndex]); } } else { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_PO_LAUGH); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_PO_LAUGH); this->actor.textId = 0x5006; } } else { this->actor.textId = 0x5007; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_PO_LAUGH); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_PO_LAUGH); } Message_ContinueTextbox(play, this->actor.textId); return; @@ -727,9 +727,9 @@ void EnPoField_TestForDamage(EnPoField* this, PlayState* play) { if (this->actor.colChkInfo.damageEffect != 0 || this->actor.colChkInfo.damage != 0) { if (Actor_ApplyDamage(&this->actor) == 0) { Enemy_StartFinishingBlow(play, &this->actor); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_PO_DEAD); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_PO_DEAD); } else { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_PO_DAMAGE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_PO_DAMAGE); } EnPoField_SetupDamage(this); } diff --git a/src/overlays/actors/ovl_En_Po_Relay/z_en_po_relay.c b/src/overlays/actors/ovl_En_Po_Relay/z_en_po_relay.c index 8d2dbdcf09..737399be6b 100644 --- a/src/overlays/actors/ovl_En_Po_Relay/z_en_po_relay.c +++ b/src/overlays/actors/ovl_En_Po_Relay/z_en_po_relay.c @@ -141,7 +141,7 @@ void EnPoRelay_SetupRace(EnPoRelay* this) { this->hookshotSlotFull = INV_CONTENT(ITEM_HOOKSHOT) != ITEM_NONE; this->unk_19A = Actor_WorldYawTowardPoint(&this->actor, &vec); this->actor.flags |= ACTOR_FLAG_27; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_PO_LAUGH); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_PO_LAUGH); this->actionFunc = EnPoRelay_Race; } @@ -318,7 +318,7 @@ void EnPoRelay_DisappearAndReward(EnPoRelay* this, PlayState* play) { EffectSsDeadDb_Spawn(play, &vec, &D_80AD8D30, &D_80AD8D3C, this->actionTimer * 10 + 80, 0, 255, 255, 255, 255, 0, 0, 255, 1, 9, true); if (this->actionTimer == 1) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_EXTINCT); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_EXTINCT); } } if (Math_StepToF(&this->actor.scale.x, 0.0f, 0.001f) != 0) { diff --git a/src/overlays/actors/ovl_En_Po_Sisters/z_en_po_sisters.c b/src/overlays/actors/ovl_En_Po_Sisters/z_en_po_sisters.c index 849fdd038c..2047e8e0b2 100644 --- a/src/overlays/actors/ovl_En_Po_Sisters/z_en_po_sisters.c +++ b/src/overlays/actors/ovl_En_Po_Sisters/z_en_po_sisters.c @@ -329,8 +329,8 @@ void func_80AD9718(EnPoSisters* this) { this->unk_19C = 100; this->actor.world.rot.y = this->actor.shape.rot.y; this->unk_199 &= ~5; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_PO_DISAPPEAR); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_PO_LAUGH2); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_PO_DISAPPEAR); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_PO_LAUGH2); this->actionFunc = func_80ADAD54; } @@ -366,7 +366,7 @@ void func_80AD98F4(EnPoSisters* this, PlayState* play) { } this->unk_19A = 15; this->actor.speedXZ = 0.0f; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_PO_APPEAR); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_PO_APPEAR); this->unk_199 &= ~1; this->actionFunc = func_80ADAE6C; } @@ -445,7 +445,7 @@ void func_80AD9C24(EnPoSisters* this, PlayState* play) { void func_80AD9D44(EnPoSisters* this) { if (this->unk_194 == 3) { Animation_PlayOnce(&this->skelAnime, &gPoeSistersAppearDisappearAnim); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_PO_APPEAR); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_PO_APPEAR); } else { Animation_Change(&this->skelAnime, &gPoeSistersAppearDisappearAnim, 0.5f, 0.0f, Animation_GetLastFrame(&gPoeSistersAppearDisappearAnim), ANIMMODE_ONCE_INTERP, 0.0f); @@ -474,7 +474,7 @@ void func_80AD9E60(EnPoSisters* this) { this->unk_19A++; } if (this->unk_195 == 0) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_PO_LAUGH2); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_PO_LAUGH2); } this->actionFunc = func_80ADB51C; } @@ -564,7 +564,7 @@ void func_80ADA2BC(EnPoSisters* this, PlayState* play) { if (this->unk_194 == 0) { Flags_SetSwitch(play, 0x1B); } - Audio_PlayActorSound2(&this->actor, NA_SE_EV_FLAME_IGNITION); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_FLAME_IGNITION); this->actionFunc = func_80ADBF58; } @@ -654,7 +654,7 @@ void func_80ADA7F0(EnPoSisters* this, PlayState* play) { } this->actor.shape.rot.y += 384.0f * ((this->skelAnime.endFrame + 1.0f) * 3.0f - this->unk_19A); if (this->unk_19A == 18 || this->unk_19A == 7) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_PO_ROLL); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_PO_ROLL); } if (this->unk_19A == 0) { func_80AD94E0(this); @@ -675,12 +675,12 @@ void func_80ADA8C0(EnPoSisters* this, PlayState* play) { this->collider.base.acFlags &= ~AC_HARD; func_80AD93C4(this); } else { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_PO_LAUGH2); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_PO_LAUGH2); func_80AD9C24(this, play); } } if (Animation_OnFrame(&this->skelAnime, 1.0f)) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_PO_ROLL); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_PO_ROLL); } } @@ -692,7 +692,7 @@ void func_80ADA9E8(EnPoSisters* this, PlayState* play) { if (this->unk_194 != 0) { func_80AD93C4(this); } else { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_PO_LAUGH2); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_PO_LAUGH2); func_80AD9C24(this, play); } } @@ -804,7 +804,7 @@ void func_80ADAFC0(EnPoSisters* this, PlayState* play) { } } if (this->unk_19A == 16) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_PO_DEAD2); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_PO_DEAD2); } } @@ -812,7 +812,7 @@ void func_80ADB17C(EnPoSisters* this, PlayState* play) { this->unk_19A++; if (this->unk_19A == 64) { Flags_SetSwitch(play, this->actor.params); - SoundSource_PlaySfxAtFixedWorldPos(play, &this->actor.world.pos, 30, NA_SE_EV_FLAME_IGNITION); + SfxSource_PlaySfxAtFixedWorldPos(play, &this->actor.world.pos, 30, NA_SE_EV_FLAME_IGNITION); if (this->unk_194 == 0) { Flags_UnsetSwitch(play, 0x1B); } @@ -837,7 +837,7 @@ void func_80ADB2B8(EnPoSisters* this, PlayState* play) { func_80AD9DF0(this, play); } if (Animation_OnFrame(&this->skelAnime, 0.0f)) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_PO_CRY); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_PO_CRY); } this->actor.shape.rot.y = this->actor.yawTowardsPlayer; } @@ -926,7 +926,7 @@ void func_80ADB51C(EnPoSisters* this, PlayState* play) { Math_ScaledStepToS(&this->actor.shape.rot.y, this->actor.parent->shape.rot.y + (this->unk_195 * 0x4000) * phi_v0, phi_a2); } else if (this->unk_19A == 70 || this->unk_19A == 40) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_PO_LAUGH2); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_PO_LAUGH2); } } func_80AD97C8(this, play); @@ -1010,7 +1010,7 @@ void func_80ADB9F0(EnPoSisters* this, PlayState* play) { this->unk_22E.a = 255.0f * div; } if (this->unk_194 != 3 && Animation_OnFrame(&this->skelAnime, 1.0f)) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_PO_APPEAR); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_PO_APPEAR); } Actor_SetFocus(&this->actor, 40.0f); } @@ -1062,7 +1062,7 @@ void func_80ADBD38(EnPoSisters* this, PlayState* play) { void func_80ADBD8C(EnPoSisters* this, PlayState* play) { this->unk_19A--; if (this->unk_19A == 0) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_PO_APPEAR); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_PO_APPEAR); this->unk_199 &= ~0x80; } if (this->unk_19A <= 0) { @@ -1100,7 +1100,7 @@ void func_80ADBF58(EnPoSisters* this, PlayState* play) { Math_StepToF(&this->actor.speedXZ, 5.0f, 0.2f); } if (this->unk_19A == -70 && this->unk_194 == 1) { - SoundSource_PlaySfxAtFixedWorldPos(play, &D_80ADD7BC, 40, NA_SE_EN_PO_LAUGH); + SfxSource_PlaySfxAtFixedWorldPos(play, &D_80ADD7BC, 40, NA_SE_EN_PO_LAUGH); } if (this->unk_19A < -120) { Actor_Kill(&this->actor); @@ -1137,7 +1137,7 @@ void func_80ADC10C(EnPoSisters* this, PlayState* play) { Actor_SetDropFlag(&this->actor, &this->collider.info, true); if (this->unk_195 != 0) { ((EnPoSisters*)this->actor.parent)->unk_19C--; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_PO_LAUGH2); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_PO_LAUGH2); func_80AD9C24(this, play); if (Rand_ZeroOne() < 0.2f) { sp24.x = this->actor.world.pos.x; @@ -1161,10 +1161,10 @@ void func_80ADC10C(EnPoSisters* this, PlayState* play) { } } else { if (Actor_ApplyDamage(&this->actor) != 0) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_PO_DAMAGE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_PO_DAMAGE); } else { Enemy_StartFinishingBlow(play, &this->actor); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_PO_SISTER_DEAD); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_PO_SISTER_DEAD); } func_80AD95D8(this); } diff --git a/src/overlays/actors/ovl_En_Poh/z_en_poh.c b/src/overlays/actors/ovl_En_Poh/z_en_poh.c index 29707a407f..dbcc878df0 100644 --- a/src/overlays/actors/ovl_En_Poh/z_en_poh.c +++ b/src/overlays/actors/ovl_En_Poh/z_en_poh.c @@ -283,7 +283,7 @@ void EnPoh_SetupAttack(EnPoh* this) { } this->unk_198 = 12; this->actor.speedXZ = 0.0f; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_PO_LAUGH); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_PO_LAUGH); this->actionFunc = EnPoh_Attack; } @@ -322,8 +322,8 @@ void EnPoh_SetupInitialAction(EnPoh* this) { } else { Animation_PlayOnceSetSpeed(&this->skelAnime, &gPoeComposerAppearAnim, 1.0f); this->actor.world.pos.y = this->actor.home.pos.y + 20.0f; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_PO_LAUGH); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_PO_APPEAR); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_PO_LAUGH); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_PO_APPEAR); this->actionFunc = EnPoh_ComposerAppear; } } @@ -354,16 +354,16 @@ void EnPoh_SetupDisappear(EnPoh* this) { this->unk_194 = 32; this->actor.speedXZ = 0.0f; this->actor.world.rot.y = this->actor.shape.rot.y; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_PO_DISAPPEAR); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_PO_LAUGH); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_PO_DISAPPEAR); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_PO_LAUGH); this->actionFunc = EnPoh_Disappear; } void EnPoh_SetupAppear(EnPoh* this) { this->unk_194 = 0; this->actor.speedXZ = 0.0f; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_PO_APPEAR); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_PO_LAUGH); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_PO_APPEAR); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_PO_LAUGH); this->actionFunc = EnPoh_Appear; } @@ -405,7 +405,7 @@ void func_80ADE6D4(EnPoh* this) { this->actor.scale.y = 0.0f; this->actor.shape.rot.x = 0; this->actor.home.pos.y = this->actor.world.pos.y; - Audio_PlayActorSound2(&this->actor, NA_SE_EV_METAL_BOX_BOUND); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_METAL_BOX_BOUND); this->actionFunc = func_80ADFE28; } @@ -442,7 +442,7 @@ void EnPoh_Talk(EnPoh* this, PlayState* play) { void func_80ADE950(EnPoh* this, s32 arg1) { if (arg1) { Audio_StopSfxByPosAndId(&this->actor.projectedPos, NA_SE_EN_PO_BIG_CRY - SFX_FLAG); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_PO_LAUGH); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_PO_LAUGH); } this->actionFunc = func_80AE009C; } @@ -546,7 +546,7 @@ void func_80ADEC9C(EnPoh* this, PlayState* play) { void EnPoh_Attack(EnPoh* this, PlayState* play) { SkelAnime_Update(&this->skelAnime); if (Animation_OnFrame(&this->skelAnime, 0.0f)) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_PO_KANTERA); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_PO_KANTERA); if (this->unk_198 != 0) { this->unk_198--; } @@ -584,7 +584,7 @@ void func_80ADEF38(EnPoh* this, PlayState* play) { this->lightColor.a = ((this->skelAnime.curFrame - 10.0f) * 0.05f) * 255.0f; } if (this->skelAnime.playSpeed < 0.5f && this->actor.xzDistToPlayer < 280.0f) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_PO_APPEAR); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_PO_APPEAR); this->skelAnime.playSpeed = 1.0f; } } @@ -632,7 +632,7 @@ void func_80ADF15C(EnPoh* this, PlayState* play) { EffectSsDeadDb_Spawn(play, &vec, &D_80AE1B60, &D_80AE1B6C, this->unk_198 * 10 + 80, 0, 255, 255, 255, 255, 0, 0, 255, 1, 9, 1); if (this->unk_198 == 1) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_EXTINCT); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_EXTINCT); } } else if (this->unk_198 == 28) { EnPoh_SetupDeath(this, play); @@ -644,7 +644,7 @@ void func_80ADF15C(EnPoh* this, PlayState* play) { this->actor.scale.x = newScale; } if (this->unk_198 == 18) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_PO_DEAD2); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_PO_DEAD2); } } @@ -817,14 +817,14 @@ void EnPoh_TalkRegular(EnPoh* this, PlayState* play) { if (Inventory_HasEmptyBottle()) { this->actor.textId = 0x5008; Item_Give(play, ITEM_POE); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_PO_BIG_GET); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_PO_BIG_GET); } else { this->actor.textId = 0x5006; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_PO_LAUGH); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_PO_LAUGH); } } else { this->actor.textId = 0x5007; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_PO_LAUGH); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_PO_LAUGH); } Message_ContinueTextbox(play, this->actor.textId); } @@ -867,9 +867,9 @@ void func_80AE032C(EnPoh* this, PlayState* play) { if (this->actor.colChkInfo.damageEffect != 0 || this->actor.colChkInfo.damage != 0) { if (Actor_ApplyDamage(&this->actor) == 0) { Enemy_StartFinishingBlow(play, &this->actor); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_PO_DEAD); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_PO_DEAD); } else { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_PO_DAMAGE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_PO_DAMAGE); } func_80ADE28C(this); } diff --git a/src/overlays/actors/ovl_En_Pu_box/z_en_pu_box.c b/src/overlays/actors/ovl_En_Pu_box/z_en_pu_box.c index bad8e26577..d1c0065f88 100644 --- a/src/overlays/actors/ovl_En_Pu_box/z_en_pu_box.c +++ b/src/overlays/actors/ovl_En_Pu_box/z_en_pu_box.c @@ -73,8 +73,8 @@ void EnPubox_Update(Actor* thisx, PlayState* play) { thisx->speedXZ = (thisx->speedXZ < -2.5f) ? -2.5f : ((thisx->speedXZ > 2.5f) ? 2.5f : thisx->speedXZ); Math_SmoothStepToF(&thisx->speedXZ, 0.0f, 1.0f, 1.0f, 0.0f); if (thisx->speedXZ != 0.0f) { - Audio_PlaySoundGeneral(NA_SE_EV_ROCK_SLIDE - SFX_FLAG, &thisx->projectedPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EV_ROCK_SLIDE - SFX_FLAG, &thisx->projectedPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } this->dyna.unk_154 = 0.0f; this->dyna.unk_150 = 0.0f; diff --git a/src/overlays/actors/ovl_En_Rd/z_en_rd.c b/src/overlays/actors/ovl_En_Rd/z_en_rd.c index 135d30722b..8e96625d4c 100644 --- a/src/overlays/actors/ovl_En_Rd/z_en_rd.c +++ b/src/overlays/actors/ovl_En_Rd/z_en_rd.c @@ -288,7 +288,7 @@ void EnRd_Idle(EnRd* this, PlayState* play) { } if ((play->gameplayFrames & 0x5F) == 0) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_REDEAD_CRY); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_REDEAD_CRY); } } @@ -313,7 +313,7 @@ void EnRd_RiseFromCoffin(EnRd* this, PlayState* play) { } } else { if (this->actor.world.pos.y == this->actor.home.pos.y) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_REDEAD_CRY); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_REDEAD_CRY); } if (Math_SmoothStepToF(&this->actor.world.pos.y, this->actor.home.pos.y + 50.0f, 0.3f, 2.0f, 0.3f) == 0.0f) { @@ -367,7 +367,7 @@ void EnRd_WalkToPlayer(EnRd* this, PlayState* play) { } this->playerStunWaitTimer = 60; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_REDEAD_AIM); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_REDEAD_AIM); } } else { EnRd_SetupWalkToHome(this, play); @@ -394,9 +394,9 @@ void EnRd_WalkToPlayer(EnRd* this, PlayState* play) { } if ((this->skelAnime.curFrame == 10.0f) || (this->skelAnime.curFrame == 22.0f)) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_RIZA_WALK); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_RIZA_WALK); } else if ((play->gameplayFrames & 0x5F) == 0) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_REDEAD_CRY); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_REDEAD_CRY); } } @@ -445,9 +445,9 @@ void EnRd_WalkToHome(EnRd* this, PlayState* play) { } if (this->skelAnime.curFrame == 10.0f || this->skelAnime.curFrame == 22.0f) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_RIZA_WALK); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_RIZA_WALK); } else if ((play->gameplayFrames & 0x5F) == 0) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_REDEAD_CRY); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_REDEAD_CRY); } } @@ -497,9 +497,9 @@ void EnRd_WalkToParent(EnRd* this, PlayState* play) { SkelAnime_Update(&this->skelAnime); if (this->skelAnime.curFrame == 10.0f || this->skelAnime.curFrame == 22.0f) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_RIZA_WALK); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_RIZA_WALK); } else if ((play->gameplayFrames & 0x5F) == 0) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_REDEAD_CRY); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_REDEAD_CRY); } } @@ -555,7 +555,7 @@ void EnRd_Grab(EnRd* this, PlayState* play) { Math_SmoothStepToS(&this->actor.shape.rot.y, player->actor.shape.rot.y, 1, 0x1770, 0); if (this->skelAnime.curFrame == 0.0f) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_REDEAD_ATTACK); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_REDEAD_ATTACK); } this->grabDamageTimer--; @@ -607,7 +607,7 @@ void EnRd_AttemptPlayerFreeze(EnRd* this, PlayState* play) { func_8008EEAC(play, &this->actor); } - Audio_PlayActorSound2(&this->actor, NA_SE_EN_REDEAD_AIM); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_REDEAD_AIM); EnRd_SetupWalkToPlayer(this, play); } } @@ -649,7 +649,7 @@ void EnRd_SetupDamaged(EnRd* this) { } this->actor.flags |= ACTOR_FLAG_0; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_REDEAD_DAMAGE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_REDEAD_DAMAGE); this->action = REDEAD_ACTION_DAMAGED; EnRd_SetupAction(this, EnRd_Damaged); } @@ -685,7 +685,7 @@ void EnRd_SetupDead(EnRd* this) { this->timer = 300; this->actor.flags &= ~ACTOR_FLAG_0; this->actor.speedXZ = 0.0f; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_REDEAD_DEAD); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_REDEAD_DEAD); EnRd_SetupAction(this, EnRd_Dead); } @@ -717,7 +717,7 @@ void EnRd_Dead(EnRd* this, PlayState* play) { this->timer--; } } else if (((s32)this->skelAnime.curFrame == 33) || ((s32)this->skelAnime.curFrame == 40)) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_RIZA_DOWN); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_RIZA_DOWN); } } @@ -728,12 +728,12 @@ void EnRd_SetupStunned(EnRd* this) { if (gSaveContext.sunsSongState != SUNSSONG_INACTIVE) { this->stunnedBySunsSong = true; this->sunsSongStunTimer = 600; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_LIGHT_ARROW_HIT); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_LIGHT_ARROW_HIT); Actor_SetColorFilter(&this->actor, -0x8000, -0x7F38, 0, 0xFF); } else if (this->damageEffect == REDEAD_DMGEFF_HOOKSHOT) { Actor_SetColorFilter(&this->actor, 0, 0xC8, 0, 0x50); } else { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_LIGHT_ARROW_HIT); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_LIGHT_ARROW_HIT); Actor_SetColorFilter(&this->actor, -0x8000, 0xC8, 0, 0x50); } diff --git a/src/overlays/actors/ovl_En_Reeba/z_en_reeba.c b/src/overlays/actors/ovl_En_Reeba/z_en_reeba.c index 2b21a2967e..f420cc1176 100644 --- a/src/overlays/actors/ovl_En_Reeba/z_en_reeba.c +++ b/src/overlays/actors/ovl_En_Reeba/z_en_reeba.c @@ -184,9 +184,9 @@ void func_80AE4F40(EnReeba* this, PlayState* play) { this->actor.world.pos.y = this->actor.floorHeight; if (this->isBig) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_RIVA_BIG_APPEAR); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_RIVA_BIG_APPEAR); } else { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_RIVA_APPEAR); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_RIVA_APPEAR); } this->actionfunc = func_80AE5054; @@ -260,7 +260,7 @@ void func_80AE5270(EnReeba* this, PlayState* play) { (this->actor.bgCheckFlags & BGCHECKFLAG_WALL)) { this->actionfunc = func_80AE5688; } else if (this->unk_274 == 0) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_RIVA_MOVE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_RIVA_MOVE); this->unk_274 = 10; } } @@ -307,7 +307,7 @@ void func_80AE53AC(EnReeba* this, PlayState* play) { this->actor.world.rot.y += yaw * 2.0f; if (this->unk_274 == 0) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_RIVA_MOVE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_RIVA_MOVE); this->unk_274 = 20; } } @@ -327,7 +327,7 @@ void func_80AE561C(EnReeba* this, PlayState* play) { void func_80AE5688(EnReeba* this, PlayState* play) { this->unk_27E = 0; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_AKINDONUTS_HIDE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_AKINDONUTS_HIDE); this->actor.flags |= ACTOR_FLAG_27; this->actor.flags &= ~(ACTOR_FLAG_0 | ACTOR_FLAG_2); this->actionfunc = func_80AE56E0; @@ -437,7 +437,7 @@ void func_80AE5A9C(EnReeba* this, PlayState* play) { EffectSsEnIce_SpawnFlyingVec3f(play, &this->actor, &pos, 150, 150, 150, 250, 235, 245, 255, scale); } } else { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_RIVA_DEAD); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_RIVA_DEAD); Enemy_StartFinishingBlow(play, &this->actor); this->actionfunc = func_80AE5C38; } @@ -527,7 +527,7 @@ void func_80AE5EDC(EnReeba* this, PlayState* play) { case 12: // boomerang if ((this->actor.colChkInfo.health > 1) && (this->unk_27E != 4)) { this->unk_27E = 4; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_GOMA_JR_FREEZE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_GOMA_JR_FREEZE); Actor_SetColorFilter(&this->actor, 0, 0xFF, 0, 0x50); this->actionfunc = func_80AE58EC; break; @@ -537,7 +537,7 @@ void func_80AE5EDC(EnReeba* this, PlayState* play) { if ((this->actor.colChkInfo.health > 2) && (this->unk_27E != 4)) { this->unk_27E = 4; Actor_SetColorFilter(&this->actor, 0, 0xFF, 0, 0x50); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_GOMA_JR_FREEZE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_GOMA_JR_FREEZE); this->actionfunc = func_80AE58EC; break; } @@ -546,14 +546,14 @@ void func_80AE5EDC(EnReeba* this, PlayState* play) { this->unk_27C = 6; Actor_ApplyDamage(&this->actor); if (this->actor.colChkInfo.health == 0) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_RIVA_DEAD); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_RIVA_DEAD); Enemy_StartFinishingBlow(play, &this->actor); this->actionfunc = func_80AE5BC4; } else { if (this->actionfunc == func_80AE5E48) { this->actor.shape.rot.x = this->actor.shape.rot.z = 0; } - Audio_PlayActorSound2(&this->actor, NA_SE_EN_RIVA_DAMAGE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_RIVA_DAMAGE); this->actionfunc = func_80AE57F0; } break; diff --git a/src/overlays/actors/ovl_En_River_Sound/z_en_river_sound.c b/src/overlays/actors/ovl_En_River_Sound/z_en_river_sound.c index 302e2f6d99..6224cd7e91 100644 --- a/src/overlays/actors/ovl_En_River_Sound/z_en_river_sound.c +++ b/src/overlays/actors/ovl_En_River_Sound/z_en_river_sound.c @@ -28,7 +28,7 @@ const ActorInit En_River_Sound_InitVars = { void EnRiverSound_Init(Actor* thisx, PlayState* play) { EnRiverSound* this = (EnRiverSound*)thisx; - this->playSound = false; + this->playSfx = false; this->pathIndex = (this->actor.params >> 8) & 0xFF; this->actor.params = this->actor.params & 0xFF; @@ -108,11 +108,11 @@ s32 EnRiverSound_FindClosestPointOnLineSegment(Vec3f* pointA, Vec3f* pointB, Vec } /** - * Writes the position along the river path to `soundPos` based on the `hearPos`, which is usually the position of the + * Writes the position along the river path to `sfxPos` based on the `hearPos`, which is usually the position of the * player. - * Returns true if the distance between the `hearPos` and `soundPos` is less than 10000, false if not. + * Returns true if the distance between the `hearPos` and `sfxPos` is less than 10000, false if not. */ -s32 EnRiverSound_GetSoundPos(Vec3s* points, s32 numPoints, Vec3f* hearPos, Vec3f* soundPos) { +s32 EnRiverSound_GetSfxPos(Vec3s* points, s32 numPoints, Vec3f* hearPos, Vec3f* sfxPos) { s32 i; s32 closestPointIdx; s32 useAdjacentPoints[2] = { @@ -169,23 +169,23 @@ s32 EnRiverSound_GetSoundPos(Vec3s* points, s32 numPoints, Vec3f* hearPos, Vec3f if (useAdjacentPoints[0] && useAdjacentPoints[1]) { if (!EnRiverSound_FindClosestPointOnLineSegment(&prevLineSegClosestPos, &nextLineSegClosestPos, hearPos, - soundPos)) { - soundPos->x = (prevLineSegClosestPos.x + nextLineSegClosestPos.x) * 0.5f; - soundPos->y = (prevLineSegClosestPos.y + nextLineSegClosestPos.y) * 0.5f; - soundPos->z = (prevLineSegClosestPos.z + nextLineSegClosestPos.z) * 0.5f; + sfxPos)) { + sfxPos->x = (prevLineSegClosestPos.x + nextLineSegClosestPos.x) * 0.5f; + sfxPos->y = (prevLineSegClosestPos.y + nextLineSegClosestPos.y) * 0.5f; + sfxPos->z = (prevLineSegClosestPos.z + nextLineSegClosestPos.z) * 0.5f; } } else if (useAdjacentPoints[0]) { - soundPos->x = prevLineSegClosestPos.x; - soundPos->y = prevLineSegClosestPos.y; - soundPos->z = prevLineSegClosestPos.z; + sfxPos->x = prevLineSegClosestPos.x; + sfxPos->y = prevLineSegClosestPos.y; + sfxPos->z = prevLineSegClosestPos.z; } else if (useAdjacentPoints[1]) { - soundPos->x = nextLineSegClosestPos.x; - soundPos->y = nextLineSegClosestPos.y; - soundPos->z = nextLineSegClosestPos.z; + sfxPos->x = nextLineSegClosestPos.x; + sfxPos->y = nextLineSegClosestPos.y; + sfxPos->z = nextLineSegClosestPos.z; } else { - soundPos->x = closestPointPos.x; - soundPos->y = closestPointPos.y; - soundPos->z = closestPointPos.z; + sfxPos->x = closestPointPos.x; + sfxPos->y = closestPointPos.y; + sfxPos->z = closestPointPos.z; } return true; @@ -203,26 +203,26 @@ void EnRiverSound_Update(Actor* thisx, PlayState* play) { path = &play->setupPathList[this->pathIndex]; pos = &thisx->world.pos; - if (EnRiverSound_GetSoundPos(SEGMENTED_TO_VIRTUAL(path->points), path->count, &player->actor.world.pos, pos)) { + if (EnRiverSound_GetSfxPos(SEGMENTED_TO_VIRTUAL(path->points), path->count, &player->actor.world.pos, pos)) { if (BgCheck_EntityRaycastFloor4(&play->colCtx, &thisx->floorPoly, &bgId, thisx, pos) != BGCHECK_Y_MIN) { // Get the river sfx frequency based on the speed of the river current under the actor - this->soundFreqIndex = SurfaceType_GetConveyorSpeed(&play->colCtx, thisx->floorPoly, bgId); + this->sfxFreqIndex = SurfaceType_GetConveyorSpeed(&play->colCtx, thisx->floorPoly, bgId); } else { - this->soundFreqIndex = 0; + this->sfxFreqIndex = 0; } - if (this->soundFreqIndex == 0) { + if (this->sfxFreqIndex == 0) { if (thisx->params == RS_RIVER_DEFAULT_MEDIUM_FREQ) { - this->soundFreqIndex = 0; + this->sfxFreqIndex = 0; } else if (thisx->params == RS_RIVER_DEFAULT_LOW_FREQ) { - this->soundFreqIndex = 1; + this->sfxFreqIndex = 1; } else { // RS_RIVER_DEFAULT_HIGH_FREQ - this->soundFreqIndex = 2; + this->sfxFreqIndex = 2; } } else { - this->soundFreqIndex--; - this->soundFreqIndex = CLAMP_MAX(this->soundFreqIndex, 2); + this->sfxFreqIndex--; + this->sfxFreqIndex = CLAMP_MAX(this->sfxFreqIndex, 2); } } } else if ((thisx->params == RS_GORON_CITY_SARIAS_SONG) || (thisx->params == RS_GREAT_FAIRY)) { @@ -257,15 +257,15 @@ void EnRiverSound_Draw(Actor* thisx, PlayState* play) { NA_SE_EV_TORCH - SFX_FLAG, NA_SE_EV_COW_CRY_LV - SFX_FLAG, }; - static f32 soundFreq[] = { 0.7f, 1.0f, 1.4f }; + static f32 sfxFreqs[] = { 0.7f, 1.0f, 1.4f }; EnRiverSound* this = (EnRiverSound*)thisx; - if (!(this->playSound)) { - this->playSound = true; + if (!(this->playSfx)) { + this->playSfx = true; } else if ((this->actor.params == RS_RIVER_DEFAULT_LOW_FREQ) || (this->actor.params == RS_RIVER_DEFAULT_MEDIUM_FREQ) || (this->actor.params == RS_RIVER_DEFAULT_HIGH_FREQ)) { - Audio_PlaySoundRiver(&this->actor.projectedPos, soundFreq[this->soundFreqIndex]); + Audio_PlaySfxRiver(&this->actor.projectedPos, sfxFreqs[this->sfxFreqIndex]); } else if (this->actor.params == RS_LOWER_MAIN_BGM_VOLUME) { // Responsible for lowering market bgm in Child Market Entrance and Child Market Back Alley // Lower volume from default 127 to a volume of 90 @@ -288,6 +288,6 @@ void EnRiverSound_Draw(Actor* thisx, PlayState* play) { func_800788CC(soundEffects[this->actor.params]); } else { // Play sfx at the location of riverSounds projected position - Audio_PlayActorSound2(&this->actor, soundEffects[this->actor.params]); + Audio_PlayActorSfx2(&this->actor, soundEffects[this->actor.params]); } } diff --git a/src/overlays/actors/ovl_En_River_Sound/z_en_river_sound.h b/src/overlays/actors/ovl_En_River_Sound/z_en_river_sound.h index 2af5ab9ac8..be6d04e65e 100644 --- a/src/overlays/actors/ovl_En_River_Sound/z_en_river_sound.h +++ b/src/overlays/actors/ovl_En_River_Sound/z_en_river_sound.h @@ -8,8 +8,8 @@ struct EnRiverSound; typedef struct EnRiverSound { /* 0x0000 */ Actor actor; - /* 0x014C */ u8 playSound; - /* 0x014D */ u8 soundFreqIndex; + /* 0x014C */ u8 playSfx; + /* 0x014D */ u8 sfxFreqIndex; /* 0x014E */ s16 pathIndex; } EnRiverSound; // size = 0x0150 diff --git a/src/overlays/actors/ovl_En_Rr/z_en_rr.c b/src/overlays/actors/ovl_En_Rr/z_en_rr.c index 5a5b187814..8f888b887a 100644 --- a/src/overlays/actors/ovl_En_Rr/z_en_rr.c +++ b/src/overlays/actors/ovl_En_Rr/z_en_rr.c @@ -207,7 +207,7 @@ void EnRr_Destroy(Actor* thisx, PlayState* play) { void EnRr_SetSpeed(EnRr* this, f32 speed) { this->actor.speedXZ = speed; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_LIKE_WALK); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_LIKE_WALK); } void EnRr_SetupReach(EnRr* this) { @@ -225,7 +225,7 @@ void EnRr_SetupReach(EnRr* this) { this->bodySegs[i].rotTarget.z = 0.0f; } this->actionFunc = EnRr_Reach; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_LIKE_UNARI); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_LIKE_UNARI); } void EnRr_SetupNeutral(EnRr* this) { @@ -266,7 +266,7 @@ void EnRr_SetupGrabPlayer(EnRr* this, Player* player) { this->bodySegs[i].scaleTarget.x = this->bodySegs[i].scaleTarget.z = 1.0f; } this->actionFunc = EnRr_GrabPlayer; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_LIKE_DRINK); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_LIKE_DRINK); } u8 EnRr_GetMessage(u8 shield, u8 tunic) { @@ -325,7 +325,7 @@ void EnRr_SetupReleasePlayer(EnRr* this, PlayState* play) { func_8002F6D4(play, &this->actor, 4.0f, this->actor.shape.rot.y, 12.0f, 8); if (this->actor.colorFilterTimer == 0) { this->actionFunc = EnRr_Approach; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_LIKE_THROW); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_LIKE_THROW); } else if (this->actor.colChkInfo.health != 0) { EnRr_SetupDamage(this); } else { @@ -348,7 +348,7 @@ void EnRr_SetupDamage(EnRr* this) { this->bodySegs[i].scaleTarget.x = this->bodySegs[i].scaleTarget.z = 1.0f; } this->actionFunc = EnRr_Damage; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_LIKE_DAMAGE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_LIKE_DAMAGE); } void EnRr_SetupApproach(EnRr* this) { @@ -378,7 +378,7 @@ void EnRr_SetupDeath(EnRr* this) { this->bodySegs[i].rotTarget.x = this->bodySegs[i].rotTarget.z = 0.0f; } this->actionFunc = EnRr_Death; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_LIKE_DEAD); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_LIKE_DEAD); this->actor.flags &= ~ACTOR_FLAG_0; } @@ -492,7 +492,7 @@ void EnRr_CollisionCheck(EnRr* this, PlayState* play) { EnRr_SetupStunned(this); return; case RR_DMG_STUN: // Boomerang and Hookshot - Audio_PlayActorSound2(&this->actor, NA_SE_EN_GOMA_JR_FREEZE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_GOMA_JR_FREEZE); Actor_SetColorFilter(&this->actor, 0, 0xFF, 0x2000, 0x50); EnRr_SetupStunned(this); return; @@ -624,7 +624,7 @@ void EnRr_GrabPlayer(EnRr* this, PlayState* play) { func_800AA000(this->actor.xyzDistToPlayerSq, 120, 2, 120); if ((this->frameCount % 8) == 0) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_LIKE_EAT); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_LIKE_EAT); } this->ocTimer = 8; if ((this->grabTimer == 0) || !(player->stateFlags2 & PLAYER_STATE2_7)) { diff --git a/src/overlays/actors/ovl_En_Ru1/z_en_ru1.c b/src/overlays/actors/ovl_En_Ru1/z_en_ru1.c index d5d10dbdb2..ea2119ba38 100644 --- a/src/overlays/actors/ovl_En_Ru1/z_en_ru1.c +++ b/src/overlays/actors/ovl_En_Ru1/z_en_ru1.c @@ -592,8 +592,8 @@ void func_80AEBC30(PlayState* play) { if (play->csCtx.frames == 0xCD) { player = GET_PLAYER(play); - Audio_PlaySoundGeneral(NA_SE_EV_DIVE_INTO_WATER, &player->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EV_DIVE_INTO_WATER, &player->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } } @@ -1197,8 +1197,8 @@ void func_80AED4FC(EnRu1* this) { void func_80AED520(EnRu1* this, PlayState* play) { Player* player = GET_PLAYER(play); - Audio_PlaySoundGeneral(NA_SE_PL_PULL_UP_RUTO, &player->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_PL_PULL_UP_RUTO, &player->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); func_80078914(&this->actor.projectedPos, NA_SE_VO_RT_LIFT); } @@ -1904,7 +1904,7 @@ void func_80AEF40C(EnRu1* this) { } void func_80AEF4A8(EnRu1* this, PlayState* play) { - SoundSource_PlaySfxAtFixedWorldPos(play, &this->actor.projectedPos, 20, NA_SE_VO_RT_FALL); + SfxSource_PlaySfxAtFixedWorldPos(play, &this->actor.projectedPos, 20, NA_SE_VO_RT_FALL); } void func_80AEF4E0(EnRu1* this) { diff --git a/src/overlays/actors/ovl_En_Sa/z_en_sa.c b/src/overlays/actors/ovl_En_Sa/z_en_sa.c index 0fb7c78355..ddb87a377c 100644 --- a/src/overlays/actors/ovl_En_Sa/z_en_sa.c +++ b/src/overlays/actors/ovl_En_Sa/z_en_sa.c @@ -675,8 +675,8 @@ void func_80AF68E4(EnSa* this, PlayState* play) { phi_v0 = this->unk_20C; } if (phi_v0 == 0) { - Audio_PlaySoundGeneral(NA_SE_PL_WALK_GROUND, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_PL_WALK_GROUND, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); this->unk_20C = 8; } } diff --git a/src/overlays/actors/ovl_En_Sb/z_en_sb.c b/src/overlays/actors/ovl_En_Sb/z_en_sb.c index ba1d0e5b1c..640702829c 100644 --- a/src/overlays/actors/ovl_En_Sb/z_en_sb.c +++ b/src/overlays/actors/ovl_En_Sb/z_en_sb.c @@ -154,7 +154,7 @@ void EnSb_SetupOpen(EnSb* this) { ANIMMODE_ONCE, 0.0f); this->behavior = SHELLBLADE_OPEN; this->actionFunc = EnSb_Open; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_SHELL_MOUTH); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_SHELL_MOUTH); } void EnSb_SetupWaitOpen(EnSb* this) { @@ -171,7 +171,7 @@ void EnSb_SetupLunge(EnSb* this) { Animation_Change(&this->skelAnime, &object_sb_Anim_000124, playbackSpeed, 0.0f, frameCount, ANIMMODE_ONCE, 0); this->behavior = SHELLBLADE_LUNGE; this->actionFunc = EnSb_Lunge; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_SHELL_MOUTH); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_SHELL_MOUTH); } void EnSb_SetupBounce(EnSb* this) { @@ -275,7 +275,7 @@ void EnSb_Lunge(EnSb* this, PlayState* play) { Math_StepToF(&this->actor.speedXZ, 0.0f, 0.2f); if ((this->actor.velocity.y <= -0.1f) || (this->actor.bgCheckFlags & BGCHECKFLAG_GROUND_TOUCH)) { if (!(this->actor.yDistToWater > 0.0f)) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_DODO_M_GND); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_DODO_M_GND); } this->actor.bgCheckFlags &= ~BGCHECKFLAG_GROUND_TOUCH; EnSb_SetupBounce(this); @@ -424,11 +424,11 @@ s32 EnSb_UpdateDamage(EnSb* this, PlayState* play) { BodyBreak_Alloc(&this->bodyBreak, 8, play); this->isDead = true; Enemy_StartFinishingBlow(play, &this->actor); - SoundSource_PlaySfxAtFixedWorldPos(play, &this->actor.world.pos, 40, NA_SE_EN_SHELL_DEAD); + SfxSource_PlaySfxAtFixedWorldPos(play, &this->actor.world.pos, 40, NA_SE_EN_SHELL_DEAD); return 1; } - // if player attack didn't do damage, play recoil sound and spawn sparks + // if player attack didn't do damage, play recoil sound effect and spawn sparks if (!tookDamage) { hitPoint.x = this->collider.info.bumper.hitPos.x; hitPoint.y = this->collider.info.bumper.hitPos.y; diff --git a/src/overlays/actors/ovl_En_Shopnuts/z_en_shopnuts.c b/src/overlays/actors/ovl_En_Shopnuts/z_en_shopnuts.c index 5431729ece..253618e84b 100644 --- a/src/overlays/actors/ovl_En_Shopnuts/z_en_shopnuts.c +++ b/src/overlays/actors/ovl_En_Shopnuts/z_en_shopnuts.c @@ -114,13 +114,13 @@ void EnShopnuts_SetupStand(EnShopnuts* this) { void EnShopnuts_SetupBurrow(EnShopnuts* this) { Animation_MorphToPlayOnce(&this->skelAnime, &gBusinessScrubAnim_39C, -5.0f); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_NUTS_DOWN); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_NUTS_DOWN); this->actionFunc = EnShopnuts_Burrow; } void EnShopnuts_SetupSpawnSalesman(EnShopnuts* this) { Animation_MorphToPlayOnce(&this->skelAnime, &gBusinessScrubRotateAnim, -3.0f); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_NUTS_DAMAGE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_NUTS_DAMAGE); this->collider.base.acFlags &= ~AC_ON; this->actionFunc = EnShopnuts_SpawnSalesman; } @@ -137,7 +137,7 @@ void EnShopnuts_Wait(EnShopnuts* this, PlayState* play) { if (Animation_OnFrame(&this->skelAnime, 9.0f)) { this->collider.base.acFlags |= AC_ON; } else if (Animation_OnFrame(&this->skelAnime, 8.0f)) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_NUTS_UP); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_NUTS_UP); } this->collider.dim.height = ((CLAMP(this->skelAnime.curFrame, 9.0f, 13.0f) - 9.0f) * 9.0f) + 5.0f; @@ -198,7 +198,7 @@ void EnShopnuts_ThrowNut(EnShopnuts* this, PlayState* play) { spawnPos.z = this->actor.world.pos.z + (Math_CosS(this->actor.shape.rot.y) * 23.0f); if (Actor_Spawn(&play->actorCtx, play, ACTOR_EN_NUTSBALL, spawnPos.x, spawnPos.y, spawnPos.z, this->actor.shape.rot.x, this->actor.shape.rot.y, this->actor.shape.rot.z, 2) != NULL) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_NUTS_THROW); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_NUTS_THROW); } } } diff --git a/src/overlays/actors/ovl_En_Skb/z_en_skb.c b/src/overlays/actors/ovl_En_Skb/z_en_skb.c index db31790466..daf85fa86f 100644 --- a/src/overlays/actors/ovl_En_Skb/z_en_skb.c +++ b/src/overlays/actors/ovl_En_Skb/z_en_skb.c @@ -215,7 +215,7 @@ void EnSkb_SetupRiseFromGround(EnSkb* this) { Animation_PlayOnceSetSpeed(&this->skelAnime, &gStalchildUncurlingAnim, 1.0f); this->actionState = SKB_BEHAVIOR_BURIED; this->actor.flags &= ~ACTOR_FLAG_0; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_RIVA_APPEAR); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_RIVA_APPEAR); EnSkb_SetupAction(this, EnSkb_RiseFromGround); } @@ -243,7 +243,7 @@ void EnSkb_SetupDespawn(EnSkb* this) { this->setColliderAT = false; this->actor.flags &= ~ACTOR_FLAG_0; this->actor.speedXZ = 0.0f; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_AKINDONUTS_HIDE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_AKINDONUTS_HIDE); EnSkb_SetupAction(this, EnSkb_Despawn); } @@ -295,7 +295,7 @@ void EnSkb_WalkForward(EnSkb* this, PlayState* play) { if (((prevKeyFrame < 9) && (((s32)playSpeed + thisKeyFrame) >= 8)) || !((prevKeyFrame >= 16) || (((s32)playSpeed + thisKeyFrame) < 15))) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_STALKID_WALK); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_STALKID_WALK); } } if (Math_Vec3f_DistXZ(&this->actor.home.pos, &player->actor.world.pos) > 800.0f || IS_DAY) { @@ -320,7 +320,7 @@ void EnSkb_Attack(EnSkb* this, PlayState* play) { frameData = this->skelAnime.curFrame; if (frameData == 3) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_STALKID_ATTACK); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_STALKID_ATTACK); this->setColliderAT = true; } else if (frameData == 6) { this->setColliderAT = false; @@ -352,7 +352,7 @@ void EnSkb_SetupStunned(EnSkb* this) { if (this->actor.bgCheckFlags & BGCHECKFLAG_GROUND) { this->actor.speedXZ = 0.0f; } - Audio_PlayActorSound2(&this->actor, NA_SE_EN_GOMA_JR_FREEZE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_GOMA_JR_FREEZE); this->setColliderAT = false; this->actionState = SKB_BEHAVIOR_STUNNED; EnSkb_SetupAction(this, EnSkb_Stunned); @@ -382,7 +382,7 @@ void EnSkb_SetupTakeDamage(EnSkb* this) { this->actor.speedXZ = -4.0f; } this->actor.world.rot.y = this->actor.yawTowardsPlayer; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_STALKID_DAMAGE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_STALKID_DAMAGE); this->actionState = SKB_BEHAVIOR_DAMAGED; EnSkb_SetupAction(this, EnSkb_TakeDamage); } diff --git a/src/overlays/actors/ovl_En_Ssh/z_en_ssh.c b/src/overlays/actors/ovl_En_Ssh/z_en_ssh.c index 6faf9661fe..f65ec30a45 100644 --- a/src/overlays/actors/ovl_En_Ssh/z_en_ssh.c +++ b/src/overlays/actors/ovl_En_Ssh/z_en_ssh.c @@ -238,7 +238,7 @@ void EnSsh_SetWaitAnimation(EnSsh* this) { } void EnSsh_SetReturnAnimation(EnSsh* this) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_STALTU_UP); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_STALTU_UP); EnSsh_SetAnimation(this, SSH_ANIM_UP); } @@ -303,8 +303,8 @@ s32 EnSsh_Damaged(EnSsh* this) { if (this->swayTimer == 0) { this->spinTimer = 30; } - Audio_PlayActorSound2(&this->actor, NA_SE_EN_STALTU_ROLL); - Audio_PlayActorSound2(&this->actor, NA_SE_VO_ST_ATTACK); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_STALTU_ROLL); + Audio_PlayActorSfx2(&this->actor, NA_SE_VO_ST_ATTACK); return true; } } @@ -468,8 +468,8 @@ s32 EnSsh_CheckHitPlayer(EnSsh* this, PlayState* play) { if (this->swayTimer == 0) { this->spinTimer = this->hitTimer; } - Audio_PlayActorSound2(&this->actor, NA_SE_EN_STALTU_ROLL); - Audio_PlayActorSound2(&this->actor, NA_SE_VO_ST_ATTACK); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_STALTU_ROLL); + Audio_PlayActorSfx2(&this->actor, NA_SE_VO_ST_ATTACK); play->damagePlayer(play, -8); func_8002F71C(play, &this->actor, 4.0f, this->actor.yawTowardsPlayer, 6.0f); this->hitCount--; @@ -515,8 +515,8 @@ s32 EnSsh_CheckHitBack(EnSsh* this, PlayState* play) { this->hitCount++; } if (this->stunTimer == 0) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_GOMA_JR_FREEZE); - Audio_PlayActorSound2(&this->actor, NA_SE_VO_ST_DAMAGE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_GOMA_JR_FREEZE); + Audio_PlayActorSfx2(&this->actor, NA_SE_VO_ST_DAMAGE); } EnSsh_SetStunned(this); this->stateFlags |= SSH_STATE_STUNNED; @@ -532,8 +532,8 @@ s32 EnSsh_CollisionCheck(EnSsh* this, PlayState* play) { } else if (play->actorCtx.unk_02 != 0) { this->invincibilityTimer = 8; if (this->stunTimer == 0) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_GOMA_JR_FREEZE); - Audio_PlayActorSound2(&this->actor, NA_SE_VO_ST_DAMAGE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_GOMA_JR_FREEZE); + Audio_PlayActorSfx2(&this->actor, NA_SE_VO_ST_DAMAGE); } EnSsh_SetStunned(this); this->stateFlags |= SSH_STATE_STUNNED; @@ -689,7 +689,7 @@ void EnSsh_Idle(EnSsh* this, PlayState* play) { EnSsh_SetupAction(this, EnSsh_Return); } else { if (DECR(this->sfxTimer) == 0) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_STALTU_LAUGH); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_STALTU_LAUGH); this->sfxTimer = 64; } EnSsh_Bob(this, play); @@ -748,7 +748,7 @@ void EnSsh_Drop(EnSsh* this, PlayState* play) { EnSsh_SetLandAnimation(this); EnSsh_SetupAction(this, EnSsh_Land); } else if (DECR(this->sfxTimer) == 0) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_STALTU_DOWN); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_STALTU_DOWN); this->sfxTimer = 3; } } diff --git a/src/overlays/actors/ovl_En_St/z_en_st.c b/src/overlays/actors/ovl_En_St/z_en_st.c index e0d654cc03..68951a0996 100644 --- a/src/overlays/actors/ovl_En_St/z_en_st.c +++ b/src/overlays/actors/ovl_En_St/z_en_st.c @@ -249,7 +249,7 @@ void EnSt_SetWaitingAnimation(EnSt* this) { } void EnSt_SetReturnToCeilingAnimation(EnSt* this) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_STALTU_UP); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_STALTU_UP); Animation_ChangeByInfo(&this->skelAnime, sAnimationInfo, ENST_ANIM_2); } @@ -398,12 +398,12 @@ s32 EnSt_CheckHitLink(EnSt* this, PlayState* play) { } if (this->swayTimer == 0) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_STALTU_ROLL); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_STALTU_ROLL); } this->gaveDamageSpinTimer = 30; play->damagePlayer(play, -8); - Audio_PlayActorSound2(&player->actor, NA_SE_PL_BODY_HIT); + Audio_PlayActorSfx2(&player->actor, NA_SE_PL_BODY_HIT); func_8002F71C(play, &this->actor, 4.0f, this->actor.yawTowardsPlayer, 6.0f); return true; } @@ -448,7 +448,7 @@ s32 EnSt_CheckHitBackside(EnSt* this, PlayState* play) { this->invulnerableTimer = 8; if (this->actor.colChkInfo.damageEffect == 1) { if (this->stunTimer == 0) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_GOMA_JR_FREEZE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_GOMA_JR_FREEZE); this->stunTimer = 120; Actor_SetColorFilter(&this->actor, 0, 0xC8, 0, this->stunTimer); } @@ -461,7 +461,7 @@ s32 EnSt_CheckHitBackside(EnSt* this, PlayState* play) { this->takeDamageSpinTimer = this->skelAnime.animLength; Actor_SetColorFilter(&this->actor, 0x4000, 0xC8, 0, this->takeDamageSpinTimer); if (Actor_ApplyDamage(&this->actor)) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_STALTU_DAMAGE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_STALTU_DAMAGE); return false; } Enemy_StartFinishingBlow(play, &this->actor); @@ -469,7 +469,7 @@ s32 EnSt_CheckHitBackside(EnSt* this, PlayState* play) { this->groundBounces = 3; this->deathTimer = 20; this->actor.gravity = -1.0f; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_STALWALL_DEAD); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_STALWALL_DEAD); if (flags & DMG_ARROW) { EnSt_SetupAction(this, EnSt_Die); @@ -606,14 +606,14 @@ void EnSt_UpdateYaw(EnSt* this, PlayState* play) { // turn away from the player this->rotAwayTimer--; if (this->rotAwayTimer == 0) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_STALTU_ROLL); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_STALTU_ROLL); this->rotTowardsTimer = 30; } } else if (this->rotTowardsTimer != 0) { // turn towards the player this->rotTowardsTimer--; if (this->rotTowardsTimer == 0) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_STALTU_ROLL); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_STALTU_ROLL); this->rotAwayTimer = 30; } yawDir = 0x8000; @@ -663,7 +663,7 @@ s32 EnSt_IsDoneBouncing(EnSt* this, PlayState* play) { return false; } - Audio_PlayActorSound2(&this->actor, NA_SE_EN_DODO_M_GND); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_DODO_M_GND); EnSt_SpawnDust(this, play, 10); // creates an elastic bouncing effect, boucing up less for each hit on the ground. this->actor.velocity.y = 6.0f / (4 - this->groundBounces); @@ -755,7 +755,7 @@ void EnSt_Sway(EnSt* this) { rotAngle = Math_SinS(this->swayAngle) * (swayAmt * (65536.0f / 360.0f)); if (this->absPrevSwayAngle >= ABS(rotAngle) && this->playSwayFlag == 0) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_STALTU_WAVE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_STALTU_WAVE); this->playSwayFlag = 1; } @@ -852,7 +852,7 @@ void EnSt_WaitOnGround(EnSt* this, PlayState* play) { if (DECR(this->sfxTimer) == 0) { // play the "laugh" sfx every 64 frames. - Audio_PlayActorSound2(&this->actor, NA_SE_EN_STALTU_LAUGH); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_STALTU_LAUGH); this->sfxTimer = 64; } @@ -878,7 +878,7 @@ void EnSt_LandOnGround(EnSt* this, PlayState* play) { this->sfxTimer++; if (this->sfxTimer == 14) { // play the sound effect of the Skulltula hitting the ground. - Audio_PlayActorSound2(&this->actor, NA_SE_EN_STALTU_DOWN_SET); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_STALTU_DOWN_SET); } if ((this->actor.floorHeight + this->floorHeightOffset) < this->actor.world.pos.y) { @@ -908,7 +908,7 @@ void EnSt_MoveToGround(EnSt* this, PlayState* play) { EnSt_SetLandAnimation(this); EnSt_SetupAction(this, EnSt_LandOnGround); } else if (DECR(this->sfxTimer) == 0) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_STALTU_DOWN); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_STALTU_DOWN); this->sfxTimer = 3; } } diff --git a/src/overlays/actors/ovl_En_Sw/z_en_sw.c b/src/overlays/actors/ovl_En_Sw/z_en_sw.c index a55498d3a1..786b2e5d37 100644 --- a/src/overlays/actors/ovl_En_Sw/z_en_sw.c +++ b/src/overlays/actors/ovl_En_Sw/z_en_sw.c @@ -266,8 +266,8 @@ void EnSw_Init(Actor* thisx, PlayState* play) { } if (((thisx->params & 0xE000) >> 0xD) >= 3) { - Audio_PlaySoundGeneral(NA_SE_SY_CORRECT_CHIME, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_CORRECT_CHIME, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } switch ((thisx->params & 0xE000) >> 0xD) { @@ -331,7 +331,7 @@ s32 func_80B0C9F0(EnSw* this, PlayState* play) { this->unk_392 = 0x10; Actor_SetColorFilter(&this->actor, 0x4000, 0xC8, 0, this->unk_392); if (Actor_ApplyDamage(&this->actor) != 0) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_STALTU_DAMAGE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_STALTU_DAMAGE); return true; } Enemy_StartFinishingBlow(play, &this->actor); @@ -356,7 +356,7 @@ s32 func_80B0C9F0(EnSw* this, PlayState* play) { this->actionFunc = func_80B0DB00; } - Audio_PlayActorSound2(&this->actor, NA_SE_EN_STALWALL_DEAD); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_STALWALL_DEAD); return true; } } @@ -437,8 +437,8 @@ void func_80B0CEA8(EnSw* this, PlayState* play) { Camera* activeCam = GET_ACTIVE_CAM(play); if (!(Math_Vec3f_DistXYZ(&this->actor.world.pos, &activeCam->eye) >= 380.0f)) { - Audio_PlayActorSound2(&this->actor, ((this->actor.params & 0xE000) >> 0xD) > 0 ? NA_SE_EN_STALGOLD_ROLL - : NA_SE_EN_STALWALL_ROLL); + Audio_PlayActorSfx2(&this->actor, ((this->actor.params & 0xE000) >> 0xD) > 0 ? NA_SE_EN_STALGOLD_ROLL + : NA_SE_EN_STALWALL_ROLL); } } } @@ -498,8 +498,8 @@ void func_80B0D3AC(EnSw* this, PlayState* play) { } this->unk_38C--; if (this->unk_38C == 0) { - SoundSource_PlaySfxAtFixedWorldPos(play, &this->actor.world.pos, 40, NA_SE_EN_STALGOLD_UP_CRY); - SoundSource_PlaySfxAtFixedWorldPos(play, &this->actor.world.pos, 40, NA_SE_EN_DODO_M_UP); + SfxSource_PlaySfxAtFixedWorldPos(play, &this->actor.world.pos, 40, NA_SE_EN_STALGOLD_UP_CRY); + SfxSource_PlaySfxAtFixedWorldPos(play, &this->actor.world.pos, 40, NA_SE_EN_DODO_M_UP); } else { return; } @@ -521,7 +521,7 @@ void func_80B0D3AC(EnSw* this, PlayState* play) { } if (func_80B0C0CC(this, play, 1) == 1) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_DODO_M_GND); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_DODO_M_GND); func_80B0D14C(this, play, 8); this->actor.scale.x = 0.02f; Actor_SetScale(&this->actor, 0.02f); @@ -612,8 +612,8 @@ void func_80B0D878(EnSw* this, PlayState* play) { this->actor.shape.rot = this->actor.world.rot; if ((this->unk_394 == 0) && (this->unk_392 == 0)) { - Audio_PlaySoundGeneral(NA_SE_SY_KINSTA_MARK_APPEAR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_KINSTA_MARK_APPEAR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); x = (this->unk_364.x * 10.0f); y = (this->unk_364.y * 10.0f); z = (this->unk_364.z * 10.0f); @@ -657,7 +657,7 @@ void func_80B0DB00(EnSw* this, PlayState* play) { this->actor.velocity.y = ((this->unk_38A--) * 8.0f) * 0.5f; } - Audio_PlayActorSound2(&this->actor, NA_SE_EN_DODO_M_GND); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_DODO_M_GND); Actor_SpawnFloorDustRing(play, &this->actor, &this->actor.world.pos, 16.0f, 12, 2.0f, 120, 10, false); } } @@ -801,7 +801,7 @@ s32 func_80B0E430(EnSw* this, f32 arg1, s16 arg2, s32 arg3, PlayState* play) { if (Math_Vec3f_DistXYZ(&this->actor.world.pos, &activeCam->eye) < 380.0f) { if (DECR(this->unk_440) == 0) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_STALWALL_ROLL); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_STALWALL_ROLL); this->unk_440 = 4; } } else { @@ -827,7 +827,7 @@ void func_80B0E5E0(EnSw* this, PlayState* play) { } if ((DECR(this->unk_442) == 0) && (func_80B0DEA8(this, play, 1))) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_STALWALL_LAUGH); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_STALWALL_LAUGH); this->unk_442 = 20; this->actionFunc = func_80B0E728; } @@ -856,7 +856,7 @@ void func_80B0E728(EnSw* this, PlayState* play) { func_80B0E314(this, this->unk_448, 8.0f); if (DECR(this->unk_440) == 0) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_STALWALL_DASH); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_STALWALL_DASH); this->unk_440 = 4; } diff --git a/src/overlays/actors/ovl_En_Syateki_Niw/z_en_syateki_niw.c b/src/overlays/actors/ovl_En_Syateki_Niw/z_en_syateki_niw.c index 857c51810f..7f9765c67b 100644 --- a/src/overlays/actors/ovl_En_Syateki_Niw/z_en_syateki_niw.c +++ b/src/overlays/actors/ovl_En_Syateki_Niw/z_en_syateki_niw.c @@ -437,7 +437,7 @@ void func_80B12460(EnSyatekiNiw* this, PlayState* play) { this->unk_27C = 0.0f; this->unk_280 = 14000.0f; this->unk_278 = 14000.0f; - Audio_PlayActorSound2(&this->actor, NA_SE_EV_CHICKEN_CRY_M); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_CHICKEN_CRY_M); this->unk_254 = this->unk_256 = this->unk_25A = 0x1E; this->unk_29A = 5; } @@ -453,8 +453,8 @@ void func_80B12460(EnSyatekiNiw* this, PlayState* play) { } if ((this->unk_25A == 0) && ((player->actor.world.pos.z - 30.0f) < this->actor.world.pos.z)) { - Audio_PlaySoundGeneral(NA_SE_VO_LI_DOWN, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_VO_LI_DOWN, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); this->unk_25E = 0x14; this->unk_29A = 6; this->actor.speedXZ = 0.0f; @@ -549,7 +549,7 @@ void func_80B12BA4(EnSyatekiNiw* this, PlayState* play) { case 0: if (this->unk_29C == 0) { this->unk_262 = 0x1E; - Audio_PlayActorSound2(&this->actor, NA_SE_EV_CHICKEN_CRY_A); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_CHICKEN_CRY_A); this->unk_29C = 1; this->unk_2A0 = 1; this->actionFunc = func_80B123A8; @@ -560,7 +560,7 @@ void func_80B12BA4(EnSyatekiNiw* this, PlayState* play) { case 1: this->unk_262 = 0x1E; this->unk_2F8 = 1; - Audio_PlayActorSound2(&this->actor, NA_SE_EV_CHICKEN_CRY_A); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_CHICKEN_CRY_A); this->unk_260 = 100; this->unk_2A0 = 1; this->unk_25E = this->unk_260; @@ -642,10 +642,10 @@ void EnSyatekiNiw_Update(Actor* thisx, PlayState* play) { if (this->unk_262 == 0) { if (this->actionFunc == func_80B11E78) { this->unk_262 = 0x12C; - Audio_PlayActorSound2(&this->actor, NA_SE_EV_CHICKEN_CRY_N); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_CHICKEN_CRY_N); } else { this->unk_262 = 0x1E; - Audio_PlayActorSound2(&this->actor, NA_SE_EV_CHICKEN_CRY_A); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_CHICKEN_CRY_A); } } diff --git a/src/overlays/actors/ovl_En_Ta/z_en_ta.c b/src/overlays/actors/ovl_En_Ta/z_en_ta.c index 7228c96bbf..2db4bd704a 100644 --- a/src/overlays/actors/ovl_En_Ta/z_en_ta.c +++ b/src/overlays/actors/ovl_En_Ta/z_en_ta.c @@ -312,7 +312,7 @@ void func_80B14570(EnTa* this, PlayState* play) { this->unk_2CC = 60; Animation_PlayOnce(&this->skelAnime, &gTalonWakeUpAnim); this->currentAnimation = &gTalonStandAnim; - Audio_PlayActorSound2(&this->actor, NA_SE_VO_TA_SURPRISE); + Audio_PlayActorSfx2(&this->actor, NA_SE_VO_TA_SURPRISE); } } @@ -384,7 +384,7 @@ void func_80B14818(EnTa* this, PlayState* play) { s32 framesMod12 = (s32)play->state.frames % 12; if (framesMod12 == 0 || framesMod12 == 6) { - Audio_PlayActorSound2(&this->actor, NA_SE_PL_WALK_GROUND); + Audio_PlayActorSfx2(&this->actor, NA_SE_PL_WALK_GROUND); } if (this->actor.speedXZ < 6.0f) { this->actor.speedXZ += 0.4f; @@ -449,7 +449,7 @@ void func_80B14AF4(EnTa* this, PlayState* play) { this->actor.shape.rot.y -= 0xC00; if (this->unk_2CC == 0) { - Audio_PlayActorSound2(&this->actor, NA_SE_VO_TA_CRY_1); + Audio_PlayActorSfx2(&this->actor, NA_SE_VO_TA_CRY_1); func_80B13AA0(this, func_80B14A54, func_80B167C0); this->unk_2CC = 65; this->actor.flags |= ACTOR_FLAG_4; @@ -714,11 +714,11 @@ void func_80B154FC(EnTa* this, PlayState* play) { return; case 2: this->actor.textId = 0x2083; - Audio_PlayActorSound2(&this->actor, NA_SE_VO_TA_CRY_1); + Audio_PlayActorSfx2(&this->actor, NA_SE_VO_TA_CRY_1); break; case 3: this->actor.textId = 0x2082; - Audio_PlayActorSound2(&this->actor, NA_SE_VO_TA_SURPRISE); + Audio_PlayActorSfx2(&this->actor, NA_SE_VO_TA_SURPRISE); break; } this->actionFunc = func_80B15260; @@ -1007,7 +1007,7 @@ void func_80B16504(EnTa* this, PlayState* play) { func_80B13AAC(this, play); if (func_80B142F4(this, play, this->actor.textId)) { - Audio_PlayActorSound2(&this->actor, NA_SE_VO_TA_SURPRISE); + Audio_PlayActorSfx2(&this->actor, NA_SE_VO_TA_SURPRISE); if (faceReaction != 0) { func_80B14FAC(this, func_80B15E28); @@ -1097,7 +1097,7 @@ void func_80B167C0(EnTa* this) { void func_80B167FC(EnTa* this) { if (SkelAnime_Update(&this->skelAnime)) { Animation_PlayOnce(&this->skelAnime, this->currentAnimation); - Audio_PlayActorSound2(&this->actor, NA_SE_VO_TA_SLEEP); + Audio_PlayActorSfx2(&this->actor, NA_SE_VO_TA_SLEEP); } this->unk_2E0 |= 0xC; } diff --git a/src/overlays/actors/ovl_En_Test/z_en_test.c b/src/overlays/actors/ovl_En_Test/z_en_test.c index 64cfc04b33..012b0ad927 100644 --- a/src/overlays/actors/ovl_En_Test/z_en_test.c +++ b/src/overlays/actors/ovl_En_Test/z_en_test.c @@ -543,7 +543,7 @@ void EnTest_Fall(EnTest* this, PlayState* play) { this->skelAnime.playSpeed = 1.0f; this->unk_7C8 = 0xC; this->timer = this->unk_7E4 * 0.15f; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_RIZA_DOWN); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_RIZA_DOWN); EnTest_SetupAction(this, EnTest_Land); } } @@ -647,12 +647,12 @@ void EnTest_WalkAndBlock(EnTest* this, PlayState* play) { s32 afterPrevFrame = absPlaySpeed + prevFrame; if (((afterPrevFrame > 1) && (beforeCurFrame < 1)) || ((beforeCurFrame < 7) && (afterPrevFrame > 7))) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_STAL_WALK); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_STAL_WALK); } } if ((this->timer % 32) == 0) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_STAL_WARAU); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_STAL_WARAU); this->timer += (s16)(Rand_ZeroOne() * 5.0f); } @@ -757,7 +757,7 @@ void func_80860C24(EnTest* this, PlayState* play) { afterPrevFrame = absPlaySpeed + prevFrame; if (((afterPrevFrame > 2) && (beforeCurFrame <= 0)) || ((beforeCurFrame < 7) && (afterPrevFrame >= 9))) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_STAL_WALK); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_STAL_WALK); } } @@ -872,12 +872,12 @@ void func_80860F84(EnTest* this, PlayState* play) { s32 afterPrevFrame = absPlaySpeed + prevFrame; if (((afterPrevFrame > 1) && (beforeCurFrame < 1)) || ((beforeCurFrame < 7) && (afterPrevFrame > 7))) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_STAL_WALK); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_STAL_WALK); } } if ((play->gameplayFrames & 95) == 0) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_STAL_WARAU); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_STAL_WARAU); } yawDiff = playerYaw180 - this->actor.shape.rot.y; @@ -913,7 +913,7 @@ void EnTest_SlashDown(EnTest* this, PlayState* play) { } if ((s32)this->skelAnime.curFrame == 7) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_STAL_SAKEBI); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_STAL_SAKEBI); } if ((this->skelAnime.curFrame > 7.0f) && (this->skelAnime.curFrame < 11.0f)) { @@ -1008,7 +1008,7 @@ void EnTest_SlashUp(EnTest* this, PlayState* play) { this->actor.speedXZ = 0.0f; if ((s32)this->skelAnime.curFrame == 2) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_STAL_SAKEBI); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_STAL_SAKEBI); } if ((this->skelAnime.curFrame > 1.0f) && (this->skelAnime.curFrame < 8.0f)) { @@ -1024,7 +1024,7 @@ void EnTest_SlashUp(EnTest* this, PlayState* play) { void EnTest_SetupJumpBack(EnTest* this) { Animation_PlayOnce(&this->skelAnime, &gStalfosJumpBackwardsAnim); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_STAL_JUMP); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_STAL_JUMP); this->unk_7C8 = 0x14; this->timer = 5; EnTest_SetupAction(this, EnTest_JumpBack); @@ -1044,7 +1044,7 @@ void EnTest_JumpBack(EnTest* this, PlayState* play) { Math_SmoothStepToS(&this->actor.shape.rot.y, this->actor.yawTowardsPlayer, 1, 0xBB8, 1); if (this->timer == 0) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_STAL_WARAU); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_STAL_WARAU); } else { this->timer--; } @@ -1069,7 +1069,7 @@ void EnTest_JumpBack(EnTest* this, PlayState* play) { this->actor.flags |= ACTOR_FLAG_0; } } else if (this->skelAnime.curFrame == (this->skelAnime.endFrame - 4.0f)) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_DODO_M_GND); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_DODO_M_GND); } } @@ -1080,7 +1080,7 @@ void EnTest_SetupJumpslash(EnTest* this) { this->unk_7C8 = 0x17; this->actor.velocity.y = 10.0f; this->actor.speedXZ = 8.0f; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_STAL_JUMP); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_STAL_JUMP); this->actor.world.rot.y = this->actor.shape.rot.y; this->swordCollider.base.atFlags &= ~AT_BOUNCED; EnTest_SetupAction(this, EnTest_Jumpslash); @@ -1097,8 +1097,8 @@ void EnTest_Jumpslash(EnTest* this, PlayState* play) { Animation_PlayOnce(&this->skelAnime, &gStalfosJumpslashAnim); this->timer = 1; this->swordState = 1; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_STAL_SAKEBI); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_STAL_JUMP); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_STAL_SAKEBI); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_STAL_JUMP); } else { this->actor.speedXZ = 0.0f; EnTest_SetupIdle(this); @@ -1111,7 +1111,7 @@ void EnTest_Jumpslash(EnTest* this, PlayState* play) { if (this->actor.world.pos.y <= this->actor.floorHeight) { if (this->actor.speedXZ != 0.0f) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_DODO_M_GND); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_DODO_M_GND); } this->actor.world.pos.y = this->actor.floorHeight; @@ -1126,7 +1126,7 @@ void EnTest_SetupJumpUp(EnTest* this) { this->unk_7C8 = 4; this->actor.velocity.y = 14.0f; this->actor.speedXZ = 6.0f; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_STAL_JUMP); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_STAL_JUMP); this->actor.world.rot.y = this->actor.shape.rot.y; EnTest_SetupAction(this, EnTest_JumpUp); } @@ -1136,7 +1136,7 @@ void EnTest_JumpUp(EnTest* this, PlayState* play) { SkelAnime_Update(&this->skelAnime); if (this->actor.world.pos.y <= this->actor.floorHeight) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_DODO_M_GND); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_DODO_M_GND); this->actor.shape.rot.y = this->actor.yawTowardsPlayer; this->actor.world.pos.y = this->actor.floorHeight; this->unk_7E4 = -(s32)this->actor.velocity.y; @@ -1208,7 +1208,7 @@ void EnTest_IdleFromBlock(EnTest* this, PlayState* play) { void func_80862154(EnTest* this) { Animation_PlayOnce(&this->skelAnime, &gStalfosFlinchFromHitFrontAnim); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_STAL_DAMAGE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_STAL_DAMAGE); this->unk_7C8 = 8; this->actor.speedXZ = -2.0f; Actor_SetColorFilter(&this->actor, 0x4000, 0xFF, 0, 8); @@ -1252,7 +1252,7 @@ void func_808621D4(EnTest* this, PlayState* play) { void func_80862398(EnTest* this) { Animation_PlayOnce(&this->skelAnime, &gStalfosFlinchFromHitBehindAnim); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_STAL_DAMAGE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_STAL_DAMAGE); this->unk_7C8 = 9; this->actor.speedXZ = -2.0f; Actor_SetColorFilter(&this->actor, 0x4000, 0xFF, 0, 8); @@ -1309,7 +1309,7 @@ void EnTest_SetupStunned(EnTest* this) { } } - Audio_PlayActorSound2(&this->actor, NA_SE_EN_GOMA_JR_FREEZE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_GOMA_JR_FREEZE); EnTest_SetupAction(this, EnTest_Stunned); } @@ -1445,13 +1445,13 @@ void func_808628C8(EnTest* this, PlayState* play) { absPlaySpeed = ABS(this->skelAnime.playSpeed); if ((this->timer % 32) == 0) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_STAL_WARAU); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_STAL_WARAU); } if ((s32)this->skelAnime.curFrame != prevFrame) { s32 afterPrevFrame = (s32)absPlaySpeed + prevFrame; if (((afterPrevFrame > 1) && (beforeCurFrame < 1)) || ((beforeCurFrame < 7) && (afterPrevFrame > 7))) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_STAL_WALK); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_STAL_WALK); } } @@ -1478,7 +1478,7 @@ void func_808628C8(EnTest* this, PlayState* play) { } void func_80862DBC(EnTest* this, PlayState* play) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_STAL_DAMAGE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_STAL_DAMAGE); this->unk_7C8 = 2; BodyBreak_Alloc(&this->bodyBreak, 60, play); this->actor.home.rot.x = 0; @@ -1534,7 +1534,7 @@ void func_80862E6C(EnTest* this, PlayState* play) { void func_80862FA8(EnTest* this, PlayState* play) { Animation_PlayOnce(&this->skelAnime, &gStalfosFallOverBackwardsAnim); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_STAL_DEAD); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_STAL_DEAD); this->unk_7DE = 0; this->actor.flags &= ~ACTOR_FLAG_0; this->actor.colorFilterTimer = 0; @@ -1557,13 +1557,13 @@ void func_80863044(EnTest* this, PlayState* play) { } if ((s32)this->skelAnime.curFrame == 15) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_RIZA_DOWN); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_RIZA_DOWN); } } void func_808630F0(EnTest* this, PlayState* play) { Animation_PlayOnce(&this->skelAnime, &gStalfosFallOverForwardsAnim); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_STAL_DEAD); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_STAL_DEAD); this->unk_7C8 = 6; this->actor.colorFilterTimer = 0; this->unk_7DE = 0; @@ -1586,7 +1586,7 @@ void func_8086318C(EnTest* this, PlayState* play) { } if (((s32)this->skelAnime.curFrame == 10) || ((s32)this->skelAnime.curFrame == 25)) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_RIZA_DOWN); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_RIZA_DOWN); } } diff --git a/src/overlays/actors/ovl_En_Tite/z_en_tite.c b/src/overlays/actors/ovl_En_Tite/z_en_tite.c index b047206d92..2011f4c01a 100644 --- a/src/overlays/actors/ovl_En_Tite/z_en_tite.c +++ b/src/overlays/actors/ovl_En_Tite/z_en_tite.c @@ -277,10 +277,10 @@ void EnTite_Attack(EnTite* this, PlayState* play) { if (this->actor.floorHeight > BGCHECK_Y_MIN) { this->actor.world.pos.y = this->actor.floorHeight; } - Audio_PlayActorSound2(&this->actor, NA_SE_EN_STAL_JUMP); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_STAL_JUMP); } else { this->actor.world.pos.y += this->actor.yDistToWater; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_TEKU_JUMP_WATER); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_TEKU_JUMP_WATER); } this->actor.velocity.y = 8.0f; this->actor.gravity = -1.0f; @@ -374,7 +374,7 @@ void EnTite_Attack(EnTite* this, PlayState* play) { this->actor.world.rot.y = this->actor.yawTowardsPlayer; if (&player->actor == this->collider.base.at) { if (!(this->collider.base.atFlags & AT_BOUNCED)) { - Audio_PlayActorSound2(&player->actor, NA_SE_PL_BODY_HIT); + Audio_PlayActorSfx2(&player->actor, NA_SE_PL_BODY_HIT); } } EnTite_SetupAction(this, EnTite_Recoil); @@ -401,22 +401,22 @@ void EnTite_Attack(EnTite* this, PlayState* play) { func_80033480(play, &this->backLeftFootPos, 1.0f, 2, 80, 15, 1); } } - // if landed, kill XZ speed and play appropriate sounds + // if landed, kill XZ speed and play appropriate sound effect if (this->actor.params == TEKTITE_BLUE) { if (this->actor.bgCheckFlags & BGCHECKFLAG_WATER_TOUCH) { this->actor.speedXZ = 0.0f; if (this->vAttackState == TEKTITE_SUBMERGED) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_TEKU_LAND_WATER); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_TEKU_LAND_WATER); } else { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_TEKU_LAND_WATER2); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_TEKU_LAND_WATER2); } this->actor.bgCheckFlags &= ~BGCHECKFLAG_WATER_TOUCH; } else if (this->actor.bgCheckFlags & BGCHECKFLAG_GROUND_TOUCH) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_DODO_M_GND); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_DODO_M_GND); } } else if (this->actor.bgCheckFlags & BGCHECKFLAG_GROUND_TOUCH) { this->actor.speedXZ = 0.0f; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_DODO_M_GND); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_DODO_M_GND); } } @@ -464,14 +464,14 @@ void EnTite_TurnTowardPlayer(EnTite* this, PlayState* play) { } /** - * Play sounds once every animation cycle + * Play sound effect once every animation cycle */ SkelAnime_Update(&this->skelAnime); if (((s16)this->skelAnime.curFrame & 7) == 0) { if ((this->actor.params == TEKTITE_BLUE) && (this->actor.bgCheckFlags & BGCHECKFLAG_WATER)) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_TEKU_WALK_WATER); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_TEKU_WALK_WATER); } else { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_TEKU_WALK); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_TEKU_WALK); } } @@ -496,9 +496,9 @@ void EnTite_SetupMoveTowardPlayer(EnTite* this) { this->actor.speedXZ = 4.0f; this->vQueuedJumps = Rand_S16Offset(1, 3); if ((this->actor.params == TEKTITE_BLUE) && (this->actor.bgCheckFlags & BGCHECKFLAG_WATER)) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_TEKU_JUMP_WATER); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_TEKU_JUMP_WATER); } else { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_STAL_JUMP); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_STAL_JUMP); } EnTite_SetupAction(this, EnTite_MoveTowardPlayer); } @@ -516,9 +516,9 @@ void EnTite_MoveTowardPlayer(EnTite* this, PlayState* play) { func_80033480(play, &this->frontRightFootPos, 1.0f, 2, 80, 15, 1); func_80033480(play, &this->backRightFootPos, 1.0f, 2, 80, 15, 1); func_80033480(play, &this->backLeftFootPos, 1.0f, 2, 80, 15, 1); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_DODO_M_GND); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_DODO_M_GND); } else { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_TEKU_LAND_WATER); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_TEKU_LAND_WATER); } } @@ -574,9 +574,9 @@ void EnTite_MoveTowardPlayer(EnTite* this, PlayState* play) { this->actor.flags |= ACTOR_FLAG_24; this->actor.gravity = -1.0f; if ((this->actor.params == TEKTITE_BLUE) && (this->actor.bgCheckFlags & BGCHECKFLAG_WATER)) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_TEKU_JUMP_WATER); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_TEKU_JUMP_WATER); } else { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_STAL_JUMP); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_STAL_JUMP); } } } else { @@ -585,9 +585,9 @@ void EnTite_MoveTowardPlayer(EnTite* this, PlayState* play) { this->actor.flags |= ACTOR_FLAG_24; this->actor.gravity = -1.0f; if ((this->actor.params == TEKTITE_BLUE) && (this->actor.bgCheckFlags & BGCHECKFLAG_WATER)) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_TEKU_JUMP_WATER); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_TEKU_JUMP_WATER); } else { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_STAL_JUMP); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_STAL_JUMP); } } // If in midair: @@ -637,17 +637,17 @@ void EnTite_Recoil(EnTite* this, PlayState* play) { } } - // play sound and generate ripples + // play sound effect and generate ripples if (this->actor.bgCheckFlags & (BGCHECKFLAG_GROUND_TOUCH | BGCHECKFLAG_WATER_TOUCH)) { if (!(this->actor.bgCheckFlags & BGCHECKFLAG_WATER_TOUCH)) { func_80033480(play, &this->frontLeftFootPos, 1.0f, 2, 80, 15, 1); func_80033480(play, &this->frontRightFootPos, 1.0f, 2, 80, 15, 1); func_80033480(play, &this->backRightFootPos, 1.0f, 2, 80, 15, 1); func_80033480(play, &this->backLeftFootPos, 1.0f, 2, 80, 15, 1); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_DODO_M_GND); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_DODO_M_GND); } else { this->actor.bgCheckFlags &= ~BGCHECKFLAG_WATER_TOUCH; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_TEKU_LAND_WATER2); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_TEKU_LAND_WATER2); } } @@ -682,7 +682,7 @@ void EnTite_SetupStunned(EnTite* this) { if (this->damageEffect == 0xF) { this->spawnIceTimer = 48; } - Audio_PlayActorSound2(&this->actor, NA_SE_EN_GOMA_JR_FREEZE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_GOMA_JR_FREEZE); EnTite_SetupAction(this, EnTite_Stunned); } @@ -707,17 +707,17 @@ void EnTite_Stunned(EnTite* this, PlayState* play) { this->actor.world.pos.y += this->actor.yDistToWater; } } - // Play sounds and spawn dirt effects upon landing + // Play sound effect and spawn dirt effects upon landing if (this->actor.bgCheckFlags & (BGCHECKFLAG_GROUND_TOUCH | BGCHECKFLAG_WATER_TOUCH)) { if (!(this->actor.bgCheckFlags & BGCHECKFLAG_WATER_TOUCH)) { func_80033480(play, &this->frontLeftFootPos, 1.0f, 2, 80, 15, 1); func_80033480(play, &this->frontRightFootPos, 1.0f, 2, 80, 15, 1); func_80033480(play, &this->backRightFootPos, 1.0f, 2, 80, 15, 1); func_80033480(play, &this->backLeftFootPos, 1.0f, 2, 80, 15, 1); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_DODO_M_GND); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_DODO_M_GND); } else { this->actor.bgCheckFlags &= ~BGCHECKFLAG_WATER_TOUCH; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_TEKU_LAND_WATER2); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_TEKU_LAND_WATER2); } } // Decide on next action based on health, flip state and player distance @@ -780,7 +780,7 @@ void EnTite_FallApart(EnTite* this, PlayState* play) { void EnTite_SetupFlipOnBack(EnTite* this) { Animation_PlayLoopSetSpeed(&this->skelAnime, &object_tite_Anim_000A14, 1.5f); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_TEKU_REVERSE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_TEKU_REVERSE); this->flipState = TEKTITE_FLIPPED; this->vOnBackTimer = 500; this->actor.speedXZ = 0.0f; @@ -806,7 +806,7 @@ void EnTite_FlipOnBack(EnTite* this, PlayState* play) { // Upon landing, spawn dust and make noise if (this->actor.bgCheckFlags & BGCHECKFLAG_GROUND_TOUCH) { Actor_SpawnFloorDustRing(play, &this->actor, &this->actor.world.pos, 20.0f, 11, 4.0f, 0, 0, false); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_DODO_M_GND); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_DODO_M_GND); } this->vOnBackTimer--; if (this->vOnBackTimer == 0) { @@ -825,7 +825,7 @@ void EnTite_SetupFlipUpright(EnTite* this) { this->actionVar1 = 1000; // value unused here and overwritten in SetupIdle //! @bug flying tektite: water sets gravity to 0 so y velocity will never decrease from 13 this->actor.velocity.y = 13.0f; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_TEKU_REVERSE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_TEKU_REVERSE); EnTite_SetupAction(this, EnTite_FlipUpright); } @@ -840,7 +840,7 @@ void EnTite_FlipUpright(EnTite* this, PlayState* play) { func_80033480(play, &this->backLeftFootPos, 1.0f, 2, 80, 15, 1); this->actor.shape.yOffset = 0.0f; this->actor.world.pos.y = this->actor.floorHeight; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_DODO_M_GND); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_DODO_M_GND); EnTite_SetupIdle(this); } } @@ -870,7 +870,7 @@ void EnTite_CheckDamage(Actor* thisx, PlayState* play) { EnTite_SetupDeathCry(this); } else { // Flip tektite back up if it's on its back - Audio_PlayActorSound2(thisx, NA_SE_EN_TEKU_DAMAGE); + Audio_PlayActorSfx2(thisx, NA_SE_EN_TEKU_DAMAGE); if (this->flipState != TEKTITE_FLIPPED) { EnTite_SetupRecoil(this); } else { diff --git a/src/overlays/actors/ovl_En_Tk/z_en_tk.c b/src/overlays/actors/ovl_En_Tk/z_en_tk.c index 473f3d9e66..d56cb76da1 100644 --- a/src/overlays/actors/ovl_En_Tk/z_en_tk.c +++ b/src/overlays/actors/ovl_En_Tk/z_en_tk.c @@ -277,7 +277,7 @@ f32 EnTk_Step(EnTk* this, PlayState* play) { s32 i; if (this->skelAnime.curFrame == 0.0f || this->skelAnime.curFrame == 25.0f) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_MORIBLIN_WALK); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_MORIBLIN_WALK); } if (this->skelAnime.animation != &gDampeWalkAnim) { @@ -588,7 +588,7 @@ void EnTk_Dig(EnTk* this, PlayState* play) { if (this->skelAnime.curFrame == 32.0f) { /* What's gonna come out? */ - Audio_PlayActorSound2(&this->actor, NA_SE_EV_DIG_UP); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_DIG_UP); this->rewardTimer = 0; @@ -621,17 +621,17 @@ void EnTk_Dig(EnTk* this, PlayState* play) { } if (this->skelAnime.curFrame >= 32.0f && this->rewardTimer == 10) { - /* Play a reward sound shortly after digging */ + /* Play a reward sound effect shortly after digging */ if (this->validDigHere == 0) { /* Bad dig spot */ - Audio_PlayActorSound2(&this->actor, NA_SE_SY_ERROR); + Audio_PlayActorSfx2(&this->actor, NA_SE_SY_ERROR); } else if (this->currentReward == 4) { /* Heart piece */ - Audio_PlaySoundGeneral(NA_SE_SY_CORRECT_CHIME, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_CORRECT_CHIME, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } else { /* Rupee */ - Audio_PlayActorSound2(&this->actor, NA_SE_SY_TRE_BOX_APPEAR); + Audio_PlayActorSfx2(&this->actor, NA_SE_SY_TRE_BOX_APPEAR); } } this->rewardTimer++; diff --git a/src/overlays/actors/ovl_En_Tp/z_en_tp.c b/src/overlays/actors/ovl_En_Tp/z_en_tp.c index 9d11b8c07d..e01c4e402c 100644 --- a/src/overlays/actors/ovl_En_Tp/z_en_tp.c +++ b/src/overlays/actors/ovl_En_Tp/z_en_tp.c @@ -243,8 +243,8 @@ void EnTp_Head_ApproachPlayer(EnTp* this, PlayState* play) { Player* player = GET_PLAYER(play); Math_SmoothStepToF(&this->actor.world.pos.y, player->actor.world.pos.y + 30.0f, 1.0f, 0.5f, 0.0f); - Audio_PlaySoundGeneral(NA_SE_EN_TAIL_FLY - SFX_FLAG, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EN_TAIL_FLY - SFX_FLAG, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); if (this->collider.base.atFlags & AT_HIT) { this->collider.base.atFlags &= ~AT_HIT; @@ -286,7 +286,7 @@ void EnTp_SetupDie(EnTp* this) { } this->timer = 13; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_TAIL_DEAD); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_TAIL_DEAD); } this->actionIndex = TAILPASARAN_ACTION_DIE; EnTp_SetupAction(this, EnTp_Die); @@ -380,8 +380,8 @@ void EnTp_Head_TakeOff(EnTp* this, PlayState* play) { Math_SmoothStepToF(&this->actor.speedXZ, 2.5f, 0.1f, 0.2f, 0.0f); Math_SmoothStepToF(&this->actor.world.pos.y, player->actor.world.pos.y + 85.0f + this->horizontalVariation, 1.0f, this->actor.speedXZ * 0.25f, 0.0f); - Audio_PlaySoundGeneral(NA_SE_EN_TAIL_FLY - SFX_FLAG, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EN_TAIL_FLY - SFX_FLAG, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); if (this->collider.base.atFlags & AT_HIT) { this->collider.base.atFlags &= ~AT_HIT; @@ -478,8 +478,8 @@ void EnTp_Head_Wait(EnTp* this, PlayState* play) { this->actor.shape.rot.y = this->actor.world.rot.y; if (this->actor.world.pos.y != this->actor.home.pos.y) { - Audio_PlaySoundGeneral(NA_SE_EN_TAIL_FLY - SFX_FLAG, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EN_TAIL_FLY - SFX_FLAG, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } } @@ -548,8 +548,8 @@ void EnTp_Head_BurrowReturnHome(EnTp* this, PlayState* play) { } if (this->actor.world.pos.y != this->actor.home.pos.y) { - Audio_PlaySoundGeneral(NA_SE_EN_TAIL_FLY - SFX_FLAG, &this->actor.projectedPos, 4, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EN_TAIL_FLY - SFX_FLAG, &this->actor.projectedPos, 4, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } if (closeToFloor && ((play->gameplayFrames & 1) != 0)) { @@ -605,7 +605,7 @@ void EnTp_UpdateDamage(EnTp* this, PlayState* play) { } else { if (phi_s4 != 0) { this->actor.freezeTimer = 80; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_GOMA_JR_FREEZE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_GOMA_JR_FREEZE); if (phi_s2 != 0) { Actor_SetColorFilter(&this->actor, 0, 0xFF, 0, 0x50); } else { @@ -618,7 +618,7 @@ void EnTp_UpdateDamage(EnTp* this, PlayState* play) { if (phi_s4 != 0) { now->actor.freezeTimer = 80; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_GOMA_JR_FREEZE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_GOMA_JR_FREEZE); if (phi_s2 != 0) { Actor_SetColorFilter(&now->actor, 0, 0xFF, 0, 0x50); @@ -692,8 +692,8 @@ void EnTp_Update(Actor* thisx, PlayState* play) { this->actor.shape.rot.z += 0x800; if (this->actor.shape.rot.z == 0) { - Audio_PlaySoundGeneral(NA_SE_EN_TAIL_CRY, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EN_TAIL_CRY, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } if (this->actionIndex >= TAILPASARAN_ACTION_TAIL_FOLLOWHEAD) { diff --git a/src/overlays/actors/ovl_En_Tr/z_en_tr.c b/src/overlays/actors/ovl_En_Tr/z_en_tr.c index 5d0b633454..be5986c0d3 100644 --- a/src/overlays/actors/ovl_En_Tr/z_en_tr.c +++ b/src/overlays/actors/ovl_En_Tr/z_en_tr.c @@ -125,8 +125,8 @@ void EnTr_CrySpellcast(EnTr* this, PlayState* play) { if (this->timer == 11) { // Both cry in the title screen cutscene, but only Kotake in the in-game cutscene if ((this->actor.params != TR_KOUME) || (gSaveContext.sceneSetupIndex == 6)) { - Audio_PlaySoundGeneral(NA_SE_EN_TWINROBA_SHOOT_VOICE, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EN_TWINROBA_SHOOT_VOICE, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } } @@ -150,7 +150,7 @@ void EnTr_ChooseAction2(EnTr* this, PlayState* play) { Actor_SetScale(&this->actor, 0.01f); EnTr_SetupAction(this, EnTr_ShrinkVanish); this->timer = 24; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_PO_DEAD2); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_PO_DEAD2); break; case 6: @@ -162,7 +162,7 @@ void EnTr_ChooseAction2(EnTr* this, PlayState* play) { Actor_SpawnAsChild(&play->actorCtx, &this->actor, play, ACTOR_DEMO_6K, this->actor.world.pos.x, this->actor.world.pos.y, this->actor.world.pos.z, 0, 0, 0, this->actor.params + 9); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_FANTOM_MASIC1); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_FANTOM_MASIC1); break; default: @@ -261,7 +261,7 @@ void EnTr_ShrinkVanish(EnTr* this, PlayState* play) { } if (this->timer == 4) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_BUBLE_DOWN); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_BUBLE_DOWN); } if (this->timer > 0) { @@ -297,7 +297,7 @@ void EnTr_WaitToReappear(EnTr* this, PlayState* play) { if ((play->csCtx.npcActions[this->actionIndex] != NULL) && ((play->csCtx.npcActions[this->actionIndex]->action == 3) || (play->csCtx.npcActions[this->actionIndex]->action == 5))) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_TWINROBA_TRANSFORM); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_TWINROBA_TRANSFORM); this->timer = 34; EnTr_SetStartPosRot(this, play, this->actionIndex); EnTr_SetupAction(this, EnTr_Reappear); @@ -382,9 +382,9 @@ void EnTr_Update(Actor* thisx, PlayState* play) { if (this->animation != NULL) { if ((this->animation == &object_tr_Anim_0035CC) || (this->animation == &object_tr_Anim_0013CC)) { if (this->actor.params != TR_KOUME) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_TWINROBA_LAUGH2); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_TWINROBA_LAUGH2); } else { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_TWINROBA_LAUGH); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_TWINROBA_LAUGH); } Animation_PlayLoop(&this->skelAnime, this->animation); } else if (this->animation == &object_tr_Anim_0049C8) { diff --git a/src/overlays/actors/ovl_En_Trap/z_en_trap.c b/src/overlays/actors/ovl_En_Trap/z_en_trap.c index 2df3f1e891..2f120aa73a 100644 --- a/src/overlays/actors/ovl_En_Trap/z_en_trap.c +++ b/src/overlays/actors/ovl_En_Trap/z_en_trap.c @@ -73,7 +73,7 @@ void EnTrap_Init(Actor* thisx, PlayState* play) { thisx->gravity = -2.0f; if (thisx->params & SPIKETRAP_MODE_LINEAR) { thisx->speedXZ = this->moveSpeedForwardBack.z = this->upperParams & 0xF; - Audio_PlayActorSound2(thisx, NA_SE_EV_SPINE_TRAP_MOVE); + Audio_PlayActorSfx2(thisx, NA_SE_EV_SPINE_TRAP_MOVE); } else if (thisx->params & SPIKETRAP_MODE_CIRCULAR) { this->vRadius = (this->upperParams & 0xF) * 40.0f; this->vAngularVel = ((this->upperParams & 0xF0) + 0x10) << 5; @@ -206,14 +206,14 @@ void EnTrap_Update(Actor* thisx, PlayState* play) { // If any of the above three conditions are met, turn around if (this->vContinue == 0.0f) { thisx->world.rot.y += 0x8000; - Audio_PlayActorSound2(thisx, NA_SE_EV_SPINE_TRAP_MOVE); + Audio_PlayActorSfx2(thisx, NA_SE_EV_SPINE_TRAP_MOVE); } } else if (thisx->params & SPIKETRAP_MODE_CIRCULAR) { temp_cond = Math_SinS(this->vAngularPos); this->vAngularPos += this->vAngularVel; // Every full circle make a sound: if ((temp_cond < 0.0f) && (Math_SinS(this->vAngularPos) >= 0.0f)) { - Audio_PlayActorSound2(thisx, NA_SE_EV_ROUND_TRAP_MOVE); + Audio_PlayActorSfx2(thisx, NA_SE_EV_ROUND_TRAP_MOVE); } thisx->world.pos.x = (this->vRadius * Math_SinS(this->vAngularPos)) + thisx->home.pos.x; thisx->world.pos.z = (this->vRadius * Math_CosS(this->vAngularPos)) + thisx->home.pos.z; @@ -234,7 +234,7 @@ void EnTrap_Update(Actor* thisx, PlayState* play) { } if (this->vMovementMetric != 0.0f) { if (this->vMovementMetric == BEGIN_MOVE_OUT) { - Audio_PlayActorSound2(thisx, NA_SE_EV_SPINE_TRAP_MOVE); + Audio_PlayActorSfx2(thisx, NA_SE_EV_SPINE_TRAP_MOVE); } this->vMovementMetric = Math_SmoothStepToF(&thisx->world.pos.z, this->targetPosFwd.z, 1.0f, this->moveSpeedForwardBack.z, 0.0f); @@ -257,7 +257,7 @@ void EnTrap_Update(Actor* thisx, PlayState* play) { } if (this->vMovementMetric != 0.0f) { if (this->vMovementMetric == BEGIN_MOVE_OUT) { - Audio_PlayActorSound2(thisx, NA_SE_EV_SPINE_TRAP_MOVE); + Audio_PlayActorSfx2(thisx, NA_SE_EV_SPINE_TRAP_MOVE); } this->vMovementMetric = Math_SmoothStepToF(&thisx->world.pos.x, this->targetPosLeft.x, 1.0f, this->moveSpeedLeftRight.x, 0.0f); @@ -278,7 +278,7 @@ void EnTrap_Update(Actor* thisx, PlayState* play) { } if (this->vMovementMetric != 0.0f) { if (this->vMovementMetric == BEGIN_MOVE_OUT) { - Audio_PlayActorSound2(thisx, NA_SE_EV_SPINE_TRAP_MOVE); + Audio_PlayActorSfx2(thisx, NA_SE_EV_SPINE_TRAP_MOVE); } this->vMovementMetric = Math_SmoothStepToF(&thisx->world.pos.z, this->targetPosBack.z, 1.0f, this->moveSpeedForwardBack.z, 0.0f); @@ -301,7 +301,7 @@ void EnTrap_Update(Actor* thisx, PlayState* play) { } if (this->vMovementMetric != 0.0f) { if (this->vMovementMetric == BEGIN_MOVE_OUT) { - Audio_PlayActorSound2(thisx, NA_SE_EV_SPINE_TRAP_MOVE); + Audio_PlayActorSfx2(thisx, NA_SE_EV_SPINE_TRAP_MOVE); } this->vMovementMetric = Math_SmoothStepToF(&thisx->world.pos.x, this->targetPosRight.x, 1.0f, this->moveSpeedLeftRight.x, 0.0f); diff --git a/src/overlays/actors/ovl_En_Tubo_Trap/z_en_tubo_trap.c b/src/overlays/actors/ovl_En_Tubo_Trap/z_en_tubo_trap.c index f47c91b277..0faa1a41bf 100644 --- a/src/overlays/actors/ovl_En_Tubo_Trap/z_en_tubo_trap.c +++ b/src/overlays/actors/ovl_En_Tubo_Trap/z_en_tubo_trap.c @@ -170,7 +170,7 @@ void EnTuboTrap_HandleImpact(EnTuboTrap* this, PlayState* play) { if ((this->actor.bgCheckFlags & BGCHECKFLAG_WATER) && (this->actor.yDistToWater > 15.0f)) { EnTuboTrap_SpawnEffectsInWater(this, play); - SoundSource_PlaySfxAtFixedWorldPos(play, &this->actor.world.pos, 40, NA_SE_EV_BOMB_DROP_WATER); + SfxSource_PlaySfxAtFixedWorldPos(play, &this->actor.world.pos, 40, NA_SE_EV_BOMB_DROP_WATER); EnTuboTrap_DropCollectible(this, play); Actor_Kill(&this->actor); return; @@ -179,8 +179,8 @@ void EnTuboTrap_HandleImpact(EnTuboTrap* this, PlayState* play) { if (this->collider.base.atFlags & AT_BOUNCED) { this->collider.base.atFlags &= ~AT_BOUNCED; EnTuboTrap_SpawnEffectsOnLand(this, play); - SoundSource_PlaySfxAtFixedWorldPos(play, &this->actor.world.pos, 40, NA_SE_IT_SHIELD_REFLECT_SW); - SoundSource_PlaySfxAtFixedWorldPos(play, &this->actor.world.pos, 40, NA_SE_EV_POT_BROKEN); + SfxSource_PlaySfxAtFixedWorldPos(play, &this->actor.world.pos, 40, NA_SE_IT_SHIELD_REFLECT_SW); + SfxSource_PlaySfxAtFixedWorldPos(play, &this->actor.world.pos, 40, NA_SE_EV_POT_BROKEN); EnTuboTrap_DropCollectible(this, play); Actor_Kill(&this->actor); return; @@ -189,8 +189,8 @@ void EnTuboTrap_HandleImpact(EnTuboTrap* this, PlayState* play) { if (this->collider.base.acFlags & AC_HIT) { this->collider.base.acFlags &= ~AC_HIT; EnTuboTrap_SpawnEffectsOnLand(this, play); - SoundSource_PlaySfxAtFixedWorldPos(play, &this->actor.world.pos, 40, NA_SE_EV_EXPLOSION); - SoundSource_PlaySfxAtFixedWorldPos(play, &this->actor.world.pos, 40, NA_SE_EV_POT_BROKEN); + SfxSource_PlaySfxAtFixedWorldPos(play, &this->actor.world.pos, 40, NA_SE_EV_EXPLOSION); + SfxSource_PlaySfxAtFixedWorldPos(play, &this->actor.world.pos, 40, NA_SE_EV_POT_BROKEN); EnTuboTrap_DropCollectible(this, play); Actor_Kill(&this->actor); return; @@ -200,8 +200,8 @@ void EnTuboTrap_HandleImpact(EnTuboTrap* this, PlayState* play) { this->collider.base.atFlags &= ~AT_HIT; if (this->collider.base.at == &player->actor) { EnTuboTrap_SpawnEffectsOnLand(this, play); - SoundSource_PlaySfxAtFixedWorldPos(play, &this->actor.world.pos, 40, NA_SE_EV_POT_BROKEN); - SoundSource_PlaySfxAtFixedWorldPos(play, &player2->actor.world.pos, 40, NA_SE_PL_BODY_HIT); + SfxSource_PlaySfxAtFixedWorldPos(play, &this->actor.world.pos, 40, NA_SE_EV_POT_BROKEN); + SfxSource_PlaySfxAtFixedWorldPos(play, &player2->actor.world.pos, 40, NA_SE_PL_BODY_HIT); EnTuboTrap_DropCollectible(this, play); Actor_Kill(&this->actor); return; @@ -210,7 +210,7 @@ void EnTuboTrap_HandleImpact(EnTuboTrap* this, PlayState* play) { if ((this->actor.bgCheckFlags & BGCHECKFLAG_WALL) || (this->actor.bgCheckFlags & BGCHECKFLAG_GROUND)) { EnTuboTrap_SpawnEffectsOnLand(this, play); - SoundSource_PlaySfxAtFixedWorldPos(play, &this->actor.world.pos, 40, NA_SE_EV_POT_BROKEN); + SfxSource_PlaySfxAtFixedWorldPos(play, &this->actor.world.pos, 40, NA_SE_EV_POT_BROKEN); EnTuboTrap_DropCollectible(this, play); Actor_Kill(&this->actor); return; @@ -238,7 +238,7 @@ void EnTuboTrap_WaitForProximity(EnTuboTrap* this, PlayState* play) { } this->originPos = this->actor.world.pos; - Audio_PlayActorSound2(&this->actor, NA_SE_EV_POT_MOVE_START); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_POT_MOVE_START); this->actionFunc = EnTuboTrap_Levitate; } } @@ -259,7 +259,7 @@ void EnTuboTrap_Fly(EnTuboTrap* this, PlayState* play) { f32 dy = this->originPos.y - this->actor.world.pos.y; f32 dz = this->originPos.z - this->actor.world.pos.z; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_TUBOOCK_FLY - SFX_FLAG); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_TUBOOCK_FLY - SFX_FLAG); if (240.0f < sqrtf(SQ(dx) + SQ(dy) + SQ(dz))) { Math_ApproachF(&this->actor.gravity, -3.0f, 0.2f, 0.5f); diff --git a/src/overlays/actors/ovl_En_Vali/z_en_vali.c b/src/overlays/actors/ovl_En_Vali/z_en_vali.c index 405fd4136f..b77d2da75c 100644 --- a/src/overlays/actors/ovl_En_Vali/z_en_vali.c +++ b/src/overlays/actors/ovl_En_Vali/z_en_vali.c @@ -247,7 +247,7 @@ void EnVali_SetupDivideAndDie(EnVali* this, PlayState* play) { Item_DropCollectibleRandom(play, &this->actor, &this->actor.world.pos, 0x50); this->timer = Rand_S16Offset(10, 10); this->bodyCollider.base.acFlags &= ~AC_ON; - SoundSource_PlaySfxAtFixedWorldPos(play, &this->actor.world.pos, 40, NA_SE_EN_BARI_SPLIT); + SfxSource_PlaySfxAtFixedWorldPos(play, &this->actor.world.pos, 40, NA_SE_EN_BARI_SPLIT); this->actor.flags &= ~ACTOR_FLAG_0; this->actor.draw = NULL; this->actionFunc = EnVali_DivideAndDie; @@ -259,7 +259,7 @@ void EnVali_SetupStunned(EnVali* this) { this->actor.velocity.y = 0.0f; Actor_SetColorFilter(&this->actor, 0, 255, 0x2000, 80); this->bodyCollider.info.bumper.effect = 0; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_GOMA_JR_FREEZE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_GOMA_JR_FREEZE); this->actor.velocity.y = 1.0f; this->actionFunc = EnVali_Stunned; } @@ -316,7 +316,7 @@ void EnVali_DropAppear(EnVali* this, PlayState* play) { this->actor.velocity.y = CLAMP_MAX(this->actor.velocity.y, 40.0f); if (Math_StepToF(&this->actor.world.pos.y, this->actor.floorHeight, this->actor.velocity.y)) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_DODO_M_GND); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_DODO_M_GND); EnVali_SetupFloatIdle(this); } } @@ -339,10 +339,10 @@ void EnVali_FloatIdle(EnVali* this, PlayState* play) { this->actor.shape.rot.y += 0x800; if (((this->slingshotReactionTimer % 6) == 0) && (curFrame > 15) && (curFrame <= 55)) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_BARI_ROLL); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_BARI_ROLL); } } else if ((curFrame == 16) || (curFrame == 30) || (curFrame == 42) || (curFrame == 55)) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_BARI_ROLL); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_BARI_ROLL); } curFrame = ((curFrame > 40) ? (80 - curFrame) : curFrame); @@ -441,7 +441,7 @@ void EnVali_Stunned(EnVali* this, PlayState* play) { if (this->actor.velocity.y != 0.0f) { if (Math_StepToF(&this->actor.world.pos.y, this->actor.floorHeight, this->actor.velocity.y)) { this->actor.velocity.y = 0.0f; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_DODO_M_GND); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_DODO_M_GND); } else { this->actor.velocity.y += 1.0f; } @@ -500,12 +500,12 @@ void EnVali_UpdateDamage(EnVali* this, PlayState* play) { if ((this->actor.colChkInfo.damageEffect != BARI_DMGEFF_NONE) || (this->actor.colChkInfo.damage != 0)) { if (Actor_ApplyDamage(&this->actor) == 0) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_BARI_DEAD); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_BARI_DEAD); Enemy_StartFinishingBlow(play, &this->actor); this->actor.flags &= ~ACTOR_FLAG_0; } else if ((this->actor.colChkInfo.damageEffect != BARI_DMGEFF_STUN) && (this->actor.colChkInfo.damageEffect != BARI_DMGEFF_SLINGSHOT)) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_BARI_DAMAGE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_BARI_DAMAGE); } if (this->actor.colChkInfo.damageEffect == BARI_DMGEFF_STUN) { diff --git a/src/overlays/actors/ovl_En_Vb_Ball/z_en_vb_ball.c b/src/overlays/actors/ovl_En_Vb_Ball/z_en_vb_ball.c index cbe807cc90..88f4976e31 100644 --- a/src/overlays/actors/ovl_En_Vb_Ball/z_en_vb_ball.c +++ b/src/overlays/actors/ovl_En_Vb_Ball/z_en_vb_ball.c @@ -135,8 +135,8 @@ void EnVbBall_UpdateBones(EnVbBall* this, PlayState* play) { this->actor.velocity.z = cosf(angle) * 10.0f; this->actor.velocity.y *= -0.5f; if (this->actor.params & 1) { - Audio_PlaySoundGeneral(NA_SE_EN_VALVAISA_LAND, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EN_VALVAISA_LAND, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } for (i = 0; i < 10; i++) { Vec3f dustVel = { 0.0f, 0.0f, 0.0f }; @@ -218,9 +218,9 @@ void EnVbBall_Update(Actor* thisx, PlayState* play2) { this->actor.world.rot.z * 0.5f, this->actor.params + 1); if (newActor != NULL) { if ((i == 0) && (this->actor.params == 100)) { - Audio_PlaySoundGeneral(NA_SE_EN_VALVAISA_ROCK, &newActor->actor.projectedPos, 4, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EN_VALVAISA_ROCK, &newActor->actor.projectedPos, 4, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultReverb); } newActor->actor.parent = this->actor.parent; newActor->actor.velocity = spawnOffset; @@ -289,7 +289,7 @@ void EnVbBall_Update(Actor* thisx, PlayState* play2) { Player* player = GET_PLAYER(play); this->collider.base.atFlags &= ~AT_HIT; - Audio_PlayActorSound2(&player->actor, NA_SE_PL_BODY_HIT); + Audio_PlayActorSfx2(&player->actor, NA_SE_PL_BODY_HIT); } Collider_UpdateCylinder(&this->actor, &this->collider); CollisionCheck_SetAT(play, &play->colChkCtx, &this->collider.base); diff --git a/src/overlays/actors/ovl_En_Viewer/z_en_viewer.c b/src/overlays/actors/ovl_En_Viewer/z_en_viewer.c index 629ec18f4d..59dffc87a1 100644 --- a/src/overlays/actors/ovl_En_Viewer/z_en_viewer.c +++ b/src/overlays/actors/ovl_En_Viewer/z_en_viewer.c @@ -201,9 +201,9 @@ void EnViewer_UpdateImpl(EnViewer* this, PlayState* play) { if (gSaveContext.sceneSetupIndex == 5) { csFrames = play->csCtx.frames; if (csFrames == 792) { - Audio_PlayActorSound2(&this->actor, NA_SE_VO_Z0_SURPRISE); + Audio_PlayActorSfx2(&this->actor, NA_SE_VO_Z0_SURPRISE); } else if (csFrames == 845) { - Audio_PlayActorSound2(&this->actor, NA_SE_VO_Z0_THROW); + Audio_PlayActorSfx2(&this->actor, NA_SE_VO_Z0_THROW); } } } else if (type == ENVIEWER_TYPE_7_GANONDORF) { @@ -225,14 +225,14 @@ void EnViewer_UpdateImpl(EnViewer* this, PlayState* play) { case 380: case 409: case 438: - Audio_PlaySoundGeneral(NA_SE_SY_DEMO_CUT, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_DEMO_CUT, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); break; } } if (gSaveContext.sceneSetupIndex == 5) { if (play->csCtx.frames == 1508) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_FANTOM_ST_LAUGH); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_FANTOM_ST_LAUGH); } if (play->csCtx.frames == 1545) { Actor_SpawnAsChild(&play->actorCtx, &this->actor, play, ACTOR_DEMO_6K, 32.0f, 101.0f, 1226.0f, 0, 0, 0, @@ -243,29 +243,29 @@ void EnViewer_UpdateImpl(EnViewer* this, PlayState* play) { Audio_QueueSeqCmd(SEQ_PLAYER_FANFARE << 24 | NA_BGM_OPENING_GANON); } if (play->csCtx.frames == 960) { - Audio_PlaySoundGeneral(NA_SE_EV_HORSE_GROAN, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EV_HORSE_GROAN, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } } else if (type == ENVIEWER_TYPE_6_HORSE_GANONDORF) { if (gSaveContext.sceneSetupIndex == 5 || gSaveContext.sceneSetupIndex == 10) { - Audio_PlayActorSound2(&this->actor, NA_SE_EV_HORSE_RUN_LEVEL - SFX_FLAG); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_HORSE_RUN_LEVEL - SFX_FLAG); } } else if (type == ENVIEWER_TYPE_4_HORSE_GANONDORF) { s16 curFrame = this->skin.skelAnime.curFrame; if (this->skin.skelAnime.animation == &gHorseGanonRearingAnim) { if (curFrame == 8) { - Audio_PlayActorSound2(&this->actor, NA_SE_EV_GANON_HORSE_NEIGH); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_GANON_HORSE_NEIGH); } if (curFrame == 30) { - Audio_PlayActorSound2(&this->actor, NA_SE_EV_HORSE_LAND2); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_HORSE_LAND2); } } else if (this->skin.skelAnime.animation == &gHorseGanonIdleAnim) { if (curFrame == 25) { - Audio_PlayActorSound2(&this->actor, NA_SE_EV_HORSE_SANDDUST); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_HORSE_SANDDUST); } } else if (this->skin.skelAnime.animation == &gHorseGanonGallopingAnim) { - Audio_PlayActorSound2(&this->actor, NA_SE_EV_HORSE_RUN_LEVEL - SFX_FLAG); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_HORSE_RUN_LEVEL - SFX_FLAG); } } @@ -336,7 +336,7 @@ void EnViewer_UpdateImpl(EnViewer* this, PlayState* play) { break; case 6: if (play->csCtx.npcActions[1]->action == 12) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_GANON_VOICE_DEMO); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_GANON_VOICE_DEMO); Animation_PlayLoopSetSpeed(&this->skin.skelAnime, &object_gndd_Anim_0005B4, 3.0f); this->state++; } @@ -430,8 +430,8 @@ void EnViewer_UpdateImpl(EnViewer* this, PlayState* play) { case 0: if (play->csCtx.state != CS_STATE_IDLE && play->csCtx.npcActions[1] != NULL && play->csCtx.npcActions[1]->action == 7) { - Audio_PlaySoundGeneral(NA_SE_EN_GANON_LAUGH, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EN_GANON_LAUGH, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); Animation_MorphToPlayOnce(&this->skin.skelAnime, &object_gndd_Anim_004534, -5.0f); this->state++; } @@ -723,11 +723,10 @@ void EnViewer_UpdatePosition(EnViewer* this, PlayState* play) { if (type == ENVIEWER_TYPE_0_HORSE_ZELDA) { if (!sHorseSfxPlayed) { sHorseSfxPlayed = true; - Audio_PlaySoundGeneral(NA_SE_EV_HORSE_NEIGH, &this->actor.projectedPos, 4, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EV_HORSE_NEIGH, &this->actor.projectedPos, 4, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } - Audio_PlayActorSound2(&this->actor, NA_SE_EV_HORSE_RUN_LEVEL - SFX_FLAG); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_HORSE_RUN_LEVEL - SFX_FLAG); } startPos.x = play->csCtx.npcActions[0]->startPos.x; @@ -774,8 +773,8 @@ void EnViewer_UpdatePosition(EnViewer* this, PlayState* play) { } } if (type == ENVIEWER_TYPE_5_GANONDORF) { - Audio_PlaySoundGeneral(NA_SE_EV_BURNING - SFX_FLAG, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EV_BURNING - SFX_FLAG, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); EnViewer_DrawFireEffects(this, play); } } diff --git a/src/overlays/actors/ovl_En_Vm/z_en_vm.c b/src/overlays/actors/ovl_En_Vm/z_en_vm.c index 550860379b..a01b62855f 100644 --- a/src/overlays/actors/ovl_En_Vm/z_en_vm.c +++ b/src/overlays/actors/ovl_En_Vm/z_en_vm.c @@ -203,7 +203,7 @@ void EnVm_Wait(EnVm* this, PlayState* play) { this->skelAnime.curFrame = 0.0f; this->skelAnime.startFrame = 0.0f; this->skelAnime.playSpeed = 2.0f; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_BIMOS_AIM); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_BIMOS_AIM); } } } else { @@ -301,7 +301,7 @@ void EnVm_Attack(EnVm* this, PlayState* play) { dist = Math_Vec3f_DistXYZ(&this->beamPos1, &playerPos); Math_SmoothStepToF(&this->beamScale.z, dist, 1.0f, this->beamSpeed, 0.0f); Math_SmoothStepToF(&this->beamScale.x, 0.1f, 1.0f, 0.12f, 0.0f); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_BIMOS_LAZER - SFX_FLAG); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_BIMOS_LAZER - SFX_FLAG); if (this->unk_260 > 2) { CollisionCheck_SetAT(play, &play->colChkCtx, &this->colliderQuad1.base); @@ -324,7 +324,7 @@ void EnVm_SetupStun(EnVm* this) { this->unk_21C = 2; this->beamScale.z = 0.0f; this->beamScale.y = 0.0f; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_GOMA_JR_FREEZE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_GOMA_JR_FREEZE); EnVm_SetupAction(this, EnVm_Stun); } @@ -426,14 +426,14 @@ void EnVm_Update(Actor* thisx, PlayState* play) { if (this->unk_260 == 4) { EffectSsDeadDs_SpawnStationary(play, &this->beamPos3, 20, -1, 255, 20); func_80033480(play, &this->beamPos3, 6.0f, 1, 120, 20, 1); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_BIMOS_LAZER_GND - SFX_FLAG); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_BIMOS_LAZER_GND - SFX_FLAG); } this->actionFunc(this, play); this->beamTexScroll += 0xC; if (this->actor.colChkInfo.health != 0 && this->unk_21C != 2) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_BIMOS_ROLL_HEAD - SFX_FLAG); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_BIMOS_ROLL_HEAD - SFX_FLAG); } Collider_UpdateCylinder(&this->actor, &this->colliderCylinder); diff --git a/src/overlays/actors/ovl_En_Wall_Tubo/z_en_wall_tubo.c b/src/overlays/actors/ovl_En_Wall_Tubo/z_en_wall_tubo.c index 58eef0e15d..feb1141a72 100644 --- a/src/overlays/actors/ovl_En_Wall_Tubo/z_en_wall_tubo.c +++ b/src/overlays/actors/ovl_En_Wall_Tubo/z_en_wall_tubo.c @@ -117,7 +117,7 @@ void EnWallTubo_SetWallFall(EnWallTubo* this, PlayState* play) { effPos.z = this->explosionCenter.z; EffectSsBomb2_SpawnLayered(play, &effPos, &effVelocity, &effAccel, 100, 30); EffectSsHahen_SpawnBurst(play, &effPos, 10.0f, 0, 50, 15, 3, HAHEN_OBJECT_DEFAULT, 10, NULL); - Audio_PlayActorSound2(&this->actor, NA_SE_IT_BOMB_EXPLOSION); + Audio_PlayActorSfx2(&this->actor, NA_SE_IT_BOMB_EXPLOSION); } if (this->timer == 0) { diff --git a/src/overlays/actors/ovl_En_Wallmas/z_en_wallmas.c b/src/overlays/actors/ovl_En_Wallmas/z_en_wallmas.c index 304e83a677..ca83f96806 100644 --- a/src/overlays/actors/ovl_En_Wallmas/z_en_wallmas.c +++ b/src/overlays/actors/ovl_En_Wallmas/z_en_wallmas.c @@ -184,7 +184,7 @@ void EnWallmas_SetupLand(EnWallmas* this, PlayState* play) { ANIMMODE_ONCE, -3.0f); Actor_SpawnFloorDustRing(play, &this->actor, &this->actor.world.pos, 15.0f, 6, 20.0f, 300, 100, true); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_FALL_LAND); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_FALL_LAND); this->actionFunc = EnWallmas_Land; } @@ -282,7 +282,7 @@ void EnWallmas_SetupStun(EnWallmas* this) { Actor_SetColorFilter(&this->actor, -0x8000, 0xFF, 0, 0x50); } else { Actor_SetColorFilter(&this->actor, 0, 0xFF, 0, 0x50); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_GOMA_JR_FREEZE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_GOMA_JR_FREEZE); } this->timer = 0x50; @@ -309,7 +309,7 @@ void EnWallmas_WaitToDrop(EnWallmas* this, PlayState* play) { } if (this->timer == 0x50) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_FALL_AIM); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_FALL_AIM); } if (this->timer == 0) { @@ -350,7 +350,7 @@ void EnWallmas_Walk(EnWallmas* this, PlayState* play) { if (Animation_OnFrame(&this->skelAnime, 0.0f) || Animation_OnFrame(&this->skelAnime, 12.0f) || Animation_OnFrame(&this->skelAnime, 24.0f) || Animation_OnFrame(&this->skelAnime, 36.0f)) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_FALL_WALK); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_FALL_WALK); } } @@ -369,7 +369,7 @@ void EnWallmas_ReturnToCeiling(EnWallmas* this, PlayState* play) { } if (Animation_OnFrame(&this->skelAnime, 20.0f) != 0) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_FALL_UP); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_FALL_UP); } if (this->actor.yDistToPlayer < -900.0f) { @@ -396,7 +396,7 @@ void EnWallmas_TakeDamage(EnWallmas* this, PlayState* play) { } } if (Animation_OnFrame(&this->skelAnime, 13.0f) != 0) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_DODO_M_GND); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_DODO_M_GND); } Math_StepToF(&this->actor.speedXZ, 0.0f, 0.2f); @@ -428,7 +428,7 @@ void EnWallmas_TakePlayer(EnWallmas* this, PlayState* play) { func_8002F7DC(&this->actor, NA_SE_VO_LI_DAMAGE_S); } - Audio_PlayActorSound2(&this->actor, NA_SE_EN_FALL_CATCH); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_FALL_CATCH); } if (SkelAnime_Update(&this->skelAnime) != 0) { player->actor.world.pos.x = this->actor.world.pos.x; @@ -454,7 +454,7 @@ void EnWallmas_TakePlayer(EnWallmas* this, PlayState* play) { } } if (this->timer == 0) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_FALL_UP); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_FALL_UP); } this->timer = this->timer + 2; @@ -507,11 +507,11 @@ void EnWallmas_ColUpdate(EnWallmas* this, PlayState* play) { if ((this->actor.colChkInfo.damageEffect != 0) || (this->actor.colChkInfo.damage != 0)) { if (Actor_ApplyDamage(&this->actor) == 0) { Enemy_StartFinishingBlow(play, &this->actor); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_FALL_DEAD); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_FALL_DEAD); this->actor.flags &= ~ACTOR_FLAG_0; } else { if (this->actor.colChkInfo.damage != 0) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_FALL_DAMAGE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_FALL_DAMAGE); } } diff --git a/src/overlays/actors/ovl_En_Weiyer/z_en_weiyer.c b/src/overlays/actors/ovl_En_Weiyer/z_en_weiyer.c index 24bd6293fe..da9ed88c36 100644 --- a/src/overlays/actors/ovl_En_Weiyer/z_en_weiyer.c +++ b/src/overlays/actors/ovl_En_Weiyer/z_en_weiyer.c @@ -184,7 +184,7 @@ void func_80B32660(EnWeiyer* this) { this->collider.dim.height = sCylinderInit.dim.height + 15; Actor_SetColorFilter(&this->actor, 0, 0xC8, 0, 0x50); this->collider.base.atFlags &= ~AT_ON; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_GOMA_JR_FREEZE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_GOMA_JR_FREEZE); this->actionFunc = func_80B333B8; } @@ -264,7 +264,7 @@ void func_80B328E8(EnWeiyer* this, PlayState* play) { this->unk_194 = 30; if (Rand_ZeroOne() < 0.3333f) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_EIER_CRY); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_EIER_CRY); } } } @@ -312,7 +312,7 @@ void func_80B32C2C(EnWeiyer* this, PlayState* play) { if (this->actor.world.pos.y < this->actor.home.pos.y) { if (this->actor.shape.rot.x > 0) { EffectSsGSplash_Spawn(play, &this->actor.world.pos, NULL, NULL, 1, 400); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_OCTAROCK_SINK); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_OCTAROCK_SINK); } func_80B32538(this); @@ -326,7 +326,7 @@ void func_80B32D30(EnWeiyer* this, PlayState* play) { SkelAnime_Update(&this->skelAnime); if (Animation_OnFrame(&this->skelAnime, 0.0f)) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_EIER_FLUTTER); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_EIER_FLUTTER); } Math_ScaledStepToS(&this->actor.shape.rot.x, 0, 0x800); @@ -495,11 +495,11 @@ void func_80B333B8(EnWeiyer* this, PlayState* play) { if (this->actor.home.pos.y < this->actor.floorHeight) { if (Animation_OnFrame(&this->skelAnime, 0.0f)) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_EIER_FLUTTER); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_EIER_FLUTTER); } if (this->actor.bgCheckFlags & BGCHECKFLAG_GROUND_TOUCH) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_DODO_M_GND); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_DODO_M_GND); } } @@ -526,7 +526,7 @@ void func_80B3349C(EnWeiyer* this, PlayState* play) { } else if (this->actor.yDistToWater < 0.0f) { this->unk_194 = 10; EffectSsGSplash_Spawn(play, &this->actor.world.pos, NULL, NULL, 1, 400); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_OCTAROCK_JUMP); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_OCTAROCK_JUMP); } } else { if (phi_a0 || (this->collider.base.atFlags & AT_HIT)) { @@ -550,7 +550,7 @@ void func_80B3349C(EnWeiyer* this, PlayState* play) { func_80B32434(this); } else if ((this->actor.bgCheckFlags & BGCHECKFLAG_WATER) && (this->actor.shape.rot.x > 0)) { EffectSsGSplash_Spawn(play, &this->actor.world.pos, NULL, NULL, 1, 400); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_OCTAROCK_SINK); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_OCTAROCK_SINK); func_80B32538(this); } else { Math_SmoothStepToS(&this->actor.shape.rot.y, this->actor.yawTowardsPlayer, 8, 0x100, 0x80); @@ -570,7 +570,7 @@ void func_80B3368C(EnWeiyer* this, PlayState* play) { } } else if (Actor_ApplyDamage(&this->actor) == 0) { Enemy_StartFinishingBlow(play, &this->actor); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_EIER_DEAD); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_EIER_DEAD); this->actor.flags &= ~ACTOR_FLAG_0; func_80B32724(this); } else { @@ -602,7 +602,7 @@ void EnWeiyer_Update(Actor* thisx, PlayState* play) { if (this->collider.base.atFlags & AT_HIT) { this->collider.base.atFlags &= ~(AT_ON | AT_HIT); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_EIER_ATTACK); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_EIER_ATTACK); } Collider_UpdateCylinder(&this->actor, &this->collider); diff --git a/src/overlays/actors/ovl_En_Wf/z_en_wf.c b/src/overlays/actors/ovl_En_Wf/z_en_wf.c index 2aef3c07dc..5298534755 100644 --- a/src/overlays/actors/ovl_En_Wf/z_en_wf.c +++ b/src/overlays/actors/ovl_En_Wf/z_en_wf.c @@ -397,7 +397,7 @@ void EnWf_WaitToAppear(EnWf* this, PlayState* play) { this->actionTimer--; if (this->actionTimer == 0) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_WOLFOS_APPEAR); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_WOLFOS_APPEAR); } } else { // actionTimer == 0 if (SkelAnime_Update(&this->skelAnime)) { @@ -474,7 +474,7 @@ void EnWf_Wait(EnWf* this, PlayState* play) { EnWf_SetupSearchForPlayer(this); } if ((play->gameplayFrames & 95) == 0) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_WOLFOS_CRY); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_WOLFOS_CRY); } } } @@ -554,11 +554,11 @@ void EnWf_RunAtPlayer(EnWf* this, PlayState* play) { if (!EnWf_ChangeAction(play, this, false)) { if ((play->gameplayFrames & 95) == 0) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_WOLFOS_CRY); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_WOLFOS_CRY); } if ((prevFrame != (s32)this->skelAnime.curFrame) && (beforeCurFrame <= 0) && ((absPlaySpeed + prevFrame) > 0)) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_WOLFOS_WALK); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_WOLFOS_WALK); Actor_SpawnFloorDustRing(play, &this->actor, &this->actor.world.pos, 20.0f, 3, 3.0f, 50, 50, true); } } @@ -602,7 +602,7 @@ void EnWf_SearchForPlayer(EnWf* this, PlayState* play) { } if ((play->gameplayFrames & 95) == 0) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_WOLFOS_CRY); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_WOLFOS_CRY); } } } @@ -688,12 +688,12 @@ void EnWf_RunAroundPlayer(EnWf* this, PlayState* play) { absPlaySpeed = (s32)(f32)ABS(this->skelAnime.playSpeed); if ((prevFrame != (s32)this->skelAnime.curFrame) && (beforeCurFrame <= 0) && (absPlaySpeed + prevFrame > 0)) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_WOLFOS_WALK); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_WOLFOS_WALK); Actor_SpawnFloorDustRing(play, &this->actor, &this->actor.world.pos, 20.0f, 3, 3.0f, 50, 50, true); } if ((play->gameplayFrames & 95) == 0) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_WOLFOS_CRY); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_WOLFOS_CRY); } if ((Math_CosS(angle1 - this->actor.shape.rot.y) < -0.85f) && !Actor_OtherIsTargeted(play, &this->actor) && @@ -739,7 +739,7 @@ void EnWf_Slash(EnWf* this, PlayState* play) { if (((curFrame >= 9) && (curFrame <= 12)) || ((curFrame >= 17) && (curFrame <= 19))) { if (this->slashStatus == 0) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_WOLFOS_ATTACK); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_WOLFOS_ATTACK); } this->slashStatus = 1; @@ -844,7 +844,7 @@ void EnWf_SetupBackflipAway(EnWf* this) { this->actionTimer = 0; this->unk_300 = true; this->action = WOLFOS_ACTION_BACKFLIP_AWAY; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_STAL_JUMP); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_STAL_JUMP); EnWf_SetupAction(this, EnWf_BackflipAway); } @@ -860,7 +860,7 @@ void EnWf_BackflipAway(EnWf* this, PlayState* play) { } } if ((play->state.frames & 95) == 0) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_WOLFOS_CRY); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_WOLFOS_CRY); } } @@ -869,7 +869,7 @@ void EnWf_SetupStunned(EnWf* this) { this->actor.speedXZ = 0.0f; } - Audio_PlayActorSound2(&this->actor, NA_SE_EN_GOMA_JR_FREEZE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_GOMA_JR_FREEZE); Animation_PlayOnceSetSpeed(&this->skelAnime, &gWolfosDamagedAnim, 0.0f); this->action = WOLFOS_ACTION_STUNNED; EnWf_SetupAction(this, EnWf_Stunned); @@ -909,7 +909,7 @@ void EnWf_SetupDamaged(EnWf* this) { this->unk_2E2 = 0; this->actor.world.rot.y = this->actor.yawTowardsPlayer; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_WOLFOS_DAMAGE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_WOLFOS_DAMAGE); this->action = WOLFOS_ACTION_DAMAGED; EnWf_SetupAction(this, EnWf_Damaged); } @@ -964,7 +964,7 @@ void EnWf_SetupSomersaultAndAttack(EnWf* this) { this->action = WOLFOS_ACTION_TURN_TOWARDS_PLAYER; this->actor.speedXZ = 6.5f; this->actor.velocity.y = 15.0f; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_STAL_JUMP); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_STAL_JUMP); this->actor.world.rot.y = this->actor.shape.rot.y; EnWf_SetupAction(this, EnWf_SomersaultAndAttack); } @@ -1169,12 +1169,12 @@ void EnWf_Sidestep(EnWf* this, PlayState* play) { } if ((prevFrame != (s32)this->skelAnime.curFrame) && (beforeCurFrame <= 0) && ((absPlaySpeed + prevFrame) > 0)) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_WOLFOS_WALK); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_WOLFOS_WALK); Actor_SpawnFloorDustRing(play, &this->actor, &this->actor.world.pos, 20.0f, 3, 3.0f, 50, 50, true); } if ((play->gameplayFrames & 95) == 0) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_WOLFOS_CRY); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_WOLFOS_CRY); } } } @@ -1193,7 +1193,7 @@ void EnWf_SetupDie(EnWf* this) { this->action = WOLFOS_ACTION_DIE; this->actor.flags &= ~ACTOR_FLAG_0; this->actionTimer = this->skelAnime.animLength; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_WOLFOS_DEAD); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_WOLFOS_DEAD); EnWf_SetupAction(this, EnWf_Die); } diff --git a/src/overlays/actors/ovl_En_Wood02/z_en_wood02.c b/src/overlays/actors/ovl_En_Wood02/z_en_wood02.c index ef1161dda9..2f6b6b0b54 100644 --- a/src/overlays/actors/ovl_En_Wood02/z_en_wood02.c +++ b/src/overlays/actors/ovl_En_Wood02/z_en_wood02.c @@ -334,7 +334,7 @@ void EnWood02_Update(Actor* thisx, PlayState* play2) { if (this->actor.params <= WOOD_TREE_KAKARIKO_ADULT) { if (this->collider.base.acFlags & AC_HIT) { this->collider.base.acFlags &= ~AC_HIT; - Audio_PlayActorSound2(&this->actor, NA_SE_IT_REFLECTION_WOOD); + Audio_PlayActorSfx2(&this->actor, NA_SE_IT_REFLECTION_WOOD); } if (this->actor.home.rot.y != 0) { @@ -361,7 +361,7 @@ void EnWood02_Update(Actor* thisx, PlayState* play2) { (this->actor.params == WOOD_TREE_OVAL_YELLOW_SPAWNED)) { leavesParams = WOOD_LEAF_YELLOW; } - Audio_PlayActorSound2(&this->actor, NA_SE_EV_TREE_SWING); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_TREE_SWING); for (i = 3; i >= 0; i--) { Actor_Spawn(&play->actorCtx, play, ACTOR_EN_WOOD02, dropsSpawnPt.x, dropsSpawnPt.y, dropsSpawnPt.z, @@ -390,7 +390,7 @@ void EnWood02_Update(Actor* thisx, PlayState* play2) { ((this->unk_14C << 4) | 0x8000)); } this->unk_14C = -0x15; - Audio_PlayActorSound2(&this->actor, NA_SE_EV_TREE_SWING); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_TREE_SWING); } } } else { // Leaves diff --git a/src/overlays/actors/ovl_En_Xc/z_en_xc.c b/src/overlays/actors/ovl_En_Xc/z_en_xc.c index edf81820d5..98d28f46a1 100644 --- a/src/overlays/actors/ovl_En_Xc/z_en_xc.c +++ b/src/overlays/actors/ovl_En_Xc/z_en_xc.c @@ -1537,7 +1537,7 @@ void EnXc_PlayTriforceSFX(Actor* thisx, PlayState* play) { Matrix_MultVec3f(&sp1C, &src); SkinMatrix_Vec3fMtxFMultXYZW(&play->viewProjectionMtxF, &src, &pos, &wDest); - SoundSource_PlaySfxAtFixedWorldPos(play, &pos, 80, NA_SE_EV_TRIFORCE_MARK); + SfxSource_PlaySfxAtFixedWorldPos(play, &pos, 80, NA_SE_EV_TRIFORCE_MARK); this->unk_2A8 = 0; } } diff --git a/src/overlays/actors/ovl_En_Yukabyun/z_en_yukabyun.c b/src/overlays/actors/ovl_En_Yukabyun/z_en_yukabyun.c index 19e1356de0..97d85a32fa 100644 --- a/src/overlays/actors/ovl_En_Yukabyun/z_en_yukabyun.c +++ b/src/overlays/actors/ovl_En_Yukabyun/z_en_yukabyun.c @@ -123,7 +123,7 @@ void EnYukabyun_Update(Actor* thisx, PlayState* play) { this->collider.base.acFlags &= ~AC_HIT; this->collider.base.ocFlags1 &= ~OC1_HIT; this->actor.flags &= ~(ACTOR_FLAG_0 | ACTOR_FLAG_2); - SoundSource_PlaySfxAtFixedWorldPos(play, &this->actor.world.pos, 30, NA_SE_EN_OCTAROCK_ROCK); + SfxSource_PlaySfxAtFixedWorldPos(play, &this->actor.world.pos, 30, NA_SE_EN_OCTAROCK_ROCK); this->actionfunc = EnYukabyun_Break; } diff --git a/src/overlays/actors/ovl_En_Zf/z_en_zf.c b/src/overlays/actors/ovl_En_Zf/z_en_zf.c index a94eb15903..bb073fa884 100644 --- a/src/overlays/actors/ovl_En_Zf/z_en_zf.c +++ b/src/overlays/actors/ovl_En_Zf/z_en_zf.c @@ -648,7 +648,7 @@ void EnZf_SetupDropIn(EnZf* this) { void EnZf_DropIn(EnZf* this, PlayState* play) { if (this->unk_3F0 == 1) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_RIZA_CRY); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_RIZA_CRY); this->actor.flags |= ACTOR_FLAG_0; if (this->actor.params == ENZF_TYPE_LIZALFOS_MINIBOSS_A) { @@ -662,7 +662,7 @@ void EnZf_DropIn(EnZf* this, PlayState* play) { } else if (this->actor.xzDistToPlayer <= 160.0f) { this->unk_3F0 = 0; this->actor.flags |= ACTOR_FLAG_0; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_RIZA_CRY); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_RIZA_CRY); } this->actor.world.pos.y = this->actor.floorHeight + 300.0f; @@ -671,7 +671,7 @@ void EnZf_DropIn(EnZf* this, PlayState* play) { } if ((this->actor.bgCheckFlags & (BGCHECKFLAG_GROUND | BGCHECKFLAG_GROUND_TOUCH)) && (this->hopAnimIndex != 0)) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_RIZA_ONGND); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_RIZA_ONGND); Animation_Change(&this->skelAnime, &gZfLandingAnim, 1.0f, 0.0f, 17.0f, ANIMMODE_ONCE, 0.0f); this->hopAnimIndex = 0; this->actor.bgCheckFlags &= ~BGCHECKFLAG_GROUND_TOUCH; @@ -752,7 +752,7 @@ void func_80B4543C(EnZf* this, PlayState* play) { } if ((play->gameplayFrames & 0x5F) == 0) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_RIZA_CRY); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_RIZA_CRY); } } } @@ -904,14 +904,14 @@ void EnZf_ApproachPlayer(EnZf* this, PlayState* play) { } if ((play->gameplayFrames & 0x5F) == 0) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_RIZA_CRY); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_RIZA_CRY); } if (prevFrame != (s32)this->skelAnime.curFrame) { afterPrevFrame = absPlaySpeed + prevFrame; if (((beforeCurFrame < 2) && (afterPrevFrame >= 4)) || ((beforeCurFrame < 32) && (afterPrevFrame >= 34))) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_RIZA_WALK); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_RIZA_WALK); } } } @@ -930,7 +930,7 @@ void EnZf_SetupJumpForward(EnZf* this) { } this->action = ENZF_ACTION_JUMP_FORWARD; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_RIZA_JUMP); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_RIZA_JUMP); EnZf_SetupAction(this, EnZf_JumpForward); } @@ -946,7 +946,7 @@ void EnZf_JumpForward(EnZf* this, PlayState* play) { if (this->unk_3F0 == 0) { Animation_Change(&this->skelAnime, &gZfLandingAnim, 3.0f, 0.0f, 17.0f, ANIMMODE_ONCE, -3.0f); this->unk_3F0 = 10; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_RIZA_JUMP); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_RIZA_JUMP); } else { this->actor.speedXZ = 0.0f; this->hopAnimIndex = 0; @@ -954,7 +954,7 @@ void EnZf_JumpForward(EnZf* this, PlayState* play) { } } if ((play->gameplayFrames & 0x5F) == 0) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_RIZA_CRY); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_RIZA_CRY); } if ((this->actor.params == ENZF_TYPE_DINOLFOS) && @@ -1024,7 +1024,7 @@ void func_80B46098(EnZf* this, PlayState* play) { } } if ((play->gameplayFrames & 0x5F) == 0) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_RIZA_CRY); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_RIZA_CRY); } } } @@ -1141,12 +1141,12 @@ void func_80B463E4(EnZf* this, PlayState* play) { if (((beforeCurFrame < 14) && (afterPrevFrame >= 16)) || ((beforeCurFrame < 27) && (afterPrevFrame >= 29))) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_RIZA_WALK); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_RIZA_WALK); } } if ((play->gameplayFrames & 0x5F) == 0) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_RIZA_CRY); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_RIZA_CRY); } if ((Math_CosS(angleBehindPlayer - this->actor.shape.rot.y) < -0.85f) || (this->unk_3F0 == 0)) { @@ -1174,7 +1174,7 @@ void EnZf_SetupSlash(EnZf* this) { this->swordCollider.base.atFlags &= ~AT_BOUNCED; this->action = ENZF_ACTION_SLASH; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_RIZA_CRY); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_RIZA_CRY); this->actor.speedXZ = 0.0f; EnZf_SetupAction(this, EnZf_Slash); } @@ -1187,7 +1187,7 @@ void EnZf_Slash(EnZf* this, PlayState* play) { this->actor.speedXZ = 0.0f; if ((s32)this->skelAnime.curFrame == 10) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_RIZA_ATTACK); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_RIZA_ATTACK); } if (SkelAnime_Update(&this->skelAnime)) { @@ -1260,7 +1260,7 @@ void EnZf_SetupJumpBack(EnZf* this) { this->action = ENZF_ACTION_JUMP_BACK; this->actor.velocity.y = 15.0f; this->actor.speedXZ = -15.0f; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_RIZA_JUMP); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_RIZA_JUMP); EnZf_SetupAction(this, EnZf_JumpBack); } @@ -1276,7 +1276,7 @@ void EnZf_JumpBack(EnZf* this, PlayState* play) { if (this->unk_3F0 == 0) { Animation_Change(&this->skelAnime, &gZfLandingAnim, 3.0f, 0.0f, 17.0f, ANIMMODE_ONCE, -3.0f); this->unk_3F0 = 10; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_RIZA_JUMP); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_RIZA_JUMP); } else if ((play->gameplayFrames % 2) != 0) { func_80B483E4(this, play); } else { @@ -1285,7 +1285,7 @@ void EnZf_JumpBack(EnZf* this, PlayState* play) { } if ((play->state.frames & 0x5F) == 0) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_RIZA_CRY); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_RIZA_CRY); } } @@ -1304,7 +1304,7 @@ void EnZf_SetupStunned(EnZf* this) { Animation_PlayOnceSetSpeed(&this->skelAnime, &gZfKnockedBackAnim, 0.0f); } - Audio_PlayActorSound2(&this->actor, NA_SE_EN_GOMA_JR_FREEZE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_GOMA_JR_FREEZE); this->action = ENZF_ACTION_STUNNED; EnZf_SetupAction(this, EnZf_Stunned); } @@ -1455,7 +1455,7 @@ void EnZf_HopAndTaunt(EnZf* this, PlayState* play) { } if ((play->gameplayFrames & 0x5F) == 0) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_RIZA_CRY); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_RIZA_CRY); } } } @@ -1487,7 +1487,7 @@ void EnZf_HopAway(EnZf* this, PlayState* play) { sp54 = this->hopAnimIndex; if ((play->gameplayFrames & 0x5F) == 0) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_RIZA_CRY); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_RIZA_CRY); } // Upstairs @@ -1546,7 +1546,7 @@ void EnZf_HopAway(EnZf* this, PlayState* play) { case 1: if ((this->actor.bgCheckFlags & BGCHECKFLAG_GROUND_TOUCH) || (this->actor.bgCheckFlags & BGCHECKFLAG_GROUND)) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_RIZA_ONGND); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_RIZA_ONGND); this->actor.velocity.y = 0.0f; this->actor.world.pos.y = this->actor.floorHeight; this->actor.speedXZ = 0.0f; @@ -1603,7 +1603,7 @@ void EnZf_DrawSword(EnZf* this, PlayState* play) { } if (SkelAnime_Update(&this->skelAnime)) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_RIZA_CRY); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_RIZA_CRY); this->actor.world.rot.y = yawTowardsPlayer; this->hopAnimIndex = -1; func_80B45384(this); @@ -1634,7 +1634,7 @@ void EnZf_SetupDamaged(EnZf* this) { this->actor.world.rot.y = this->actor.yawTowardsPlayer; } - Audio_PlayActorSound2(&this->actor, NA_SE_EN_RIZA_DAMAGE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_RIZA_DAMAGE); this->action = ENZF_ACTION_DAMAGED; EnZf_SetupAction(this, EnZf_Damaged); } @@ -1709,7 +1709,7 @@ void EnZf_SetupJumpUp(EnZf* this) { this->action = ENZF_ACTION_JUMP_UP; this->actor.velocity.y = 22.0f; this->actor.speedXZ = 7.5f; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_RIZA_JUMP); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_RIZA_JUMP); this->actor.world.rot.y = this->actor.shape.rot.y; EnZf_SetupAction(this, EnZf_JumpUp); } @@ -1731,7 +1731,7 @@ void EnZf_JumpUp(EnZf* this, PlayState* play) { this->actor.speedXZ = 0.0f; this->actor.world.pos.y = this->actor.floorHeight; EnZf_SetupSlash(this); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_RIZA_ATTACK); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_RIZA_ATTACK); this->skelAnime.curFrame = 13.0f; } } @@ -1893,11 +1893,11 @@ void EnZf_CircleAroundPlayer(EnZf* this, PlayState* play) { if (((beforeCurFrame < 14) && (afterPrevFrame >= 16)) || ((beforeCurFrame < 27) && (afterPrevFrame >= 29))) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_RIZA_WALK); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_RIZA_WALK); } } if ((play->gameplayFrames & 0x5F) == 0) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_RIZA_CRY); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_RIZA_CRY); } } } @@ -1934,7 +1934,7 @@ void EnZf_SetupDie(EnZf* this) { } D_80B4A1B0 = 0; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_RIZA_DEAD); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_RIZA_DEAD); EnZf_SetupAction(this, EnZf_Die); } @@ -1970,7 +1970,7 @@ void EnZf_Die(EnZf* this, PlayState* play) { s32 curFrame = this->skelAnime.curFrame; if ((curFrame == 10) || (curFrame == 18)) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_RIZA_DOWN); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_RIZA_DOWN); } } } @@ -2010,7 +2010,7 @@ void EnZf_UpdateDamage(EnZf* this, PlayState* play) { EnZf_SetupStunned(this); } } else { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_RIZA_CRY); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_RIZA_CRY); Actor_SetColorFilter(&this->actor, 0x4000, 255, 0, 8); if (Actor_ApplyDamage(&this->actor) == 0) { diff --git a/src/overlays/actors/ovl_En_Zl2/z_en_zl2.c b/src/overlays/actors/ovl_En_Zl2/z_en_zl2.c index a7492d3d73..e5ad763cfc 100644 --- a/src/overlays/actors/ovl_En_Zl2/z_en_zl2.c +++ b/src/overlays/actors/ovl_En_Zl2/z_en_zl2.c @@ -1604,7 +1604,7 @@ void EnZl2_Init(Actor* thisx, PlayState* play) { switch (thisx->params) { case 1: - Audio_SetSoundBanksMute(0x6F); + Audio_SetSfxBanksMute(0x6F); break; case 4: gSaveContext.timer2State = 0; diff --git a/src/overlays/actors/ovl_En_Zl3/z_en_zl3.c b/src/overlays/actors/ovl_En_Zl3/z_en_zl3.c index 57eeeb457b..91fffe50cb 100644 --- a/src/overlays/actors/ovl_En_Zl3/z_en_zl3.c +++ b/src/overlays/actors/ovl_En_Zl3/z_en_zl3.c @@ -1017,7 +1017,7 @@ void func_80B55808(EnZl3* this) { } void func_80B5582C(EnZl3* this) { - Audio_PlaySoundRandom(&D_80B5A488, NA_SE_VO_Z1_CRY_0, NA_SE_VO_Z1_CRY_1 - NA_SE_VO_Z1_CRY_0 + 1); + Audio_PlaySfxRandom(&D_80B5A488, NA_SE_VO_Z1_CRY_0, NA_SE_VO_Z1_CRY_1 - NA_SE_VO_Z1_CRY_0 + 1); } void func_80B5585C(EnZl3* this) { @@ -2569,8 +2569,8 @@ void func_80B59828(EnZl3* this, PlayState* play) { void func_80B59A80(EnZl3* this, PlayState* play) { if (func_80B59768(this, play)) { - Audio_PlaySoundGeneral(NA_SE_OC_REVENGE, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_OC_REVENGE, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } } diff --git a/src/overlays/actors/ovl_En_Zl4/z_en_zl4.c b/src/overlays/actors/ovl_En_Zl4/z_en_zl4.c index d32098232f..779263e0bd 100644 --- a/src/overlays/actors/ovl_En_Zl4/z_en_zl4.c +++ b/src/overlays/actors/ovl_En_Zl4/z_en_zl4.c @@ -446,7 +446,7 @@ s32 EnZl4_CsMeetPlayer(EnZl4* this, PlayState* play) { switch (this->talkState) { case 0: if (this->skelAnime.curFrame == 50.0f) { - Audio_PlayActorSound2(&this->actor, NA_SE_VO_Z0_MEET); + Audio_PlayActorSfx2(&this->actor, NA_SE_VO_Z0_MEET); } if (!EnZl4_SetNextAnim(this, ZL4_ANIM_4)) { break; @@ -551,7 +551,7 @@ s32 EnZl4_CsAskStone(EnZl4* this, PlayState* play) { break; case 4: if (this->skelAnime.curFrame == 16.0f) { - Audio_PlayActorSound2(&this->actor, NA_SE_VO_Z0_QUESTION); + Audio_PlayActorSfx2(&this->actor, NA_SE_VO_Z0_QUESTION); } if (EnZl4_SetNextAnim(this, ZL4_ANIM_10)) { this->talkState++; @@ -598,7 +598,7 @@ s32 EnZl4_CsAskStone(EnZl4* this, PlayState* play) { break; case 7: if (this->skelAnime.curFrame == 17.0f) { - Audio_PlayActorSound2(&this->actor, NA_SE_VO_Z0_SMILE_0); + Audio_PlayActorSfx2(&this->actor, NA_SE_VO_Z0_SMILE_0); } if (EnZl4_SetNextAnim(this, ZL4_ANIM_29)) { this->talkState++; @@ -739,7 +739,7 @@ s32 EnZl4_CsAskName(EnZl4* this, PlayState* play) { break; case 12: if (this->skelAnime.curFrame == 5.0f) { - Audio_PlayActorSound2(&this->actor, NA_SE_VO_Z0_SIGH_0); + Audio_PlayActorSfx2(&this->actor, NA_SE_VO_Z0_SIGH_0); } if (EnZl4_SetNextAnim(this, ZL4_ANIM_12)) { this->talkState++; @@ -834,7 +834,7 @@ s32 EnZl4_CsTellLegend(EnZl4* this, PlayState* play) { this->mouthExpression = ZL4_MOUTH_SURPRISED; Message_StartTextbox(play, 0x7038, NULL); this->talkState++; - Audio_PlayActorSound2(&this->actor, NA_SE_VO_Z0_HURRY); + Audio_PlayActorSfx2(&this->actor, NA_SE_VO_Z0_HURRY); } break; case 5: diff --git a/src/overlays/actors/ovl_En_Zo/z_en_zo.c b/src/overlays/actors/ovl_En_Zo/z_en_zo.c index 73160159d3..98bd3f0480 100644 --- a/src/overlays/actors/ovl_En_Zo/z_en_zo.c +++ b/src/overlays/actors/ovl_En_Zo/z_en_zo.c @@ -639,7 +639,7 @@ void EnZo_Submerged(EnZo* this, PlayState* play) { void EnZo_Surface(EnZo* this, PlayState* play) { if (this->actor.yDistToWater < 54.0f) { - Audio_PlayActorSound2(&this->actor, NA_SE_EV_OUT_OF_WATER); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_OUT_OF_WATER); EnZo_SpawnSplashes(this); Animation_ChangeByInfo(&this->skelAnime, sAnimationInfo, ENZO_ANIM_3); this->actor.flags |= ACTOR_FLAG_0; @@ -690,7 +690,7 @@ void EnZo_TreadWater(EnZo* this, PlayState* play) { void EnZo_Dive(EnZo* this, PlayState* play) { if (Animation_OnFrame(&this->skelAnime, this->skelAnime.endFrame)) { - Audio_PlayActorSound2(&this->actor, NA_SE_EV_DIVE_WATER); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_DIVE_WATER); EnZo_SpawnSplashes(this); this->actor.flags &= ~ACTOR_FLAG_0; this->actor.velocity.y = -4.0f; diff --git a/src/overlays/actors/ovl_En_fHG/z_en_fhg.c b/src/overlays/actors/ovl_En_fHG/z_en_fhg.c index 93970c064b..94f88ef272 100644 --- a/src/overlays/actors/ovl_En_fHG/z_en_fhg.c +++ b/src/overlays/actors/ovl_En_fHG/z_en_fhg.c @@ -141,7 +141,7 @@ void EnfHG_Intro(EnfHG* this, PlayState* play) { GND_BOSSROOM_CENTER_Z + 308.0f, 0, 0, 0, (SHUTTER_PG_BARS << 6)); } if (this->timers[0] == 51) { - Audio_PlayActorSound2(this->actor.child, NA_SE_EV_SPEAR_FENCE); + Audio_PlayActorSfx2(this->actor.child, NA_SE_EV_SPEAR_FENCE); Audio_QueueSeqCmd(SEQ_PLAYER_BGM_MAIN << 24 | NA_BGM_BOSS); } if (this->timers[0] == 0) { @@ -180,7 +180,7 @@ void EnfHG_Intro(EnfHG* this, PlayState* play) { GND_BOSSROOM_CENTER_Z + 308.0f, 0, 0, 0, (SHUTTER_PG_BARS << 6)); } if (this->timers[0] == 21) { - Audio_PlayActorSound2(this->actor.child, NA_SE_EV_SPEAR_FENCE); + Audio_PlayActorSfx2(this->actor.child, NA_SE_EV_SPEAR_FENCE); } if (this->timers[0] == 0) { this->cutsceneState = INTRO_BACK; @@ -189,7 +189,7 @@ void EnfHG_Intro(EnfHG* this, PlayState* play) { break; case INTRO_BACK: if (this->timers[0] == 25) { - Audio_PlayActorSound2(&this->actor, NA_SE_EV_GANON_HORSE_GROAN); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_GANON_HORSE_GROAN); } if (this->timers[0] == 20) { func_8002DF54(play, &this->actor, 9); @@ -219,7 +219,7 @@ void EnfHG_Intro(EnfHG* this, PlayState* play) { Math_ApproachF(&this->subCamAt.z, GND_BOSSROOM_CENTER_Z - 65.0f, 0.1f, this->subCamVelFactor * 40.0f); Math_ApproachF(&this->subCamVelFactor, 1.0f, 1.0f, 0.05f); if (this->timers[0] == 5) { - Audio_PlayActorSound2(&this->actor, NA_SE_EV_HORSE_SANDDUST); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_HORSE_SANDDUST); } if (this->timers[0] == 0) { this->cutsceneState = INTRO_CUT; @@ -260,16 +260,16 @@ void EnfHG_Intro(EnfHG* this, PlayState* play) { if ((this->timers[0] == 245) || (this->timers[0] == 3)) { Animation_MorphToPlayOnce(&this->skin.skelAnime, &gPhantomHorseRearingAnim, -8.0f); this->bossGndSignal = FHG_REAR; - Audio_PlayActorSound2(&this->actor, NA_SE_EV_GANON_HORSE_NEIGH); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_GANON_HORSE_NEIGH); if (this->timers[0] == 3) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_FANTOM_VOICE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_FANTOM_VOICE); } } if (this->timers[0] == 192) { - Audio_PlayActorSound2(&this->actor, NA_SE_EV_HORSE_SANDDUST); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_HORSE_SANDDUST); } if (this->timers[0] == 212) { - Audio_PlayActorSound2(&this->actor, NA_SE_EV_HORSE_LAND2); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_HORSE_LAND2); Animation_Change(&this->skin.skelAnime, &gPhantomHorseIdleAnim, 0.3f, 0.0f, 5.0f, ANIMMODE_LOOP_INTERP, -10.0f); } @@ -343,8 +343,8 @@ void EnfHG_Intro(EnfHG* this, PlayState* play) { Animation_Change(&this->skin.skelAnime, &gPhantomHorseLeapAnim, 1.0f, 0.0f, Animation_GetLastFrame(&gPhantomHorseLeapAnim), ANIMMODE_ONCE_INTERP, -4.0f); this->bossGndSignal = FHG_SPUR; - Audio_PlayActorSound2(&this->actor, NA_SE_EN_FANTOM_VOICE); - Audio_PlayActorSound2(&this->actor, NA_SE_EV_GANON_HORSE_NEIGH); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_FANTOM_VOICE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_GANON_HORSE_NEIGH); } break; case INTRO_RETREAT: @@ -355,7 +355,7 @@ void EnfHG_Intro(EnfHG* this, PlayState* play) { } if (this->timers[0] == 170) { func_8002DF54(play, &this->actor, 8); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_FANTOM_MASIC2); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_FANTOM_MASIC2); } Math_ApproachF(&this->subCamEye.z, this->subCamPanZ + (GND_BOSSROOM_CENTER_Z + 100.0f), 0.1f, this->subCamVelFactor * 1.5f); @@ -484,7 +484,7 @@ void EnfHG_Approach(EnfHG* this, PlayState* play) { this->turnTarget = -0x8000; } else { this->actionFunc = EnfHG_Attack; - Audio_PlayActorSound2(&this->actor, NA_SE_EV_GANON_HORSE_NEIGH); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_GANON_HORSE_NEIGH); this->timers[0] = 40; Actor_SpawnAsChild(&play->actorCtx, &this->actor, play, ACTOR_EN_FHG_FIRE, this->actor.world.pos.x, this->actor.world.pos.y + 50.0f, this->actor.world.pos.z, 0, @@ -515,8 +515,8 @@ void EnfHG_Attack(EnfHG* this, PlayState* play) { Math_ApproachF(&this->warpColorFilterB, play->lightCtx.fogColor[0], 1.0f, 10.0f); Math_ApproachF(&this->warpColorFilterUnk1, 0.0f, 1.0f, 5.0f); if (this->timers[1] == 29) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_FANTOM_MASIC2); - Audio_PlayActorSound2(&this->actor, NA_SE_EN_FANTOM_VOICE); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_FANTOM_MASIC2); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_FANTOM_VOICE); } if (this->hitTimer == 0) { if (this->timers[1] == 24) { @@ -645,7 +645,7 @@ void EnfHG_Retreat(EnfHG* this, PlayState* play) { Math_ApproachF(&this->actor.world.pos.y, 200.0f, 0.05f, 1.0f); this->actor.scale.y = this->actor.scale.x; if ((this->timers[0] == 80) && (this->actor.params == GND_REAL_BOSS)) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_FANTOM_LAUGH); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_FANTOM_LAUGH); } if (this->timers[0] == 0) { BossGanondrof* bossGnd = (BossGanondrof*)this->actor.parent; diff --git a/src/overlays/actors/ovl_Fishing/z_fishing.c b/src/overlays/actors/ovl_Fishing/z_fishing.c index fb466d4886..f3b1d0ca9c 100644 --- a/src/overlays/actors/ovl_Fishing/z_fishing.c +++ b/src/overlays/actors/ovl_Fishing/z_fishing.c @@ -410,7 +410,7 @@ static f32 sFishGroupAngle1; static f32 sFishGroupAngle2; static f32 sFishGroupAngle3; static FishingEffect sEffects[FISHING_EFFECT_COUNT]; -static Vec3f sStreamSoundProjectedPos; +static Vec3f sStreamSfxProjectedPos; void Fishing_SetColliderElement(s32 index, ColliderJntSph* collider, Vec3f* pos, f32 scale) { collider->elements[index].dim.worldSphere.center.x = pos->x; @@ -2820,7 +2820,7 @@ void func_80B71278(Fishing* this, u8 arg1) { } } - Audio_PlayActorSound2(&this->actor, sfxId); + Audio_PlayActorSfx2(&this->actor, sfxId); } void Fishing_HandleAquariumDialog(Fishing* this, PlayState* play) { @@ -3248,7 +3248,7 @@ void Fishing_UpdateFish(Actor* thisx, PlayState* play2) { Fishing_SpawnRipple(&this->actor.projectedPos, play->specialEffects, &spB8, 30.0f, 400.0f, 150, 90); - Audio_PlayActorSound2(&this->actor, NA_SE_PL_CATCH_BOOMERANG); + Audio_PlayActorSfx2(&this->actor, NA_SE_PL_CATCH_BOOMERANG); break; } } @@ -3522,7 +3522,7 @@ void Fishing_UpdateFish(Actor* thisx, PlayState* play2) { this->unk_194 = 2000.0f; } else if (sp124 < 10.0f) { if (sLurePos.y > (WATER_SURFACE_Y(play) - 10.0f)) { - Audio_PlayActorSound2(&this->actor, NA_SE_EV_JUMP_OUT_WATER); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_JUMP_OUT_WATER); func_80078884(NA_SE_PL_CATCH_BOOMERANG); } @@ -4152,7 +4152,7 @@ void Fishing_UpdateFish(Actor* thisx, PlayState* play2) { this->actor.velocity.x = this->actor.world.pos.x * -0.003f; this->actor.velocity.z = this->actor.world.pos.z * -0.003f; - Audio_PlayActorSound2(&this->actor, NA_SE_EV_FISH_LEAP); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_FISH_LEAP); func_80B70CF0(this, play); if (Rand_ZeroOne() < 0.5f) { @@ -5065,7 +5065,7 @@ void Fishing_HandleOwnerDialog(Fishing* this, PlayState* play) { static s16 D_80B7AFC4[] = { 0, 1, 2, 2, 1 }; -static Vec3f sStreamSoundPos = { 670.0f, 0.0f, -600.0f }; +static Vec3f sStreamSfxPos = { 670.0f, 0.0f, -600.0f }; static Vec3s sSinkingLureLocationPos[] = { { -364, -30, -269 }, @@ -5667,9 +5667,9 @@ void Fishing_UpdateOwner(Actor* thisx, PlayState* play2) { } } - SkinMatrix_Vec3fMtxFMultXYZW(&play->viewProjectionMtxF, &sStreamSoundPos, &sStreamSoundProjectedPos, &sProjectedW); + SkinMatrix_Vec3fMtxFMultXYZW(&play->viewProjectionMtxF, &sStreamSfxPos, &sStreamSfxProjectedPos, &sProjectedW); - func_80078914(&sStreamSoundProjectedPos, NA_SE_EV_WATER_WALL - SFX_FLAG); + func_80078914(&sStreamSfxProjectedPos, NA_SE_EV_WATER_WALL - SFX_FLAG); gSaveContext.minigameScore = (SQ((f32)D_80B7A678) * 0.0036f) + 0.5f; diff --git a/src/overlays/actors/ovl_Item_Ocarina/z_item_ocarina.c b/src/overlays/actors/ovl_Item_Ocarina/z_item_ocarina.c index 532f7626fc..8b446eb8b2 100644 --- a/src/overlays/actors/ovl_Item_Ocarina/z_item_ocarina.c +++ b/src/overlays/actors/ovl_Item_Ocarina/z_item_ocarina.c @@ -108,7 +108,7 @@ void ItemOcarina_Fly(ItemOcarina* this, PlayState* play) { this->actor.gravity = -0.1f; this->actor.minVelocityY = -0.5f; this->spinRotOffset = 0; - Audio_PlayActorSound2(&this->actor, NA_SE_EV_BOMB_DROP_WATER); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_BOMB_DROP_WATER); } // landed in water diff --git a/src/overlays/actors/ovl_Obj_Bean/z_obj_bean.c b/src/overlays/actors/ovl_Obj_Bean/z_obj_bean.c index 72920d1020..448192bb76 100644 --- a/src/overlays/actors/ovl_Obj_Bean/z_obj_bean.c +++ b/src/overlays/actors/ovl_Obj_Bean/z_obj_bean.c @@ -703,7 +703,7 @@ void ObjBean_GrowWaterPhase3(ObjBean* this, PlayState* play) { Item_DropCollectible(play, &itemDropPos, ITEM00_FLEXIBLE); } this->stateFlags |= BEAN_STATE_BEEN_WATERED; - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EV_BUTTERFRY_TO_FAIRY); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EV_BUTTERFRY_TO_FAIRY); func_80078884(NA_SE_SY_TRE_BOX_APPEAR); } } else if (this->timer <= 0) { diff --git a/src/overlays/actors/ovl_Obj_Bombiwa/z_obj_bombiwa.c b/src/overlays/actors/ovl_Obj_Bombiwa/z_obj_bombiwa.c index e938f6c29c..aae36f2e28 100644 --- a/src/overlays/actors/ovl_Obj_Bombiwa/z_obj_bombiwa.c +++ b/src/overlays/actors/ovl_Obj_Bombiwa/z_obj_bombiwa.c @@ -128,7 +128,7 @@ void ObjBombiwa_Update(Actor* thisx, PlayState* play) { ((this->collider.base.acFlags & AC_HIT) && (this->collider.info.acHitInfo->toucher.dmgFlags & DMG_HAMMER))) { ObjBombiwa_Break(this, play); Flags_SetSwitch(play, this->actor.params & 0x3F); - SoundSource_PlaySfxAtFixedWorldPos(play, &this->actor.world.pos, 80, NA_SE_EV_WALL_BROKEN); + SfxSource_PlaySfxAtFixedWorldPos(play, &this->actor.world.pos, 80, NA_SE_EV_WALL_BROKEN); if (((this->actor.params >> 0xF) & 1) != 0) { func_80078884(NA_SE_SY_CORRECT_CHIME); } diff --git a/src/overlays/actors/ovl_Obj_Dekujr/z_obj_dekujr.c b/src/overlays/actors/ovl_Obj_Dekujr/z_obj_dekujr.c index 307ad2f323..010aace524 100644 --- a/src/overlays/actors/ovl_Obj_Dekujr/z_obj_dekujr.c +++ b/src/overlays/actors/ovl_Obj_Dekujr/z_obj_dekujr.c @@ -96,7 +96,7 @@ void ObjDekujr_ComeUp(ObjDekujr* this, PlayState* play) { this->unk_19B = 0; } else { if (play->csCtx.frames == 351) { - Audio_PlayActorSound2(&this->actor, NA_SE_EV_COME_UP_DEKU_JR); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_COME_UP_DEKU_JR); } csCmdNPCAction = play->csCtx.npcActions[1]; if (csCmdNPCAction != NULL) { diff --git a/src/overlays/actors/ovl_Obj_Elevator/z_obj_elevator.c b/src/overlays/actors/ovl_Obj_Elevator/z_obj_elevator.c index 6cd7e51e05..842eed5acc 100644 --- a/src/overlays/actors/ovl_Obj_Elevator/z_obj_elevator.c +++ b/src/overlays/actors/ovl_Obj_Elevator/z_obj_elevator.c @@ -104,10 +104,10 @@ void func_80B92D44(ObjElevator* this, PlayState* play) { Actor* thisx = &this->dyna.actor; if (fabsf(Math_SmoothStepToF(&thisx->world.pos.y, this->unk_168, 1.0f, this->unk_16C, 0.0f)) < 0.001f) { - Audio_PlayActorSound2(thisx, NA_SE_EV_FOOT_SWITCH); + Audio_PlayActorSfx2(thisx, NA_SE_EV_FOOT_SWITCH); func_80B92C5C(this); } else { - Audio_PlayActorSound2(thisx, NA_SE_EV_STONE_STATUE_OPEN - SFX_FLAG); + Audio_PlayActorSfx2(thisx, NA_SE_EV_STONE_STATUE_OPEN - SFX_FLAG); } } diff --git a/src/overlays/actors/ovl_Obj_Hamishi/z_obj_hamishi.c b/src/overlays/actors/ovl_Obj_Hamishi/z_obj_hamishi.c index bc62183e47..1e08c36d0e 100644 --- a/src/overlays/actors/ovl_Obj_Hamishi/z_obj_hamishi.c +++ b/src/overlays/actors/ovl_Obj_Hamishi/z_obj_hamishi.c @@ -179,7 +179,7 @@ void ObjHamishi_Update(Actor* thisx, PlayState* play) { this->shakeRotSize = 400.0f; } else { ObjHamishi_Break(this, play); - SoundSource_PlaySfxAtFixedWorldPos(play, &this->actor.world.pos, 40, NA_SE_EV_WALL_BROKEN); + SfxSource_PlaySfxAtFixedWorldPos(play, &this->actor.world.pos, 40, NA_SE_EV_WALL_BROKEN); Flags_SetSwitch(play, this->actor.params & 0x3F); Actor_Kill(&this->actor); } diff --git a/src/overlays/actors/ovl_Obj_Ice_Poly/z_obj_ice_poly.c b/src/overlays/actors/ovl_Obj_Ice_Poly/z_obj_ice_poly.c index 24989fa383..d21d0cf131 100644 --- a/src/overlays/actors/ovl_Obj_Ice_Poly/z_obj_ice_poly.c +++ b/src/overlays/actors/ovl_Obj_Ice_Poly/z_obj_ice_poly.c @@ -167,7 +167,7 @@ void ObjIcePoly_Melt(ObjIcePoly* this, PlayState* play) { this->meltTimer++; if (this->meltTimer == 0) { this->meltTimer = 40; - Audio_PlayActorSound2(&this->actor, NA_SE_EV_ICE_MELT); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_ICE_MELT); } } else { if (this->meltTimer != 0) { diff --git a/src/overlays/actors/ovl_Obj_Kibako/z_obj_kibako.c b/src/overlays/actors/ovl_Obj_Kibako/z_obj_kibako.c index 654b9fd384..cbdc396c74 100644 --- a/src/overlays/actors/ovl_Obj_Kibako/z_obj_kibako.c +++ b/src/overlays/actors/ovl_Obj_Kibako/z_obj_kibako.c @@ -189,12 +189,12 @@ void ObjKibako_Idle(ObjKibako* this, PlayState* play) { ObjKibako_SetupHeld(this); } else if ((this->actor.bgCheckFlags & BGCHECKFLAG_WATER) && (this->actor.yDistToWater > 19.0f)) { ObjKibako_WaterBreak(this, play); - SoundSource_PlaySfxAtFixedWorldPos(play, &this->actor.world.pos, 20, NA_SE_EV_WOODBOX_BREAK); + SfxSource_PlaySfxAtFixedWorldPos(play, &this->actor.world.pos, 20, NA_SE_EV_WOODBOX_BREAK); ObjKibako_SpawnCollectible(this, play); Actor_Kill(&this->actor); } else if (this->collider.base.acFlags & AC_HIT) { ObjKibako_AirBreak(this, play); - SoundSource_PlaySfxAtFixedWorldPos(play, &this->actor.world.pos, 20, NA_SE_EV_WOODBOX_BREAK); + SfxSource_PlaySfxAtFixedWorldPos(play, &this->actor.world.pos, 20, NA_SE_EV_WOODBOX_BREAK); ObjKibako_SpawnCollectible(this, play); Actor_Kill(&this->actor); } else { @@ -226,7 +226,7 @@ void ObjKibako_Held(ObjKibako* this, PlayState* play) { if (Actor_HasNoParent(&this->actor, play)) { this->actor.room = play->roomCtx.curRoom.num; if (fabsf(this->actor.speedXZ) < 0.1f) { - Audio_PlayActorSound2(&this->actor, NA_SE_EV_PUT_DOWN_WOODBOX); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_PUT_DOWN_WOODBOX); ObjKibako_SetupIdle(this); this->collider.base.ocFlags1 &= ~OC1_TYPE_PLAYER; } else { @@ -252,12 +252,12 @@ void ObjKibako_Thrown(ObjKibako* this, PlayState* play) { if ((this->actor.bgCheckFlags & (BGCHECKFLAG_GROUND | BGCHECKFLAG_GROUND_TOUCH | BGCHECKFLAG_WALL)) || (this->collider.base.atFlags & AT_HIT)) { ObjKibako_AirBreak(this, play); - SoundSource_PlaySfxAtFixedWorldPos(play, &this->actor.world.pos, 20, NA_SE_EV_WOODBOX_BREAK); + SfxSource_PlaySfxAtFixedWorldPos(play, &this->actor.world.pos, 20, NA_SE_EV_WOODBOX_BREAK); ObjKibako_SpawnCollectible(this, play); Actor_Kill(&this->actor); } else if (this->actor.bgCheckFlags & BGCHECKFLAG_WATER_TOUCH) { ObjKibako_WaterBreak(this, play); - SoundSource_PlaySfxAtFixedWorldPos(play, &this->actor.world.pos, 20, NA_SE_EV_WOODBOX_BREAK); + SfxSource_PlaySfxAtFixedWorldPos(play, &this->actor.world.pos, 20, NA_SE_EV_WOODBOX_BREAK); ObjKibako_SpawnCollectible(this, play); Actor_Kill(&this->actor); } else { diff --git a/src/overlays/actors/ovl_Obj_Kibako2/z_obj_kibako2.c b/src/overlays/actors/ovl_Obj_Kibako2/z_obj_kibako2.c index 336de8d2de..4724853931 100644 --- a/src/overlays/actors/ovl_Obj_Kibako2/z_obj_kibako2.c +++ b/src/overlays/actors/ovl_Obj_Kibako2/z_obj_kibako2.c @@ -146,7 +146,7 @@ void ObjKibako2_Idle(ObjKibako2* this, PlayState* play) { if ((this->collider.base.acFlags & AC_HIT) || (this->dyna.actor.home.rot.z != 0) || func_80033684(play, &this->dyna.actor) != NULL) { ObjKibako2_Break(this, play); - SoundSource_PlaySfxAtFixedWorldPos(play, &this->dyna.actor.world.pos, 20, NA_SE_EV_WOODBOX_BREAK); + SfxSource_PlaySfxAtFixedWorldPos(play, &this->dyna.actor.world.pos, 20, NA_SE_EV_WOODBOX_BREAK); this->dyna.actor.flags |= ACTOR_FLAG_4; DynaPoly_DisableCollision(play, &play->colCtx.dyna, this->dyna.bgId); this->dyna.actor.draw = NULL; diff --git a/src/overlays/actors/ovl_Obj_Lift/z_obj_lift.c b/src/overlays/actors/ovl_Obj_Lift/z_obj_lift.c index 957eb1f51e..5e33f6c36e 100644 --- a/src/overlays/actors/ovl_Obj_Lift/z_obj_lift.c +++ b/src/overlays/actors/ovl_Obj_Lift/z_obj_lift.c @@ -176,7 +176,7 @@ void func_80B96678(ObjLift* this, PlayState* play) { } if ((this->timer & 3) == 3) { - SoundSource_PlaySfxAtFixedWorldPos(play, &this->dyna.actor.world.pos, 16, NA_SE_EV_BLOCK_SHAKE); + SfxSource_PlaySfxAtFixedWorldPos(play, &this->dyna.actor.world.pos, 16, NA_SE_EV_BLOCK_SHAKE); } } @@ -200,7 +200,7 @@ void func_80B96840(ObjLift* this, PlayState* play) { if ((this->dyna.actor.floorHeight - this->dyna.actor.world.pos.y) >= (sMaxFallDistances[(this->dyna.actor.params >> 1) & 1] - 0.001f)) { func_80B96160(this, play); - SoundSource_PlaySfxAtFixedWorldPos(play, &this->dyna.actor.world.pos, 20, NA_SE_EV_BOX_BREAK); + SfxSource_PlaySfxAtFixedWorldPos(play, &this->dyna.actor.world.pos, 20, NA_SE_EV_BOX_BREAK); Flags_SetSwitch(play, (this->dyna.actor.params >> 2) & 0x3F); Actor_Kill(&this->dyna.actor); } diff --git a/src/overlays/actors/ovl_Obj_Lightswitch/z_obj_lightswitch.c b/src/overlays/actors/ovl_Obj_Lightswitch/z_obj_lightswitch.c index 10029079f8..e3f0436f8d 100644 --- a/src/overlays/actors/ovl_Obj_Lightswitch/z_obj_lightswitch.c +++ b/src/overlays/actors/ovl_Obj_Lightswitch/z_obj_lightswitch.c @@ -255,7 +255,7 @@ void ObjLightswitch_SetupTurnOn(ObjLightswitch* this) { void ObjLightswitch_TurnOn(ObjLightswitch* this, PlayState* play) { if (func_8005B198() == this->actor.category || this->toggleDelay <= 0) { if (this->timer == 0) { - Audio_PlayActorSound2(&this->actor, NA_SE_EV_TRIFORCE_FLASH); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_TRIFORCE_FLASH); } this->timer++; @@ -270,7 +270,7 @@ void ObjLightswitch_TurnOn(ObjLightswitch* this, PlayState* play) { ObjLightswitch_SetupOn(this); } else if (this->timer == 15) { this->faceTextureIndex = FACE_EYES_OPEN; - Audio_PlayActorSound2(&this->actor, NA_SE_EV_FOOT_SWITCH); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_FOOT_SWITCH); } } } @@ -339,7 +339,7 @@ void ObjLightswitch_TurnOff(ObjLightswitch* this, PlayState* play) { ObjLightswitch_SetupOff(this); } else if (this->timer == 15) { this->faceTextureIndex = FACE_EYES_CLOSED; - Audio_PlayActorSound2(&this->actor, NA_SE_EV_FOOT_SWITCH); + Audio_PlayActorSfx2(&this->actor, NA_SE_EV_FOOT_SWITCH); } } } diff --git a/src/overlays/actors/ovl_Obj_Oshihiki/z_obj_oshihiki.c b/src/overlays/actors/ovl_Obj_Oshihiki/z_obj_oshihiki.c index b21dc1ed46..33ec90fa3a 100644 --- a/src/overlays/actors/ovl_Obj_Oshihiki/z_obj_oshihiki.c +++ b/src/overlays/actors/ovl_Obj_Oshihiki/z_obj_oshihiki.c @@ -561,7 +561,7 @@ void ObjOshihiki_Push(ObjOshihiki* this, PlayState* play) { } else if (stopFlag) { player = GET_PLAYER(play); if (ObjOshihiki_CheckWall(play, this->dyna.unk_158, this->dyna.unk_150, this)) { - Audio_PlayActorSound2(thisx, NA_SE_EV_BLOCK_BOUND); + Audio_PlayActorSfx2(thisx, NA_SE_EV_BLOCK_BOUND); } thisx->home.pos.x = thisx->world.pos.x; @@ -577,7 +577,7 @@ void ObjOshihiki_Push(ObjOshihiki* this, PlayState* play) { ObjOshihiki_SetupOnActor(this, play); } } - Audio_PlayActorSound2(thisx, NA_SE_EV_ROCK_SLIDE - SFX_FLAG); + Audio_PlayActorSfx2(thisx, NA_SE_EV_ROCK_SLIDE - SFX_FLAG); } void ObjOshihiki_SetupFall(ObjOshihiki* this, PlayState* play) { @@ -603,10 +603,10 @@ void ObjOshihiki_Fall(ObjOshihiki* this, PlayState* play) { } else { ObjOshihiki_SetupOnActor(this, play); } - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EV_BLOCK_BOUND); - Audio_PlayActorSound2(&this->dyna.actor, SurfaceType_GetSfx(&play->colCtx, this->floorPolys[this->highestFloor], - this->floorBgIds[this->highestFloor]) + - SFX_FLAG); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EV_BLOCK_BOUND); + Audio_PlayActorSfx2(&this->dyna.actor, SurfaceType_GetSfx(&play->colCtx, this->floorPolys[this->highestFloor], + this->floorBgIds[this->highestFloor]) + + SFX_FLAG); } } diff --git a/src/overlays/actors/ovl_Obj_Roomtimer/z_obj_roomtimer.c b/src/overlays/actors/ovl_Obj_Roomtimer/z_obj_roomtimer.c index 1cfc9697e2..1e3ef93314 100644 --- a/src/overlays/actors/ovl_Obj_Roomtimer/z_obj_roomtimer.c +++ b/src/overlays/actors/ovl_Obj_Roomtimer/z_obj_roomtimer.c @@ -74,8 +74,8 @@ void func_80B9D0B0(ObjRoomtimer* this, PlayState* play) { Actor_Kill(&this->actor); } else { if ((this->actor.params != 0x3FF) && (gSaveContext.timer1Value == 0)) { - Audio_PlaySoundGeneral(NA_SE_OC_ABYSS, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_OC_ABYSS, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); Play_TriggerVoidOut(play); Actor_Kill(&this->actor); } diff --git a/src/overlays/actors/ovl_Obj_Switch/z_obj_switch.c b/src/overlays/actors/ovl_Obj_Switch/z_obj_switch.c index cff2431b05..ea0e824e65 100644 --- a/src/overlays/actors/ovl_Obj_Switch/z_obj_switch.c +++ b/src/overlays/actors/ovl_Obj_Switch/z_obj_switch.c @@ -425,7 +425,7 @@ void ObjSwitch_FloorPress(ObjSwitch* this, PlayState* play) { this->dyna.actor.scale.y -= 99.0f / 2000.0f; if (this->dyna.actor.scale.y <= 33.0f / 2000.0f) { ObjSwitch_FloorDownInit(this); - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EV_FOOT_SWITCH); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EV_FOOT_SWITCH); func_800AA000(this->dyna.actor.xyzDistToPlayerSq, 120, 20, 10); } } @@ -482,7 +482,7 @@ void ObjSwitch_FloorRelease(ObjSwitch* this, PlayState* play) { this->dyna.actor.scale.y += 99.0f / 2000.0f; if (this->dyna.actor.scale.y >= 33.0f / 200.0f) { ObjSwitch_FloorUpInit(this); - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EV_FOOT_SWITCH); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EV_FOOT_SWITCH); if (subType == OBJSWITCH_SUBTYPE_TOGGLE) { func_800AA000(this->dyna.actor.xyzDistToPlayerSq, 120, 20, 10); } @@ -541,7 +541,7 @@ void ObjSwitch_EyeClosing(ObjSwitch* this, PlayState* play) { this->eyeTexIndex++; if (this->eyeTexIndex >= 3) { ObjSwitch_EyeClosedInit(this); - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EV_FOOT_SWITCH); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EV_FOOT_SWITCH); } } } @@ -580,7 +580,7 @@ void ObjSwitch_EyeOpening(ObjSwitch* this, PlayState* play) { this->eyeTexIndex--; if (this->eyeTexIndex <= 0) { ObjSwitch_EyeOpenInit(this); - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EV_FOOT_SWITCH); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EV_FOOT_SWITCH); } } } @@ -632,7 +632,7 @@ void ObjSwitch_CrystalTurnOn(ObjSwitch* this, PlayState* play) { if ((this->dyna.actor.params >> 4 & 7) == OBJSWITCH_SUBTYPE_TOGGLE) { ObjSwitch_UpdateTwoTexScrollXY(this); } - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EV_DIAMOND_SWITCH); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EV_DIAMOND_SWITCH); } } @@ -674,7 +674,7 @@ void ObjSwitch_CrystalTurnOff(ObjSwitch* this, PlayState* play) { func_8005B198() == this->dyna.actor.category || this->cooldownTimer <= 0) { ObjSwitch_CrystalOffInit(this); ObjSwitch_UpdateTwoTexScrollXY(this); - Audio_PlayActorSound2(&this->dyna.actor, NA_SE_EV_DIAMOND_SWITCH); + Audio_PlayActorSfx2(&this->dyna.actor, NA_SE_EV_DIAMOND_SWITCH); } } diff --git a/src/overlays/actors/ovl_Obj_Syokudai/z_obj_syokudai.c b/src/overlays/actors/ovl_Obj_Syokudai/z_obj_syokudai.c index 92ee4585c5..35de4b893b 100644 --- a/src/overlays/actors/ovl_Obj_Syokudai/z_obj_syokudai.c +++ b/src/overlays/actors/ovl_Obj_Syokudai/z_obj_syokudai.c @@ -187,9 +187,9 @@ void ObjSyokudai_Update(Actor* thisx, PlayState* play2) { if (interactionType < 0) { if (player->unk_860 == 0) { player->unk_860 = 210; - Audio_PlaySoundGeneral(NA_SE_EV_FLAME_IGNITION, &this->actor.projectedPos, 4, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EV_FLAME_IGNITION, &this->actor.projectedPos, 4, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultReverb); } else if (player->unk_860 < 200) { player->unk_860 = 200; } @@ -225,8 +225,8 @@ void ObjSyokudai_Update(Actor* thisx, PlayState* play2) { this->litTimer = (litTimeScale * 50) + 110; } } - Audio_PlaySoundGeneral(NA_SE_EV_FLAME_IGNITION, &this->actor.projectedPos, 4, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EV_FLAME_IGNITION, &this->actor.projectedPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } } } diff --git a/src/overlays/actors/ovl_Obj_Tsubo/z_obj_tsubo.c b/src/overlays/actors/ovl_Obj_Tsubo/z_obj_tsubo.c index 6217588e09..c8fe29cc95 100644 --- a/src/overlays/actors/ovl_Obj_Tsubo/z_obj_tsubo.c +++ b/src/overlays/actors/ovl_Obj_Tsubo/z_obj_tsubo.c @@ -242,7 +242,7 @@ void ObjTsubo_Idle(ObjTsubo* this, PlayState* play) { ObjTsubo_SetupLiftedUp(this); } else if ((this->actor.bgCheckFlags & BGCHECKFLAG_WATER) && (this->actor.yDistToWater > 15.0f)) { ObjTsubo_WaterBreak(this, play); - SoundSource_PlaySfxAtFixedWorldPos(play, &this->actor.world.pos, 20, NA_SE_EV_POT_BROKEN); + SfxSource_PlaySfxAtFixedWorldPos(play, &this->actor.world.pos, 20, NA_SE_EV_POT_BROKEN); ObjTsubo_SpawnCollectible(this, play); Actor_Kill(&this->actor); } else if ((this->collider.base.acFlags & AC_HIT) && @@ -250,7 +250,7 @@ void ObjTsubo_Idle(ObjTsubo* this, PlayState* play) { (DMG_SWORD | DMG_RANGED | DMG_HAMMER | DMG_BOOMERANG | DMG_EXPLOSIVE))) { ObjTsubo_AirBreak(this, play); ObjTsubo_SpawnCollectible(this, play); - SoundSource_PlaySfxAtFixedWorldPos(play, &this->actor.world.pos, 20, NA_SE_EV_POT_BROKEN); + SfxSource_PlaySfxAtFixedWorldPos(play, &this->actor.world.pos, 20, NA_SE_EV_POT_BROKEN); Actor_Kill(&this->actor); } else { if (this->actor.xzDistToPlayer < 600.0f) { @@ -308,12 +308,12 @@ void ObjTsubo_Thrown(ObjTsubo* this, PlayState* play) { (this->collider.base.atFlags & AT_HIT)) { ObjTsubo_AirBreak(this, play); ObjTsubo_SpawnCollectible(this, play); - SoundSource_PlaySfxAtFixedWorldPos(play, &this->actor.world.pos, 20, NA_SE_EV_POT_BROKEN); + SfxSource_PlaySfxAtFixedWorldPos(play, &this->actor.world.pos, 20, NA_SE_EV_POT_BROKEN); Actor_Kill(&this->actor); } else if (this->actor.bgCheckFlags & BGCHECKFLAG_WATER_TOUCH) { ObjTsubo_WaterBreak(this, play); ObjTsubo_SpawnCollectible(this, play); - SoundSource_PlaySfxAtFixedWorldPos(play, &this->actor.world.pos, 20, NA_SE_EV_POT_BROKEN); + SfxSource_PlaySfxAtFixedWorldPos(play, &this->actor.world.pos, 20, NA_SE_EV_POT_BROKEN); Actor_Kill(&this->actor); } else { ObjTsubo_ApplyGravity(this); diff --git a/src/overlays/actors/ovl_Object_Kankyo/z_object_kankyo.c b/src/overlays/actors/ovl_Object_Kankyo/z_object_kankyo.c index 532a39fa5a..f4679d8143 100644 --- a/src/overlays/actors/ovl_Object_Kankyo/z_object_kankyo.c +++ b/src/overlays/actors/ovl_Object_Kankyo/z_object_kankyo.c @@ -169,7 +169,7 @@ void ObjectKankyo_Snow(ObjectKankyo* this, PlayState* play) { } void ObjectKankyo_Fairies(ObjectKankyo* this, PlayState* play) { - static Vec3f sSoundPos = { 0.0f, 0.0f, 0.0f }; + static Vec3f sSfxPos = { 0.0f, 0.0f, 0.0f }; Player* player; f32 dist; s32 playerMoved; @@ -203,7 +203,7 @@ void ObjectKankyo_Fairies(ObjectKankyo* this, PlayState* play) { dist = 1.0f; } - func_800F436C(&sSoundPos, NA_SE_EV_NAVY_FLY - SFX_FLAG, (0.4f * dist) + 0.6f); + func_800F436C(&sSfxPos, NA_SE_EV_NAVY_FLY - SFX_FLAG, (0.4f * dist) + 0.6f); switch (play->csCtx.frames) { case 473: func_800788CC(NA_SE_VO_NA_HELLO_3); @@ -799,7 +799,7 @@ void ObjectKankyo_WaitForSunGraveSparkObject(ObjectKankyo* this, PlayState* play void ObjectKankyo_SunGraveSpark(ObjectKankyo* this, PlayState* play) { if (play->csCtx.state != 0) { if (play->csCtx.npcActions[1] != NULL && play->csCtx.npcActions[1]->action == 2) { - Audio_PlayActorSound2(&this->actor, NA_SE_EN_BIRI_SPARK - SFX_FLAG); + Audio_PlayActorSfx2(&this->actor, NA_SE_EN_BIRI_SPARK - SFX_FLAG); if ((s16)this->effects[0].alpha + 20 > 255) { this->effects[0].alpha = 255; } else { diff --git a/src/overlays/actors/ovl_player_actor/z_player.c b/src/overlays/actors/ovl_player_actor/z_player.c index 72c2573480..44bec15fa9 100644 --- a/src/overlays/actors/ovl_player_actor/z_player.c +++ b/src/overlays/actors/ovl_player_actor/z_player.c @@ -8121,7 +8121,7 @@ void func_80843E14(Player* this, u16 sfxId) { func_80832698(this, sfxId); if ((this->heldActor != NULL) && (this->heldActor->id == ACTOR_EN_RU1)) { - Audio_PlayActorSound2(this->heldActor, NA_SE_VO_RT_FALL); + Audio_PlayActorSfx2(this->heldActor, NA_SE_VO_RT_FALL); } } @@ -9389,7 +9389,7 @@ void Player_Init(Actor* thisx, PlayState* play2) { } if (gSaveContext.entranceSound != 0) { - Audio_PlayActorSound2(&this->actor, ((void)0, gSaveContext.entranceSound)); + Audio_PlayActorSfx2(&this->actor, ((void)0, gSaveContext.entranceSound)); gSaveContext.entranceSound = 0; } @@ -12064,8 +12064,8 @@ s32 func_8084DFF4(PlayState* play, Player* this) { ((this->getItemId >= GI_RUPEE_PURPLE) && (this->getItemId <= GI_RUPEE_GOLD)) || ((this->getItemId >= GI_RUPEE_GREEN_LOSE) && (this->getItemId <= GI_RUPEE_PURPLE_LOSE)) || (this->getItemId == GI_RECOVERY_HEART)) { - Audio_PlaySoundGeneral(NA_SE_SY_GET_BOXITEM, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_GET_BOXITEM, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } else { if ((this->getItemId == GI_HEART_CONTAINER_2) || (this->getItemId == GI_HEART_CONTAINER) || ((this->getItemId == GI_HEART_PIECE) && diff --git a/src/overlays/effects/ovl_Effect_Ss_Dead_Db/z_eff_ss_dead_db.c b/src/overlays/effects/ovl_Effect_Ss_Dead_Db/z_eff_ss_dead_db.c index ed85786d91..167bb6f14d 100644 --- a/src/overlays/effects/ovl_Effect_Ss_Dead_Db/z_eff_ss_dead_db.c +++ b/src/overlays/effects/ovl_Effect_Ss_Dead_Db/z_eff_ss_dead_db.c @@ -17,7 +17,7 @@ #define rEnvColorG regs[7] #define rEnvColorB regs[8] #define rScaleStep regs[9] -#define rPlaySound regs[10] +#define rPlaySfx regs[10] #define rReg11 regs[11] u32 EffectSsDeadDb_Init(PlayState* play, u32 index, EffectSs* this, void* initParamsx); @@ -44,7 +44,7 @@ u32 EffectSsDeadDb_Init(PlayState* play, u32 index, EffectSs* this, void* initPa this->update = EffectSsDeadDb_Update; this->rScale = initParams->scale; this->rTextIdx = 0; - this->rPlaySound = initParams->playSound; + this->rPlaySfx = initParams->playSfx; this->rPrimColorR = initParams->primColor.r; this->rPrimColorG = initParams->primColor.g; this->rPrimColorB = initParams->primColor.b; @@ -130,9 +130,9 @@ void EffectSsDeadDb_Update(PlayState* play, u32 index, EffectSs* this) { this->rEnvColorB = 0; } - if (this->rPlaySound && (this->rTextIdx == 1)) { + if (this->rPlaySfx && (this->rTextIdx == 1)) { SkinMatrix_Vec3fMtxFMultXYZW(&play->viewProjectionMtxF, &this->pos, &this->vec, &w); - Audio_PlaySoundGeneral(NA_SE_EN_EXTINCT, &this->vec, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EN_EXTINCT, &this->vec, 4, &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultReverb); } } diff --git a/src/overlays/effects/ovl_Effect_Ss_Dead_Db/z_eff_ss_dead_db.h b/src/overlays/effects/ovl_Effect_Ss_Dead_Db/z_eff_ss_dead_db.h index 69f890b8fd..62105f6201 100644 --- a/src/overlays/effects/ovl_Effect_Ss_Dead_Db/z_eff_ss_dead_db.h +++ b/src/overlays/effects/ovl_Effect_Ss_Dead_Db/z_eff_ss_dead_db.h @@ -14,7 +14,7 @@ typedef struct { /* 0x2C */ Color_RGBA8 envColor; /* 0x30 */ s16 unused; /* 0x34 */ s32 unk_34; - /* 0x38 */ s16 playSound; + /* 0x38 */ s16 playSfx; } EffectSsDeadDbInitParams; // size = 0x3C #endif diff --git a/src/overlays/effects/ovl_Effect_Ss_Dead_Sound/z_eff_ss_dead_sound.c b/src/overlays/effects/ovl_Effect_Ss_Dead_Sound/z_eff_ss_dead_sound.c index 9dca9b51b0..696fe684f9 100644 --- a/src/overlays/effects/ovl_Effect_Ss_Dead_Sound/z_eff_ss_dead_sound.c +++ b/src/overlays/effects/ovl_Effect_Ss_Dead_Sound/z_eff_ss_dead_sound.c @@ -45,6 +45,6 @@ void EffectSsDeadSound_Update(PlayState* play, u32 index, EffectSs* this) { return; } - Audio_PlaySoundGeneral(this->rSfxId, &this->pos, 4, &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultReverb); + Audio_PlaySfxGeneral(this->rSfxId, &this->pos, 4, &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultReverb); } diff --git a/src/overlays/gamestates/ovl_file_choose/z_file_choose.c b/src/overlays/gamestates/ovl_file_choose/z_file_choose.c index ee141d2183..6ee600802c 100644 --- a/src/overlays/gamestates/ovl_file_choose/z_file_choose.c +++ b/src/overlays/gamestates/ovl_file_choose/z_file_choose.c @@ -181,8 +181,8 @@ void FileSelect_UpdateMainMenu(GameState* thisx) { GET_NEWF(sramCtx, this->buttonIndex, 4), GET_NEWF(sramCtx, this->buttonIndex, 5)); if (!SLOT_OCCUPIED(sramCtx, this->buttonIndex)) { - Audio_PlaySoundGeneral(NA_SE_SY_FSEL_DECIDE_L, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_FSEL_DECIDE_L, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); this->configMode = CM_ROTATE_TO_NAME_ENTRY; this->kbdButton = FS_KBD_BTN_NONE; this->charPage = FS_CHAR_PAGE_ENG; @@ -195,21 +195,21 @@ void FileSelect_UpdateMainMenu(GameState* thisx) { this->nameEntryBoxAlpha = 0; MemCpy(&this->fileNames[this->buttonIndex][0], &emptyName, sizeof(emptyName)); } else if (this->n64ddFlags[this->buttonIndex] == this->n64ddFlag) { - Audio_PlaySoundGeneral(NA_SE_SY_FSEL_DECIDE_L, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_FSEL_DECIDE_L, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); this->actionTimer = 8; this->selectMode = SM_FADE_MAIN_TO_SELECT; this->selectedFileIndex = this->buttonIndex; this->menuMode = FS_MENU_MODE_SELECT; this->nextTitleLabel = FS_TITLE_OPEN_FILE; } else if (!this->n64ddFlags[this->buttonIndex]) { - Audio_PlaySoundGeneral(NA_SE_SY_FSEL_ERROR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_FSEL_ERROR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } } else { if (this->warningLabel == FS_WARNING_NONE) { - Audio_PlaySoundGeneral(NA_SE_SY_FSEL_DECIDE_L, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_FSEL_DECIDE_L, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); this->prevConfigMode = this->configMode; if (this->buttonIndex == FS_BTN_MAIN_COPY) { @@ -230,14 +230,14 @@ void FileSelect_UpdateMainMenu(GameState* thisx) { this->actionTimer = 8; } else { - Audio_PlaySoundGeneral(NA_SE_SY_FSEL_ERROR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_FSEL_ERROR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } } } else { if (ABS(this->stickRelY) > 30) { - Audio_PlaySoundGeneral(NA_SE_SY_FSEL_CURSOR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_FSEL_CURSOR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); if (this->stickRelY > 30) { this->buttonIndex--; @@ -1321,22 +1321,22 @@ void FileSelect_ConfirmFile(GameState* thisx) { if (CHECK_BTN_ALL(input->press.button, BTN_START) || (CHECK_BTN_ALL(input->press.button, BTN_A))) { if (this->confirmButtonIndex == FS_BTN_CONFIRM_YES) { func_800AA000(300.0f, 180, 20, 100); - Audio_PlaySoundGeneral(NA_SE_SY_FSEL_DECIDE_L, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_FSEL_DECIDE_L, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); this->selectMode = SM_FADE_OUT; func_800F6964(0xF); } else { - Audio_PlaySoundGeneral(NA_SE_SY_FSEL_CLOSE, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_FSEL_CLOSE, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); this->selectMode++; } } else if (CHECK_BTN_ALL(input->press.button, BTN_B)) { - Audio_PlaySoundGeneral(NA_SE_SY_FSEL_CLOSE, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_FSEL_CLOSE, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); this->selectMode++; } else if (ABS(this->stickRelY) >= 30) { - Audio_PlaySoundGeneral(NA_SE_SY_FSEL_CURSOR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_FSEL_CURSOR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); this->confirmButtonIndex ^= 1; } } @@ -1441,16 +1441,16 @@ void FileSelect_LoadGame(GameState* thisx) { s32 pad; if (this->buttonIndex == FS_BTN_SELECT_FILE_1) { - Audio_PlaySoundGeneral(NA_SE_SY_FSEL_DECIDE_L, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_FSEL_DECIDE_L, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); gSaveContext.fileNum = this->buttonIndex; Sram_OpenSave(&this->sramCtx); gSaveContext.gameMode = GAMEMODE_NORMAL; SET_NEXT_GAMESTATE(&this->state, MapSelect_Init, MapSelectState); this->state.running = false; } else { - Audio_PlaySoundGeneral(NA_SE_SY_FSEL_DECIDE_L, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_FSEL_DECIDE_L, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); gSaveContext.fileNum = this->buttonIndex; Sram_OpenSave(&this->sramCtx); gSaveContext.gameMode = GAMEMODE_NORMAL; diff --git a/src/overlays/gamestates/ovl_file_choose/z_file_copy_erase.c b/src/overlays/gamestates/ovl_file_choose/z_file_copy_erase.c index cc9a1dd26e..b8b6608a1d 100644 --- a/src/overlays/gamestates/ovl_file_choose/z_file_copy_erase.c +++ b/src/overlays/gamestates/ovl_file_choose/z_file_copy_erase.c @@ -70,24 +70,24 @@ void FileSelect_SelectCopySource(GameState* thisx) { this->nextTitleLabel = FS_TITLE_SELECT_FILE; this->configMode = CM_COPY_RETURN_MAIN; this->warningLabel = FS_WARNING_NONE; - Audio_PlaySoundGeneral(NA_SE_SY_FSEL_CLOSE, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_FSEL_CLOSE, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } else if (CHECK_BTN_ANY(input->press.button, BTN_A | BTN_START)) { if (SLOT_OCCUPIED(sramCtx, this->buttonIndex)) { this->actionTimer = 8; this->selectedFileIndex = this->buttonIndex; this->configMode = CM_SETUP_COPY_DEST_1; this->nextTitleLabel = FS_TITLE_COPY_TO; - Audio_PlaySoundGeneral(NA_SE_SY_FSEL_DECIDE_L, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_FSEL_DECIDE_L, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } else { - Audio_PlaySoundGeneral(NA_SE_SY_FSEL_ERROR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_FSEL_ERROR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } } else { if (ABS(this->stickRelY) >= 30) { - Audio_PlaySoundGeneral(NA_SE_SY_FSEL_CURSOR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_FSEL_CURSOR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); if (this->stickRelY >= 30) { this->buttonIndex--; @@ -185,25 +185,25 @@ void FileSelect_SelectCopyDest(GameState* thisx) { this->nextTitleLabel = FS_TITLE_COPY_FROM; this->actionTimer = 8; this->configMode = CM_EXIT_TO_COPY_SOURCE_1; - Audio_PlaySoundGeneral(NA_SE_SY_FSEL_CLOSE, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_FSEL_CLOSE, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } else if (CHECK_BTN_ANY(input->press.button, BTN_A | BTN_START)) { if (!SLOT_OCCUPIED(sramCtx, this->buttonIndex)) { this->copyDestFileIndex = this->buttonIndex; this->nextTitleLabel = FS_TITLE_COPY_CONFIRM; this->actionTimer = 8; this->configMode = CM_SETUP_COPY_CONFIRM_1; - Audio_PlaySoundGeneral(NA_SE_SY_FSEL_DECIDE_L, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_FSEL_DECIDE_L, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } else { - Audio_PlaySoundGeneral(NA_SE_SY_FSEL_ERROR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_FSEL_ERROR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } } else { if (ABS(this->stickRelY) >= 30) { - Audio_PlaySoundGeneral(NA_SE_SY_FSEL_CURSOR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_FSEL_CURSOR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); if (this->stickRelY >= 30) { this->buttonIndex--; @@ -374,8 +374,8 @@ void FileSelect_CopyConfirm(GameState* thisx) { this->actionTimer = 8; this->nextTitleLabel = FS_TITLE_COPY_TO; this->configMode = CM_RETURN_TO_COPY_DEST; - Audio_PlaySoundGeneral(NA_SE_SY_FSEL_CLOSE, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_FSEL_CLOSE, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } else if (CHECK_BTN_ANY(input->press.button, BTN_A | BTN_START)) { dayTime = gSaveContext.dayTime; Sram_CopySave(this, sramCtx); @@ -385,11 +385,11 @@ void FileSelect_CopyConfirm(GameState* thisx) { this->actionTimer = 8; this->configMode = CM_COPY_ANIM_1; func_800AA000(300.0f, 0xB4, 0x14, 0x64); - Audio_PlaySoundGeneral(NA_SE_SY_FSEL_DECIDE_L, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_FSEL_DECIDE_L, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } else if (ABS(this->stickRelY) >= 30) { - Audio_PlaySoundGeneral(NA_SE_SY_FSEL_CURSOR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_FSEL_CURSOR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); this->buttonIndex ^= 1; } } @@ -490,7 +490,7 @@ void FileSelect_CopyAnim2(GameState* thisx) { } /** - * Play sound to indicate that the copy has completed. Wait for a timer or for + * Play a sound effect to indicate that the copy has completed. Wait for a timer or for * the player to press a button before moving on. * Update function for `CM_COPY_ANIM_3` */ @@ -500,8 +500,8 @@ void FileSelect_CopyAnim3(GameState* thisx) { if (this->actionTimer == 75) { this->connectorAlpha[this->copyDestFileIndex] = 255; - Audio_PlaySoundGeneral(NA_SE_EV_DIAMOND_SWITCH, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EV_DIAMOND_SWITCH, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } this->actionTimer--; @@ -511,8 +511,8 @@ void FileSelect_CopyAnim3(GameState* thisx) { this->actionTimer = 8; this->nextTitleLabel = FS_TITLE_SELECT_FILE; this->configMode++; - Audio_PlaySoundGeneral(NA_SE_SY_FSEL_DECIDE_L, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_FSEL_DECIDE_L, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } } } @@ -701,24 +701,24 @@ void FileSelect_EraseSelect(GameState* thisx) { this->nextTitleLabel = FS_TITLE_SELECT_FILE; this->configMode = CM_EXIT_ERASE_TO_MAIN; this->warningLabel = FS_WARNING_NONE; - Audio_PlaySoundGeneral(NA_SE_SY_FSEL_CLOSE, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_FSEL_CLOSE, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } else if (CHECK_BTN_ANY(input->press.button, BTN_A | BTN_START)) { if (SLOT_OCCUPIED(sramCtx, this->buttonIndex)) { this->actionTimer = 8; this->selectedFileIndex = this->buttonIndex; this->configMode = CM_SETUP_ERASE_CONFIRM_1; this->nextTitleLabel = FS_TITLE_ERASE_CONFIRM; - Audio_PlaySoundGeneral(NA_SE_SY_FSEL_DECIDE_L, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_FSEL_DECIDE_L, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } else { - Audio_PlaySoundGeneral(NA_SE_SY_FSEL_ERROR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_FSEL_ERROR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } } else { if (ABS(this->stickRelY) >= 30) { - Audio_PlaySoundGeneral(NA_SE_SY_FSEL_CURSOR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_FSEL_CURSOR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); if (this->stickRelY >= 30) { this->buttonIndex--; @@ -841,20 +841,20 @@ void FileSelect_EraseConfirm(GameState* thisx) { this->nextTitleLabel = FS_TITLE_ERASE_FILE; this->configMode = CM_EXIT_TO_ERASE_SELECT_1; this->actionTimer = 8; - Audio_PlaySoundGeneral(NA_SE_SY_FSEL_CLOSE, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_FSEL_CLOSE, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } else if (CHECK_BTN_ANY(input->press.button, BTN_A | BTN_START)) { this->n64ddFlags[this->selectedFileIndex] = this->connectorAlpha[this->selectedFileIndex] = 0; - Audio_PlaySoundGeneral(NA_SE_EV_DIAMOND_SWITCH, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_EV_DIAMOND_SWITCH, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); this->actionTimer = 8; this->configMode = CM_ERASE_ANIM_1; this->nextTitleLabel = FS_TITLE_ERASE_COMPLETE; func_800AA000(200.0f, 0xFF, 0x14, 0x96); sEraseDelayTimer = 15; } else if (ABS(this->stickRelY) >= 30) { - Audio_PlaySoundGeneral(NA_SE_SY_FSEL_CURSOR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_FSEL_CURSOR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); this->buttonIndex ^= 1; } } @@ -968,8 +968,8 @@ void FileSelect_EraseAnim1(GameState* thisx) { sEraseDelayTimer--; if (sEraseDelayTimer == 0) { - Audio_PlaySoundGeneral(NA_SE_OC_ABYSS, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_OC_ABYSS, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } } } @@ -987,8 +987,8 @@ void FileSelect_EraseAnim2(GameState* thisx) { this->actionTimer = 8; this->nextTitleLabel = FS_TITLE_SELECT_FILE; this->configMode++; - Audio_PlaySoundGeneral(NA_SE_SY_FSEL_CLOSE, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_FSEL_CLOSE, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } } diff --git a/src/overlays/gamestates/ovl_file_choose/z_file_nameset_PAL.c b/src/overlays/gamestates/ovl_file_choose/z_file_nameset_PAL.c index a99f48a39a..21cb4b58b9 100644 --- a/src/overlays/gamestates/ovl_file_choose/z_file_nameset_PAL.c +++ b/src/overlays/gamestates/ovl_file_choose/z_file_nameset_PAL.c @@ -348,8 +348,8 @@ void FileSelect_DrawNameEntry(GameState* thisx) { if (this->configMode == CM_NAME_ENTRY) { if (CHECK_BTN_ALL(input->press.button, BTN_START)) { - Audio_PlaySoundGeneral(NA_SE_SY_FSEL_DECIDE_L, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_FSEL_DECIDE_L, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); // place cursor on END button this->kbdY = 5; this->kbdX = 4; @@ -360,8 +360,8 @@ void FileSelect_DrawNameEntry(GameState* thisx) { } this->fileNames[this->buttonIndex][i] = 0x3E; - Audio_PlaySoundGeneral(NA_SE_SY_FSEL_DECIDE_S, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_FSEL_DECIDE_S, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } else { this->newFileNameCharCount--; @@ -374,8 +374,8 @@ void FileSelect_DrawNameEntry(GameState* thisx) { } this->fileNames[this->buttonIndex][i] = 0x3E; - Audio_PlaySoundGeneral(NA_SE_SY_FSEL_DECIDE_S, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_FSEL_DECIDE_S, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } } } else { @@ -389,8 +389,8 @@ void FileSelect_DrawNameEntry(GameState* thisx) { font->fontBuf + D_808123F0[this->charIndex] * FONT_CHAR_TEX_SIZE, 0); if (CHECK_BTN_ALL(input->press.button, BTN_A)) { - Audio_PlaySoundGeneral(NA_SE_SY_FSEL_DECIDE_S, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_FSEL_DECIDE_S, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); this->fileNames[this->buttonIndex][this->newFileNameCharCount] = D_808123F0[this->charIndex]; this->newFileNameCharCount++; @@ -406,9 +406,9 @@ void FileSelect_DrawNameEntry(GameState* thisx) { } this->fileNames[this->buttonIndex][i] = 0x3E; - Audio_PlaySoundGeneral(NA_SE_SY_FSEL_DECIDE_S, &gSfxDefaultPos, 4, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_FSEL_DECIDE_S, &gSfxDefaultPos, 4, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultReverb); } else { this->newFileNameCharCount--; @@ -421,9 +421,9 @@ void FileSelect_DrawNameEntry(GameState* thisx) { } this->fileNames[this->buttonIndex][i] = 0x3E; - Audio_PlaySoundGeneral(NA_SE_SY_FSEL_DECIDE_S, &gSfxDefaultPos, 4, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_FSEL_DECIDE_S, &gSfxDefaultPos, 4, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultReverb); } } else if (this->kbdButton == FS_KBD_BTN_END) { validName = false; @@ -436,9 +436,9 @@ void FileSelect_DrawNameEntry(GameState* thisx) { } if (validName) { - Audio_PlaySoundGeneral(NA_SE_SY_FSEL_DECIDE_L, &gSfxDefaultPos, 4, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_FSEL_DECIDE_L, &gSfxDefaultPos, 4, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultReverb); gSaveContext.fileNum = this->buttonIndex; dayTime = ((void)0, gSaveContext.dayTime); Sram_InitSave(this, &this->sramCtx); @@ -448,23 +448,23 @@ void FileSelect_DrawNameEntry(GameState* thisx) { this->connectorAlpha[this->buttonIndex] = 255; func_800AA000(300.0f, 0xB4, 0x14, 0x64); } else { - Audio_PlaySoundGeneral(NA_SE_SY_FSEL_ERROR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_FSEL_ERROR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } } } if (CHECK_BTN_ALL(input->press.button, BTN_CRIGHT)) { - Audio_PlaySoundGeneral(NA_SE_SY_FSEL_CURSOR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_FSEL_CURSOR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); this->newFileNameCharCount++; if (this->newFileNameCharCount > 7) { this->newFileNameCharCount = 7; } } else if (CHECK_BTN_ALL(input->press.button, BTN_CLEFT)) { - Audio_PlaySoundGeneral(NA_SE_SY_FSEL_CURSOR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_FSEL_CURSOR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); this->newFileNameCharCount--; if (this->newFileNameCharCount < 0) { @@ -508,7 +508,7 @@ void FileSelect_StartNameEntry(GameState* thisx) { } /** - * Update the keyboard cursor and play sounds at the appropriate times. + * Update the keyboard cursor and play sound effects at the appropriate times. * There are many special cases for warping the cursor depending on where * the cursor currently is. * Update function for `CM_NAME_ENTRY` @@ -521,8 +521,8 @@ void FileSelect_UpdateKeyboardCursor(GameState* thisx) { if (this->kbdY != 5) { if (this->stickRelX < -30) { - Audio_PlaySoundGeneral(NA_SE_SY_FSEL_CURSOR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_FSEL_CURSOR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); this->charIndex--; this->kbdX--; if (this->kbdX < 0) { @@ -530,8 +530,8 @@ void FileSelect_UpdateKeyboardCursor(GameState* thisx) { this->charIndex = (this->kbdY * 13) + this->kbdX; } } else if (this->stickRelX > 30) { - Audio_PlaySoundGeneral(NA_SE_SY_FSEL_CURSOR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_FSEL_CURSOR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); this->charIndex++; this->kbdX++; if (this->kbdX > 12) { @@ -541,15 +541,15 @@ void FileSelect_UpdateKeyboardCursor(GameState* thisx) { } } else { if (this->stickRelX < -30) { - Audio_PlaySoundGeneral(NA_SE_SY_FSEL_CURSOR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_FSEL_CURSOR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); this->kbdX--; if (this->kbdX < 3) { this->kbdX = 4; } } else if (this->stickRelX > 30) { - Audio_PlaySoundGeneral(NA_SE_SY_FSEL_CURSOR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_FSEL_CURSOR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); this->kbdX++; if (this->kbdX > 4) { this->kbdX = 3; @@ -558,8 +558,8 @@ void FileSelect_UpdateKeyboardCursor(GameState* thisx) { } if (this->stickRelY > 30) { - Audio_PlaySoundGeneral(NA_SE_SY_FSEL_CURSOR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_FSEL_CURSOR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); this->kbdY--; if (this->kbdY < 0) { @@ -590,8 +590,8 @@ void FileSelect_UpdateKeyboardCursor(GameState* thisx) { } } } else if (this->stickRelY < -30) { - Audio_PlaySoundGeneral(NA_SE_SY_FSEL_CURSOR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_FSEL_CURSOR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); this->kbdY++; if (this->kbdY > 5) { @@ -669,8 +669,8 @@ void FileSelect_UpdateOptionsMenu(GameState* thisx) { Input* input = &this->state.input[0]; if (CHECK_BTN_ALL(input->press.button, BTN_B)) { - Audio_PlaySoundGeneral(NA_SE_SY_FSEL_DECIDE_L, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_FSEL_DECIDE_L, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); this->configMode = CM_OPTIONS_TO_MAIN; sramCtx->readBuff[0] = gSaveContext.audioSetting; sramCtx->readBuff[1] = gSaveContext.zTargetSetting; @@ -689,8 +689,8 @@ void FileSelect_UpdateOptionsMenu(GameState* thisx) { } if (this->stickRelX < -30) { - Audio_PlaySoundGeneral(NA_SE_SY_FSEL_CURSOR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_FSEL_CURSOR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); if (sSelectedSetting == FS_SETTING_AUDIO) { gSaveContext.audioSetting--; @@ -703,8 +703,8 @@ void FileSelect_UpdateOptionsMenu(GameState* thisx) { gSaveContext.zTargetSetting ^= 1; } } else if (this->stickRelX > 30) { - Audio_PlaySoundGeneral(NA_SE_SY_FSEL_CURSOR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_FSEL_CURSOR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); if (sSelectedSetting == FS_SETTING_AUDIO) { gSaveContext.audioSetting++; @@ -718,12 +718,12 @@ void FileSelect_UpdateOptionsMenu(GameState* thisx) { } if ((this->stickRelY < -30) || (this->stickRelY > 30)) { - Audio_PlaySoundGeneral(NA_SE_SY_FSEL_CURSOR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_FSEL_CURSOR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); sSelectedSetting ^= 1; } else if (CHECK_BTN_ALL(input->press.button, BTN_A)) { - Audio_PlaySoundGeneral(NA_SE_SY_FSEL_DECIDE_L, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_FSEL_DECIDE_L, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); sSelectedSetting ^= 1; } } diff --git a/src/overlays/gamestates/ovl_select/z_select.c b/src/overlays/gamestates/ovl_select/z_select.c index a6b3a7e464..f34d0075f5 100644 --- a/src/overlays/gamestates/ovl_select/z_select.c +++ b/src/overlays/gamestates/ovl_select/z_select.c @@ -398,15 +398,15 @@ void MapSelect_UpdateMenu(MapSelectState* this) { if (this->timerUp == 0) { this->timerUp = 20; this->lockUp = true; - Audio_PlaySoundGeneral(NA_SE_IT_SWORD_IMPACT, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_IT_SWORD_IMPACT, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); this->verticalInput = R_UPDATE_RATE; } } if (CHECK_BTN_ALL(input->cur.button, BTN_DUP) && this->timerUp == 0) { - Audio_PlaySoundGeneral(NA_SE_IT_SWORD_IMPACT, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_IT_SWORD_IMPACT, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); this->verticalInput = R_UPDATE_RATE * 3; } @@ -417,27 +417,27 @@ void MapSelect_UpdateMenu(MapSelectState* this) { if (this->timerDown == 0) { this->timerDown = 20; this->lockDown = true; - Audio_PlaySoundGeneral(NA_SE_IT_SWORD_IMPACT, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_IT_SWORD_IMPACT, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); this->verticalInput = -R_UPDATE_RATE; } } if (CHECK_BTN_ALL(input->cur.button, BTN_DDOWN) && (this->timerDown == 0)) { - Audio_PlaySoundGeneral(NA_SE_IT_SWORD_IMPACT, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_IT_SWORD_IMPACT, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); this->verticalInput = -R_UPDATE_RATE * 3; } if (CHECK_BTN_ALL(input->press.button, BTN_DLEFT) || CHECK_BTN_ALL(input->cur.button, BTN_DLEFT)) { - Audio_PlaySoundGeneral(NA_SE_IT_SWORD_IMPACT, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_IT_SWORD_IMPACT, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); this->verticalInput = R_UPDATE_RATE; } if (CHECK_BTN_ALL(input->press.button, BTN_DRIGHT) || CHECK_BTN_ALL(input->cur.button, BTN_DRIGHT)) { - Audio_PlaySoundGeneral(NA_SE_IT_SWORD_IMPACT, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_IT_SWORD_IMPACT, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); this->verticalInput = -R_UPDATE_RATE; } } diff --git a/src/overlays/misc/ovl_kaleido_scope/z_kaleido_collect.c b/src/overlays/misc/ovl_kaleido_scope/z_kaleido_collect.c index 6892743754..319b74c8dc 100644 --- a/src/overlays/misc/ovl_kaleido_scope/z_kaleido_collect.c +++ b/src/overlays/misc/ovl_kaleido_scope/z_kaleido_collect.c @@ -135,8 +135,8 @@ void KaleidoScope_DrawQuestStatus(PlayState* play, GraphicsContext* gfxCtx) { if (phi_s3 != pauseCtx->cursorPoint[PAUSE_QUEST]) { pauseCtx->unk_1E4 = 0; - Audio_PlaySoundGeneral(NA_SE_SY_CURSOR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_CURSOR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } if (pauseCtx->cursorPoint[PAUSE_QUEST] != 0x18) { @@ -220,8 +220,8 @@ void KaleidoScope_DrawQuestStatus(PlayState* play, GraphicsContext* gfxCtx) { pauseCtx->cursorSpecialPos = 0; sp216 = pauseCtx->cursorPoint[PAUSE_QUEST]; KaleidoScope_SetCursorVtx(pauseCtx, sp216 * 4, pauseCtx->questVtx); - Audio_PlaySoundGeneral(NA_SE_SY_CURSOR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_CURSOR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); if (CHECK_QUEST_ITEM(pauseCtx->cursorPoint[PAUSE_QUEST])) { cursorItem = ITEM_SONG_MINUET + pauseCtx->cursorPoint[PAUSE_QUEST]; } else { @@ -238,8 +238,8 @@ void KaleidoScope_DrawQuestStatus(PlayState* play, GraphicsContext* gfxCtx) { pauseCtx->cursorSpecialPos = 0; sp216 = pauseCtx->cursorPoint[PAUSE_QUEST]; KaleidoScope_SetCursorVtx(pauseCtx, sp216 * 4, pauseCtx->questVtx); - Audio_PlaySoundGeneral(NA_SE_SY_CURSOR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_CURSOR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); if (CHECK_QUEST_ITEM(pauseCtx->cursorPoint[PAUSE_QUEST])) { if (pauseCtx->cursorPoint[PAUSE_QUEST] < 6) { cursorItem = ITEM_MEDALLION_FOREST + pauseCtx->cursorPoint[PAUSE_QUEST]; diff --git a/src/overlays/misc/ovl_kaleido_scope/z_kaleido_equipment.c b/src/overlays/misc/ovl_kaleido_scope/z_kaleido_equipment.c index cd3d985555..064dc31d54 100644 --- a/src/overlays/misc/ovl_kaleido_scope/z_kaleido_equipment.c +++ b/src/overlays/misc/ovl_kaleido_scope/z_kaleido_equipment.c @@ -307,8 +307,8 @@ void KaleidoScope_DrawEquipment(PlayState* play) { pauseCtx->nameDisplayTimer = 0; pauseCtx->cursorSpecialPos = 0; - Audio_PlaySoundGeneral(NA_SE_SY_CURSOR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_CURSOR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); cursorPoint = cursorX = cursorY = 0; while (true) { @@ -354,8 +354,8 @@ void KaleidoScope_DrawEquipment(PlayState* play) { if (pauseCtx->stickRelX < -30) { pauseCtx->nameDisplayTimer = 0; pauseCtx->cursorSpecialPos = 0; - Audio_PlaySoundGeneral(NA_SE_SY_CURSOR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_CURSOR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); cursorPoint = cursorX = 3; cursorY = 0; @@ -494,19 +494,19 @@ void KaleidoScope_DrawEquipment(PlayState* play) { Interface_LoadItemIcon1(play, 0); } - Audio_PlaySoundGeneral(NA_SE_SY_DECIDE, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_DECIDE, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); pauseCtx->unk_1E4 = 7; sEquipTimer = 10; } else { - Audio_PlaySoundGeneral(NA_SE_SY_ERROR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_ERROR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } } if (oldCursorPoint != pauseCtx->cursorPoint[PAUSE_EQUIP]) { - Audio_PlaySoundGeneral(NA_SE_SY_CURSOR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_CURSOR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } } else if ((pauseCtx->unk_1E4 == 7) && (pauseCtx->pageIndex == PAUSE_EQUIP)) { KaleidoScope_SetCursorVtx(pauseCtx, pauseCtx->cursorSlot[PAUSE_EQUIP] * 4, pauseCtx->equipVtx); diff --git a/src/overlays/misc/ovl_kaleido_scope/z_kaleido_item.c b/src/overlays/misc/ovl_kaleido_scope/z_kaleido_item.c index b2ddd1eb28..a70069e504 100644 --- a/src/overlays/misc/ovl_kaleido_scope/z_kaleido_item.c +++ b/src/overlays/misc/ovl_kaleido_scope/z_kaleido_item.c @@ -209,8 +209,8 @@ void KaleidoScope_DrawItemSelect(PlayState* play) { pauseCtx->nameDisplayTimer = 0; pauseCtx->cursorSpecialPos = 0; - Audio_PlaySoundGeneral(NA_SE_SY_CURSOR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_CURSOR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); cursorPoint = cursorX = cursorY = 0; while (true) { @@ -244,8 +244,8 @@ void KaleidoScope_DrawItemSelect(PlayState* play) { pauseCtx->nameDisplayTimer = 0; pauseCtx->cursorSpecialPos = 0; - Audio_PlaySoundGeneral(NA_SE_SY_CURSOR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_CURSOR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); cursorPoint = cursorX = 5; cursorY = 0; @@ -376,20 +376,20 @@ void KaleidoScope_DrawItemSelect(PlayState* play) { if (pauseCtx->equipTargetItem == ITEM_ARROW_LIGHT) { index = 2; } - Audio_PlaySoundGeneral(NA_SE_SY_SET_FIRE_ARROW + index, &gSfxDefaultPos, 4, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_SET_FIRE_ARROW + index, &gSfxDefaultPos, 4, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultReverb); pauseCtx->equipTargetItem = 0xBF + index; sEquipState = 0; pauseCtx->equipAnimAlpha = 0; sEquipMoveTimer = 6; } else { - Audio_PlaySoundGeneral(NA_SE_SY_DECIDE, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_DECIDE, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } } else { - Audio_PlaySoundGeneral(NA_SE_SY_ERROR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_ERROR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } } } @@ -405,8 +405,8 @@ void KaleidoScope_DrawItemSelect(PlayState* play) { } if (oldCursorPoint != pauseCtx->cursorPoint[PAUSE_ITEM]) { - Audio_PlaySoundGeneral(NA_SE_SY_CURSOR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_CURSOR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } } else if ((pauseCtx->unk_1E4 == 3) && (pauseCtx->pageIndex == PAUSE_ITEM)) { KaleidoScope_SetCursorVtx(pauseCtx, cursorSlot * 4, pauseCtx->itemVtx); @@ -519,8 +519,8 @@ void KaleidoScope_UpdateItemEquip(PlayState* play) { WREG(90) = 320; WREG(87) = WREG(91); sEquipState++; - Audio_PlaySoundGeneral(NA_SE_SY_SYNTH_MAGIC_ARROW, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_SYNTH_MAGIC_ARROW, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } return; } diff --git a/src/overlays/misc/ovl_kaleido_scope/z_kaleido_map_PAL.c b/src/overlays/misc/ovl_kaleido_scope/z_kaleido_map_PAL.c index 65a7df5e57..98897e76db 100644 --- a/src/overlays/misc/ovl_kaleido_scope/z_kaleido_map_PAL.c +++ b/src/overlays/misc/ovl_kaleido_scope/z_kaleido_map_PAL.c @@ -145,8 +145,8 @@ void KaleidoScope_DrawDungeonMap(PlayState* play, GraphicsContext* gfxCtx) { pauseCtx->cursorX[PAUSE_MAP] = 0; j = 72 + (pauseCtx->cursorSlot[PAUSE_MAP] * 4); KaleidoScope_SetCursorVtx(pauseCtx, j, pauseCtx->mapPageVtx); - Audio_PlaySoundGeneral(NA_SE_SY_CURSOR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_CURSOR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } } else { if (pauseCtx->stickRelX < -30) { @@ -176,14 +176,14 @@ void KaleidoScope_DrawDungeonMap(PlayState* play, GraphicsContext* gfxCtx) { osSyncPrintf("kscope->cursor_point====%d\n", pauseCtx->cursorPoint[PAUSE_MAP]); j = 72 + (pauseCtx->cursorSlot[PAUSE_MAP] * 4); KaleidoScope_SetCursorVtx(pauseCtx, j, pauseCtx->mapPageVtx); - Audio_PlaySoundGeneral(NA_SE_SY_CURSOR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_CURSOR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } } if (oldCursorPoint != pauseCtx->cursorPoint[PAUSE_MAP]) { - Audio_PlaySoundGeneral(NA_SE_SY_CURSOR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_CURSOR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } } @@ -458,8 +458,8 @@ void KaleidoScope_DrawWorldMap(PlayState* play, GraphicsContext* gfxCtx) { pauseCtx->cursorItem[PAUSE_MAP] = pauseCtx->cursorPoint[PAUSE_WORLD_MAP]; pauseCtx->cursorSlot[PAUSE_MAP] = pauseCtx->cursorPoint[PAUSE_WORLD_MAP] + 0x1F; KaleidoScope_SetCursorVtx(pauseCtx, pauseCtx->cursorSlot[PAUSE_MAP] * 4, pauseCtx->mapPageVtx); - Audio_PlaySoundGeneral(NA_SE_SY_CURSOR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_CURSOR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); D_8082A6D4 = 0; } } else { @@ -474,8 +474,8 @@ void KaleidoScope_DrawWorldMap(PlayState* play, GraphicsContext* gfxCtx) { pauseCtx->cursorItem[PAUSE_MAP] = pauseCtx->cursorPoint[PAUSE_WORLD_MAP]; pauseCtx->cursorSlot[PAUSE_MAP] = pauseCtx->cursorPoint[PAUSE_WORLD_MAP] + 0x1F; KaleidoScope_SetCursorVtx(pauseCtx, pauseCtx->cursorSlot[PAUSE_MAP] * 4, pauseCtx->mapPageVtx); - Audio_PlaySoundGeneral(NA_SE_SY_CURSOR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_CURSOR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); D_8082A6D4 = 0; } } @@ -486,8 +486,8 @@ void KaleidoScope_DrawWorldMap(PlayState* play, GraphicsContext* gfxCtx) { } if (oldCursorPoint != pauseCtx->cursorPoint[PAUSE_WORLD_MAP]) { - Audio_PlaySoundGeneral(NA_SE_SY_CURSOR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_CURSOR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } } diff --git a/src/overlays/misc/ovl_kaleido_scope/z_kaleido_prompt.c b/src/overlays/misc/ovl_kaleido_scope/z_kaleido_prompt.c index fd39d5ed16..08faa1c834 100644 --- a/src/overlays/misc/ovl_kaleido_scope/z_kaleido_prompt.c +++ b/src/overlays/misc/ovl_kaleido_scope/z_kaleido_prompt.c @@ -10,12 +10,12 @@ void KaleidoScope_UpdatePrompt(PlayState* play) { if (((pauseCtx->state == 7) && (pauseCtx->unk_1EC == 1)) || (pauseCtx->state == 0xE) || (pauseCtx->state == 0x10)) { if ((pauseCtx->promptChoice == 0) && (relStickX >= 30)) { - Audio_PlaySoundGeneral(NA_SE_SY_CURSOR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_CURSOR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); pauseCtx->promptChoice = 4; } else if ((pauseCtx->promptChoice != 0) && (relStickX <= -30)) { - Audio_PlaySoundGeneral(NA_SE_SY_CURSOR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_CURSOR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); pauseCtx->promptChoice = 0; } diff --git a/src/overlays/misc/ovl_kaleido_scope/z_kaleido_scope_PAL.c b/src/overlays/misc/ovl_kaleido_scope/z_kaleido_scope_PAL.c index 5e31f279fa..336a8dea03 100644 --- a/src/overlays/misc/ovl_kaleido_scope/z_kaleido_scope_PAL.c +++ b/src/overlays/misc/ovl_kaleido_scope/z_kaleido_scope_PAL.c @@ -315,8 +315,8 @@ void KaleidoScope_MoveCursorToSpecialPos(PlayState* play, u16 specialPos) { pauseCtx->cursorSpecialPos = specialPos; pauseCtx->pageSwitchTimer = 0; - Audio_PlaySoundGeneral(NA_SE_SY_DECIDE, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_DECIDE, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultReverb); } void KaleidoScope_DrawQuadTextureRGBA32(GraphicsContext* gfxCtx, void* texture, u16 width, u16 height, u16 point) { @@ -370,13 +370,13 @@ void KaleidoScope_SwitchPage(PauseContext* pauseCtx, u8 pt) { if (!pt) { pauseCtx->mode = pauseCtx->pageIndex * 2 + 1; - Audio_PlaySoundGeneral(NA_SE_SY_WIN_SCROLL_LEFT, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_WIN_SCROLL_LEFT, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); pauseCtx->cursorSpecialPos = PAUSE_CURSOR_PAGE_RIGHT; } else { pauseCtx->mode = pauseCtx->pageIndex * 2; - Audio_PlaySoundGeneral(NA_SE_SY_WIN_SCROLL_RIGHT, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_WIN_SCROLL_RIGHT, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); pauseCtx->cursorSpecialPos = PAUSE_CURSOR_PAGE_LEFT; } @@ -2914,8 +2914,8 @@ void KaleidoScope_Update(PlayState* play) { } else if (CHECK_BTN_ALL(input->press.button, BTN_B)) { pauseCtx->mode = 0; pauseCtx->promptChoice = 0; - Audio_PlaySoundGeneral(NA_SE_SY_DECIDE, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_DECIDE, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); gSaveContext.buttonStatus[0] = gSaveContext.buttonStatus[1] = gSaveContext.buttonStatus[2] = gSaveContext.buttonStatus[3] = BTN_DISABLED; gSaveContext.buttonStatus[4] = BTN_ENABLED; @@ -2961,8 +2961,8 @@ void KaleidoScope_Update(PlayState* play) { pauseCtx->unk_1E4 = 0; pauseCtx->mode = 0; pauseCtx->promptChoice = 0; - Audio_PlaySoundGeneral(NA_SE_SY_DECIDE, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_DECIDE, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); gSaveContext.buttonStatus[0] = gSaveContext.buttonStatus[1] = gSaveContext.buttonStatus[2] = gSaveContext.buttonStatus[3] = BTN_DISABLED; gSaveContext.buttonStatus[4] = BTN_ENABLED; @@ -2971,14 +2971,14 @@ void KaleidoScope_Update(PlayState* play) { pauseCtx->unk_1EC = 0; pauseCtx->state = 7; } else if (pauseCtx->ocarinaStaff->state == pauseCtx->ocarinaSongIdx) { - Audio_PlaySoundGeneral(NA_SE_SY_TRE_BOX_APPEAR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_TRE_BOX_APPEAR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); D_8082B258 = 0; D_8082B25C = 30; pauseCtx->unk_1E4 = 6; } else if (pauseCtx->ocarinaStaff->state == 0xFF) { - Audio_PlaySoundGeneral(NA_SE_SY_OCARINA_ERROR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_OCARINA_ERROR, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); D_8082B258 = 4; D_8082B25C = 20; pauseCtx->unk_1E4 = 6; @@ -3011,8 +3011,8 @@ void KaleidoScope_Update(PlayState* play) { pauseCtx->unk_1E4 = 0; pauseCtx->mode = 0; pauseCtx->promptChoice = 0; - Audio_PlaySoundGeneral(NA_SE_SY_DECIDE, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_DECIDE, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); gSaveContext.buttonStatus[0] = gSaveContext.buttonStatus[1] = gSaveContext.buttonStatus[2] = gSaveContext.buttonStatus[3] = BTN_DISABLED; gSaveContext.buttonStatus[4] = BTN_ENABLED; @@ -3057,9 +3057,9 @@ void KaleidoScope_Update(PlayState* play) { YREG(8) = pauseCtx->unk_204; func_800F64E0(0); } else { - Audio_PlaySoundGeneral(NA_SE_SY_PIECE_OF_HEART, &gSfxDefaultPos, 4, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_PIECE_OF_HEART, &gSfxDefaultPos, 4, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultReverb); Play_SaveSceneFlags(play); gSaveContext.savedSceneNum = play->sceneNum; Sram_WriteSave(&play->sramCtx); @@ -3291,13 +3291,13 @@ void KaleidoScope_Update(PlayState* play) { if (CHECK_BTN_ALL(input->press.button, BTN_A)) { if (pauseCtx->promptChoice != 0) { pauseCtx->promptChoice = 0; - Audio_PlaySoundGeneral(NA_SE_SY_DECIDE, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_DECIDE, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); pauseCtx->state = 0x10; gameOverCtx->state++; } else { - Audio_PlaySoundGeneral(NA_SE_SY_PIECE_OF_HEART, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_PIECE_OF_HEART, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); pauseCtx->promptChoice = 0; Play_SaveSceneFlags(play); gSaveContext.savedSceneNum = play->sceneNum; @@ -3324,8 +3324,8 @@ void KaleidoScope_Update(PlayState* play) { case 0x10: if (CHECK_BTN_ALL(input->press.button, BTN_A) || CHECK_BTN_ALL(input->press.button, BTN_START)) { if (pauseCtx->promptChoice == 0) { - Audio_PlaySoundGeneral(NA_SE_SY_PIECE_OF_HEART, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_PIECE_OF_HEART, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); Play_SaveSceneFlags(play); switch (gSaveContext.entranceIndex) { @@ -3383,8 +3383,8 @@ void KaleidoScope_Update(PlayState* play) { break; } } else { - Audio_PlaySoundGeneral(NA_SE_SY_DECIDE, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_SY_DECIDE, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } pauseCtx->state = 0x11; diff --git a/tools/namefixer.py b/tools/namefixer.py index c821997e9d..73ccaaf164 100755 --- a/tools/namefixer.py +++ b/tools/namefixer.py @@ -153,7 +153,7 @@ wordReplace = { "func_800D20CC": "Matrix_MtxFToYXZRotS", "func_800D2264": "Matrix_MtxFToZYXRotS", "func_800D23FC": "Matrix_RotateAxis", - "PLAYER": ("GET_PLAYER(play)", {"ignore": (-1, '"PLAYER"')}), # ignore "PLAYER" in sSoundBankNames + "PLAYER": ("GET_PLAYER(play)", {"ignore": (-1, '"PLAYER"')}), # ignore "PLAYER" in sSfxBankNames "ACTIVE_CAM": "GET_ACTIVE_CAM(play)", "SkinMatrix_SetRotateRPY": "SkinMatrix_SetRotateZYX", "SkinMatrix_SetScaleRotateYRPTranslate": "SkinMatrix_SetScaleRotateYXZTranslate",