C4 Engine Terathon Software C4 Engine API Documentation

• Sound Manager

API Links
Developer Links

Sound::GetDuration

Defined in:  C4Sound.h
Returns the duration of a sound.
Prototype

long GetDuration(voidconst;

Description
The GetDuration function returns the duration of a sound in milliseconds. If the sound is streaming and has multiple resources in its play list, then the GetDuration function returns the sum of the durations of those resources.