CountPlayingSamples
CountPlayingSamples

Returns the number of samples currently playing

totalSamples = mySounds.CountPlayingSamples( )

Return value
The number of samples currently playing.

Comments

When called, this will check through all the current samples and ensure they have not reached the end. If they have, the sample is automatically removed (this operation is also performed in Play()) The function then returns the remaining number of samples.
Because of these checks, if you plan to use the result many times, it is recomended to cache the result in a temporary variable for later use.

See also
Special:CountPlayingMusics
Special:IsPlaying



JAM © 2005 no one in partiular
Project started by David Evans in 2005