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


MusAsk()

Determines the number of active channels.

Syntax

  int MusAsk(unsigned long flags);

Arguments

  • flags - sound source type

Explanation
Determine how many channels are currently being processed by the specified type. This function is used to test if sound effects, songs, or both are in use.

The argument flags must contain MUSFLAG_SONGS, MUSFLAG_EFFECTS, or both OR'ed together.

Return Value
Number of channels currently being processed.

Example

  void SilenceAllSound(int frames)
  {
    MusStop(MUSFLAG_SONGS|MUSFLAG_EFFECTS,frames);
    while (MusAsk(MUSFLAG_SONGS|MUSFLAG_EFFECTS))
    CallNormalProcessing();
  }

See Also
MusStop()
MusHandleAsk()


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