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
|
MusFxBankSetSingle()Sets the sound effect bank single-use override. Syntax void MusFxBankSetSignle(void *ifxbank); Arguments
Explanation
The default sound effect bank is used when the MusStartEffect() or the MusStartEffect2() function is used to start sound effects, if 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 ifxbank must contain the address of a sound effect bank initialized with the MusFxBankInitialize() function. Return Value
Example musHandle AudioStartEffect(void *fxbank, int number) { musHandle handle; if (number>=MusFxBankNumberOfEffects(fxbank)) return (0); /* failure! */ MusFxBankSetSingle(fxbank); handle = MusStartEffect(number); return (handle); } See Also
|