MusAsk()

Syntax

int MusAsk(unsigned long flags);

Arguments

flags
sound source type

Description

It determines 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()