diff options
| author | Jordan Longstaff <JordanLongstaff@users.noreply.github.com> | 2026-02-26 03:59:16 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-02-26 09:59:16 +0100 |
| commit | 3d51e210200ef05059a42b5e1cdb7ab2d59348d6 (patch) | |
| tree | 7d56f77316a8eb1ea81ce9d7e4f58b094996b76a /src/audio | |
| parent | ba71ca39d24de8303097e42a51ccaa46522878ef (diff) | |
Finish `EnMThunder` documentation (#2702)
* Finish `EnMThunder` documentation
* Boolean conversion
* Hex to decimal conversions
* Rename static variables
Diffstat (limited to 'src/audio')
| -rw-r--r-- | src/audio/game/general.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/audio/game/general.c b/src/audio/game/general.c index 980b98015..dd806a56c 100644 --- a/src/audio/game/general.c +++ b/src/audio/game/general.c @@ -140,8 +140,8 @@ f32 sBehindScreenZ[2] = { -15.0f, -65.0f }; u8 sAudioIncreasingTranspose = 0; u8 gMorphaTransposeTable[16] = { 0, 0, 0, 1, 1, 2, 4, 6, 8, 8, 8, 8, 8, 8, 8, 8 }; u8 sPrevChargeLevel = 0; -f32 D_801305E4[4] = { 1.0f, 1.12246f, 1.33484f, 1.33484f }; // 2**({0, 2, 5, 5}/12) -f32 D_801305F4 = 1.0f; +f32 sSfxSwordChargeFreqLevels[4] = { 1.0f, 1.12246f, 1.33484f, 1.33484f }; // 2**({0, 2, 5, 5}/12) +f32 sSfxSwordChargeFreq = 1.0f; u8 sGanonsTowerLevelsVol[8] = { 127, 80, 75, 73, 70, 68, 65, 60 }; u8 sEnterGanonsTowerTimer = 0; #if DEBUG_FEATURES @@ -2819,17 +2819,17 @@ void Audio_PlaySfxRandom(Vec3f* pos, u16 baseSfxId, u8 randLim) { SFX_PLAY_AT_POS(pos, baseSfxId + offset); } -void func_800F4254(Vec3f* pos, u8 level) { +void Audio_PlaySwordChargeSfx(Vec3f* pos, u8 level) { level &= 3; if (level != sPrevChargeLevel) { - D_801305F4 = D_801305E4[level]; + sSfxSwordChargeFreq = sSfxSwordChargeFreqLevels[level]; switch (level) { case 1: - Audio_PlaySfxGeneral(NA_SE_PL_SWORD_CHARGE, pos, 4, &D_801305F4, &gSfxDefaultFreqAndVolScale, + Audio_PlaySfxGeneral(NA_SE_PL_SWORD_CHARGE, pos, 4, &sSfxSwordChargeFreq, &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); break; case 2: - Audio_PlaySfxGeneral(NA_SE_PL_SWORD_CHARGE, pos, 4, &D_801305F4, &gSfxDefaultFreqAndVolScale, + Audio_PlaySfxGeneral(NA_SE_PL_SWORD_CHARGE, pos, 4, &sSfxSwordChargeFreq, &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); break; } @@ -2838,8 +2838,8 @@ void func_800F4254(Vec3f* pos, u8 level) { } if (level != 0) { - Audio_PlaySfxGeneral(NA_SE_IT_SWORD_CHARGE - SFX_FLAG, pos, 4, &D_801305F4, &gSfxDefaultFreqAndVolScale, - &gSfxDefaultReverb); + Audio_PlaySfxGeneral(NA_SE_IT_SWORD_CHARGE - SFX_FLAG, pos, 4, &sSfxSwordChargeFreq, + &gSfxDefaultFreqAndVolScale, &gSfxDefaultReverb); } } |
