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

AviAudioManager.ExportAudioStream Method (Int32, String, Int32, Int32)

Saves a portion of the audio stream with specified index to a separate WAV file.

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

Syntax

Visual Basic
Public Sub ExportAudioStream ( _
	streamIndex As Integer, _
	fileName As String, _
	sourceOffset As Integer, _
	duration As Integer _
)
C#
public void ExportAudioStream(
	int streamIndex,
	string fileName,
	int sourceOffset,
	int duration
)

Parameters

streamIndex

Type: System.Int32

An index of the audio stream.
fileName

Type: System.String

A name of the destination WAV file.
sourceOffset

Type: System.Int32

An offset of the source audio data (in 1/100 of seconds). In other words, how many data to skip from the sound track.
duration

Type: System.Int32

A length of the audio data (in 1/100 of seconds) to extract.

Remarks

Stream indexes are zero-based. To get the total number of audio streams, use the AudioStreamCount property.

Note

You can use this member only if you get this instance of the AviAudioManager from the reader object.

See Also

Reference