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


MusFxBankSetCurrent()

Set the default sound effect bank.

Syntax

  void MusFxBankSetCurrent(void *ifxbank);

Arguments

  • ifxbank is the address of an initialized sound effect bank

Explanation
Set the current default sound effect bank address.

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
None

Example

  void StackEffectBank(void *fx_addr)
  {
    effect_bank_stack[stack_ptr++]=MusFxBankGetCurrent();
    MusFxBankSetCurrent(fx_addr);
  }

  void UnStackEffectBank(void)
  {
    MusFxBankSetCurrent(effect_bank_stack[--stack_ptr]);
  }

See Also
MusFxBankInitialize()
MusFxBankGetCurrent()
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