N64® Functions Menu

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

Nintendo® Confidential




Mus Library Reference


MusFxBankInitialize()

Initialize a sound effect bank.

Syntax

  void MusFxBankInitialize(void *fxbank);

Arguments

  • fxbank is the address of a binary sound effect file

Explanation
Initialize a sound effect bank. If a default sound effect bank is not currently set, make this bank the default sound effect bank. If the sound effect bank has not already been initialized, the list of offsets the bank contains is converted to pointers and the associated sample bank override is cleared.

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
None

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
MusFxBankGetCurrent()
MusFxBankSetCurrent()
MusFxBankSetSingle()
MusStartEffect()
MusStartEffect2()


Nintendo® Confidential

Warning: all information in this document is confidential and covered by a non-disclosure agreement. You are responsible for keeping this information confidential and protected. Nintendo will vigorously enforce this responsibility.


Copyright © 1998-1999
Nintendo of America Inc. All rights reserved
Nintendo and N64 are registered trademarks of Nintendo
Last updated March 1999