This documentation is for the old version. Go to the latest Graphics Mill docs

AviAudioManager.GetAudioDuration Method (Stream)

Returns the duration of the first stream in the specified Stream with an audio file.

Namespace: Aurigma.GraphicsMill.Codecs
Assembly: Aurigma.GraphicsMill.Codecs.AviProcessor (in Aurigma.GraphicsMill.Codecs.AviProcessor.dll)


Visual Basic
Public Shared Function GetAudioDuration ( _
	stream As Stream _
) As Integer
public static int GetAudioDuration(
	Stream stream



Type: System.IO.Stream

The Stream object with the file containing the audio data. It may be any RIFF-compliant file (like WAV or AVI).

Return Value

An integer value which contains the duration of the specified audio file. It is measured in 1/100 of seconds.

See Also