mirror of
https://github.com/zeldaret/oot.git
synced 2025-08-07 23:10:22 +00: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:
parent
05a2818557
commit
fd1ea6bc1a
95 changed files with 519 additions and 1070 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue