mirror of
https://github.com/zeldaret/oot
synced 2026-05-23 06:54:24 -04:00
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:
@@ -157,6 +157,14 @@ typedef struct SfxParams {
|
||||
#define SFX_DIST_SCALING 10.0f
|
||||
#endif
|
||||
|
||||
#define SFX_PLAY_CENTERED(sfxId) \
|
||||
Audio_PlaySfxGeneral(sfxId, &gSfxDefaultPos, 4, &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, \
|
||||
&gSfxDefaultReverb);
|
||||
|
||||
#define SFX_PLAY_AT_POS(projectedPos, sfxId) \
|
||||
Audio_PlaySfxGeneral(sfxId, projectedPos, 4, &gSfxDefaultFreqAndVolScale, &gSfxDefaultFreqAndVolScale, \
|
||||
&gSfxDefaultReverb);
|
||||
|
||||
void Audio_SetSfxBanksMute(u16 muteMask);
|
||||
void Audio_QueueSeqCmdMute(u8 channelIndex);
|
||||
void Audio_ClearBGMMute(u8 channelIndex);
|
||||
|
||||
Reference in New Issue
Block a user