mirror of
https://github.com/zeldaret/mm.git
synced 2026-06-11 05:08:00 -04:00
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
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user