C4 Engine Terathon Software C4 Engine API Documentation

• Sound Manager

API Links
Developer Links

SoundStreamer::GetTotalFrameCount

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

virtual int32 GetTotalFrameCount(void);

Description
The Sound Manager calls the GetTotalFrameCount 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 GetTotalFrameCount function when the length of the audio stream can be determined.