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


MusFxBankSetPtrBank()

Set the sound effect bank sample bank override.

Syntax

  void MusFxBankSetPtrBank(void *ifxbank, void *ipbank);

Arguments

  • ifxbank is the address of an initialized sound effect bank

  • ipbank is the address of an initialized sample bank

Explanation
Set the sample bank override associated with the specified sound effect bank, if the sample bank override is set to NULL

The default sample bank is used when the MusStartEffect() or the MusStartEffect2() function is used to start sound effects, if no sample bank override has been defined. If a sample bank override has been specified with the MusFxBankSetPtrBank() function for the effect bank to which the triggering sound effect belongs, then the MusFxBankSetPtrBank() will be used, unless a higher priority override has been defined using the MusPtrBankSetSingle() function.

The ifxbank must contain the address of a sound effect bank initialized with the MusFxBankInitialize() function.

The ipbank must be the address of a sample pointer bank file that has been initialized with the MusPtrBankInitialize() function.

Return Value
None

Example

  void GameSongSetFxBank(musHandle song_handle, void *fx_bank)
  {
    void *ptr_bank;

    ptr_bank = MusHandleGetPtrBank(song_handle);
    MusFxBankSetPtrBank(fx_bank, ptr_bank);
  }

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