Appends audio data to existing audio stream.
Namespace:
Aurigma.GraphicsMill.Codecs
Assembly:
Aurigma.GraphicsMill.Codecs.AviProcessor (in Aurigma.GraphicsMill.Codecs.AviProcessor.dll)
Public Sub AppendAudioStream ( _ streamIndex As Integer, _ manager As AviAudioManager, _ sourceAudioStreamIndex As Integer, _ cutToVideoDuration As Boolean _ )
public void AppendAudioStream( int streamIndex, AviAudioManager manager, int sourceAudioStreamIndex, bool cutToVideoDuration )
Type: System.Int32
An index of the stream you want to append the audio data with.
Make sure that the audio stream with such index exists in the AVI file you create.
Type: Aurigma.GraphicsMill.Codecs.AviAudioManager
AviAudioManager class instance retrieved from the AviReader which is opened on the file you need to get the audio data from.Type: System.Int32
An index of the audio stream to retrieve the audio data from.Type: System.Boolean
A Boolean value that specifies whether to truncate audio data to fit the duration of the video.
Keep in mind that video duration is determined in the moment when you call this method. It means that if you:
only the first half of frames will be dubbed. The rest frames will be silent.
That is the reason why it is important to add audio data only when you add all video frames. You can use this fact to synchronize audio and video though.
You can use this member only if you get this instance of the AviAudioManager from the writer object.