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.

[VisualBasic]
PublicReadOnlyPropertyPlayLengthAsUInt32
[C#]
publicuintPlayLength{get;}

See Also

ISound Class | IrrKlang Namespace