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

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

Saves a portion of the audio stream with specified index to a System.IO.Stream object.

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

Syntax

Visual Basic
Public Sub ExportAudioStream ( _
	streamIndex As Integer, _
	stream As Stream, _
	sourceOffset As Integer, _
	duration As Integer _
)
C#
public void ExportAudioStream(
	int streamIndex,
	Stream stream,
	int sourceOffset,
	int duration
)

Parameters

streamIndex

Type: System.Int32

An index of the audio stream.
stream

Type: System.IO.Stream

A destination System.IO.Stream object.
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