C4 Engine
C4 Engine API Documentation

SoundStreamer::GetStreamFrameCount

Defined in:  C4Sound.h
Called to retrieve the total frame count for a stream.
Prototype

virtual int32 GetStreamFrameCount(void);

Description
The Sound Manager calls the GetStreamFrameCount function when it needs to know the total number of audio frames contained in a stream. By default, this function returns zero, which means that the length of the stream is indefinite. Subclasses of the SoundStreamer class should implement an override of the GetStreamFrameCount function when the length of the audio stream can be determined.