SoundGroup::getNumPlaying

FMOD Studio API

Firelight Technologies FMOD Studio API

SoundGroup::getNumPlaying

Retrieves the number of currently playing channels for the sound group.

C++ Syntax

FMOD_RESULT SoundGroup::getNumPlaying(
  int *numplaying
);

C Syntax

FMOD_RESULT FMOD_SoundGroup_GetNumPlaying(
  FMOD_SOUNDGROUP *soundgroup,
  int *numplaying
);

C# Syntax

RESULT SoundGroup.getNumPlaying(
  out int numplaying
);

JavaScript Syntax

SoundGroup.getNumPlaying(
  numplaying                       // writes value to numplaying.val
);

Parameters

numplaying
Address of a variable to receive the number of actively playing channels from sounds in this sound group.

Return Values

If the function succeeds then the return value is FMOD_OK.
If the function fails then the return value will be one of the values defined in the FMOD_RESULT enumeration.

Remarks

This routine returns the number of channels playing. If the sound group only has 1 sound, and that sound is playing twice, the figure returned will be 2.

See Also




Version 1.10.03 Built on Feb 1, 2018