Returns the duration of the first stream in the specified audio file.

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

Syntax

Visual Basic

Public Shared Function GetAudioDuration ( _
	fileName As String _
) As Integer

C#

public static int GetAudioDuration(
	string fileName
)

Parameters

fileName

Type: System..::.String

The name of 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.