C4 Engine
C4 Engine API Documentation

Sound::SetLoopIndex

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

void SetLoopIndex(int32 index);

Parameters
index The zero-based index of the resource which should be replayed when the sound loops.
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 SetLoopIndex function sets the index of the resource which will begin playing when the sound loops to that given by the index parameter.
See Also

Sound::GetLoopIndex

Sound::GetLoopCount

Sound::SetLoopCount

Sound::SetLoopCallback