IrrKlang.NET

ISoundSource.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 lenght reporting or it is a file stream of unknown size. Note: If the sound never has been played before, the sound engine will have to open the file and try to get the play lenght from there, so this call could take a bit depending on the type of file.

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

See Also

ISoundSource Class | IrrKlang Namespace