C4 Engine
C4 Engine API Documentation

Sound::GetLoopIndex

Defined in:  C4Sound.h
Returns the index of the resource in a streaming sound's play list which will be played when the sound loops.
Prototype

int32 GetLoopIndex(voidconst;

Description
Streamed sounds may have multiple resources concatenated and played in succession. When the end of the last resource in the list is reached, the sound may loop to any of the resources in the list. The GetLoopIndex function returns the zero-based index of the resource which will begin playing when the sound loops.

A sound's initial loop index is 0.
See Also

Sound::SetLoopIndex

Sound::GetLoopCount

Sound::SetLoopCount

Sound::SetLoopCallback