summaryrefslogtreecommitdiff
path: root/src/code/z_sound_source.c
diff options
context:
space:
mode:
authorengineer124 <47598039+engineer124@users.noreply.github.com>2023-06-21 13:13:51 +1000
committerGitHub <noreply@github.com>2023-06-20 23:13:51 -0400
commit9c0fc94fe3c331fb125a4e4c23409f527f35c023 (patch)
tree88adb904c63873b98e410ac3e0f1dc5df596b72c /src/code/z_sound_source.c
parent7194936203917389a013c35be24d1675d8044a0f (diff)
Audio Sfx Functions Decompiled and Documented (code_8019AF00.c) (#1242)
* sfx decomp and docs * function headers * namefixer * oops * better sfx name * PR review * namefixer * PR review * float * namefixer * namefixer * namefixer * PR Suggestions
Diffstat (limited to 'src/code/z_sound_source.c')
-rw-r--r--src/code/z_sound_source.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/code/z_sound_source.c b/src/code/z_sound_source.c
index 4962f7072..3a5a31c59 100644
--- a/src/code/z_sound_source.c
+++ b/src/code/z_sound_source.c
@@ -21,7 +21,7 @@ void SoundSource_UpdateAll(PlayState* play) {
} else {
SkinMatrix_Vec3fMtxFMultXYZ(&play->viewProjectionMtxF, &source->worldPos, &source->projectedPos);
if (source->playSfxEachFrame) {
- Audio_PlaySfxAtPos(&source->projectedPos, source->sfxId);
+ Audio_PlaySfx_AtPos(&source->projectedPos, source->sfxId);
}
}
}
@@ -64,7 +64,7 @@ void SoundSource_Add(PlayState* play, Vec3f* worldPos, u32 duration, u16 sfxId,
source->sfxId = sfxId;
SkinMatrix_Vec3fMtxFMultXYZ(&play->viewProjectionMtxF, &source->worldPos, &source->projectedPos);
- Audio_PlaySfxAtPos(&source->projectedPos, sfxId);
+ Audio_PlaySfx_AtPos(&source->projectedPos, sfxId);
}
void SoundSource_PlaySfxAtFixedWorldPos(PlayState* play, Vec3f* worldPos, u32 duration, u16 sfxId) {