Macroify PlaySfxGeneral calls: introduce SFX_PLAY_CENTERED and SFX_PLAY_AT_POS (#2633)

* Add `SFX_PLAY_CENTERED`

* Add `SFX_PLAY_AT_POS`
This commit is contained in:
Dragorn421
2025-06-16 00:28:37 +02:00
committed by GitHub
parent 05a2818557
commit fd1ea6bc1a
95 changed files with 519 additions and 1070 deletions
+1 -2
View File
@@ -63,6 +63,5 @@ void SfxSource_PlaySfxAtFixedWorldPos(PlayState* play, Vec3f* worldPos, s32 dura
source->countdown = duration;
SkinMatrix_Vec3fMtxFMultXYZ(&play->viewProjectionMtxF, &source->worldPos, &source->projectedPos);
Audio_PlaySfxGeneral(sfxId, &source->projectedPos, 4, &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale,
&gSfxDefaultReverb);
SFX_PLAY_AT_POS(&source->projectedPos, sfxId);
}