summaryrefslogtreecommitdiff
path: root/src/code/code_800F7260.c
diff options
context:
space:
mode:
authorengineer124 <47598039+engineer124@users.noreply.github.com>2022-04-24 00:55:18 +1000
committerGitHub <noreply@github.com>2022-04-23 10:55:18 -0400
commitef870bdd11c07ade54f0c92fa3470eed43ba12e4 (patch)
tree31d9085c5918c26669b32a0b3317515ce7bf6185 /src/code/code_800F7260.c
parent1e03b662f2a1d7ea5221695facb33b09eb6c0754 (diff)
Name variables for Audio_PlaySoundGeneral (#1198)
* Rename variables and function * Improve comment * PR Suggestion * PR Suggestions * Revert back to `Audio_PlaySoundGeneral`, make a separate PR `Sound` -> `Sfx` * Oops, fixed that
Diffstat (limited to 'src/code/code_800F7260.c')
-rw-r--r--src/code/code_800F7260.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/code/code_800F7260.c b/src/code/code_800F7260.c
index 188f6d8b2..6976e5466 100644
--- a/src/code/code_800F7260.c
+++ b/src/code/code_800F7260.c
@@ -79,13 +79,18 @@ u8 gSfxChannelLayout = 0;
u16 D_801333D0 = 0;
-Vec3f D_801333D4 = { 0.0f, 0.0f, 0.0f }; // default pos
+// The center of the screen in projected coordinates.
+// Gives the impression that the sfx has no specific location
+Vec3f gSfxDefaultPos = { 0.0f, 0.0f, 0.0f };
-f32 D_801333E0 = 1.0f; // default freqScale
+// Reused as either frequency or volume multiplicative scaling factor
+// Does not alter or change frequency or volume
+f32 gSfxDefaultFreqAndVolScale = 1.0f;
s32 D_801333E4 = 0; // unused
-s8 D_801333E8 = 0; // default reverbAdd
+// Adds no reverb to the existing reverb
+s8 gSfxDefaultReverb = 0;
s32 D_801333EC = 0; // unused
@@ -370,7 +375,7 @@ void Audio_ChooseActiveSounds(u8 bankId) {
} else if (gSoundBanks[bankId][entryIndex].state != SFX_STATE_EMPTY) {
entry = &gSoundBanks[bankId][entryIndex];
- if (&D_801333D4.x == entry[0].posX) {
+ if (&gSfxDefaultPos.x == entry[0].posX) {
entry->dist = 0.0f;
} else {
tempf1 = *entry->posY * 1;