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

## MusHandleAsk()

Determine the number of active channels using a sound handle.

Syntax

      int MusHandleAsk(musHandle handle);

Arguments

- handle is the sound handle

Explanation
Determine how many channels associated with the specified sound handle are currently being processed.

The handle must be a sound handle returned by MusStartSong(), MusStartEffect() or MusStartEffect2(). If an handle of zero is supplied, this function will always return zero.

Return Value
Number of channels currently being processed for the specified sound handle.

Example

      void PlayEntireSong(void *addr);
      {
        unsigned long handle;

        handle = MusStartSong(addr);
        while (MusHandleAsk(handle))
        CallNormalProcessing();
      }

      void AlwaysTriggerSoundEffect(void)
      {
        static unsigned long handle=0;

        if (MusHandleAsk(handle)==0)
        handle = MusStartEffect(RETRIGGER_SOUND);
      }

See Also
`MusAsk()`
MusStartSong()
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