C4 Engine Terathon Software C4 Engine API Documentation

• Sound Manager

API Links
Developer Links

Sound::GetLoopCount

Defined in:  C4Sound.h
Returns the number of times that a sound will loop.
Prototype

long GetLoopCount(voidconst;

Description
The GetLoopCount function returns the number of times that the sound will loop when it is played. If the sound is set to loop forever, the constant kSoundLoopInfinite is returned. The loop count can be set by calling the Sound::SetLoopCount function.

A sound's initial loop count is 1.
See Also

Sound::SetLoopCount

Sound::GetLoopIndex

Sound::SetLoopIndex

Sound::SetLoopProc