al - Audio Library Functions gDP - DP GBI Macros gdSP - General GBI Macros gSP - SP GBI Macros gt - Turbo Microcode RDP gu - Graphics Utilities Math - Math Functions Mus - Mus Library nuSys - NuSystem os - N64 Operating System sp - Sprite Library Functions uh - Host to Target IO 64DD - N64 Disk Drive
|
MusFxBankInitialize()Initialize a sound effect bank. Syntax void MusFxBankInitialize(void *fxbank); Arguments
Explanation
The default sound effect bank is used when the MusStartEffect() or the MusStartEffect2() function is used to start sound effects when no sound effect bank override has been defined. The MusFxBankSetSingle() function can be used to define a sound effect bank override for the next sound effect started. The RAM address of a Nintendo 64 Sound Tools .BFX file must be provided in fxbank. The sound effect bank file address must be 32-bit aligned, although it is recommended that it be cache aligned. Return Value
Example void AudioSetEffectBank(int effect_bank) { /* test if effect bank is already loaded */ if (effect_bank==last_effect_bank) return; last_effect_bank = effect_bank; /* load effect bank */ AudioTransfer(fx_address[effect_bank], fx_buffer); /* initialize effect bank */ MusFxBankInitialize(fx_buffer); /* set as default effect bank */ MusFxBankSetCurrent(fx_buffer); } See Also
|