IrrKlang.NET

ISound.PlayLength Property

Returns the play length of the sound in milliseconds. Returns -1 if not known for this sound for example because its decoder does not support length reporting or it is a file stream of unknown size. Note: You can also use ISoundSource::getPlayLength() to get the length of a sound without actually needing to play it.

[Visual Basic]
Public ReadOnly Property PlayLength As UInt32
[C#]
public uint PlayLength {get;}

See Also

ISound Class | IrrKlang Namespace