int MusHandleAsk(musHandle handle);
It determines how many channels associated with the specified sound handle are currently being processed.
The handle must be a sound handle returned by MusStartSong(), MusStartSongFromMarker(), MusStartEffect(), or MusStartEffect2(). If a handle of zero is supplied, this function will always return zero.
Number of channels currently being processed for the specified sound handle.
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);
}
MusAsk(), MusStartSong(), MusStartEffect(), MusStartEffect2()