GetMusicDuration

Description

Returns the number of seconds it will take to play the given music file from start to finish. There must be no sounds playing for this command to work, or the given ID must be the track currently playing. For example if you try to get the duration of ID 2 and ID 1 is currently playing then it will fail, but if ID 2 is currently playing it will succeed. For variable bit rate files this command will return an approximation.

Definition

float GetMusicDuration( iID )

Parameters