AudioTrackAdd Method (MWriterClass)
index of source track. This track will be cloned to create new virtual track.
mask string that specifies channels taken from source track
track description
created audio track object
Adds a virtual audio track with needed subset of channels. Virtual track clones one of already existsing tracks.
Syntax
Public Overridable Sub AudioTrackAdd( _
   ByVal _nSourceTrack As Integer, _
   ByVal _bsUseChannels As String, _
   ByVal _bsDesc As String, _
   ByRef _ppTrack As IMAudioTrack _
) 
public virtual void AudioTrackAdd( 
   int _nSourceTrack,
   string _bsUseChannels,
   string _bsDesc,
   out IMAudioTrack _ppTrack
)
public procedure AudioTrackAdd( 
    _nSourceTrack: Integer;
    _bsUseChannels: String;
    _bsDesc: String;
   Out  _ppTrack: IMAudioTrack
); virtual; 
public: virtual void AudioTrackAdd( 
   int _nSourceTrack,
   BSTR* _bsUseChannels,
   BSTR* _bsDesc,
   [PARAMFLAG::Out] IMAudioTrack* _ppTrack
) 

Parameters

_nSourceTrack
index of source track. This track will be cloned to create new virtual track.
_bsUseChannels
mask string that specifies channels taken from source track
_bsDesc
track description
_ppTrack
created audio track object
Example
Dim track As IMAudioTrack
'Create new virtual track as full clone of 0 track
m_objMFile.AudioTrackAdd(0, "", "NewTrack", track)
'Create new virtual track as clone of 1,2,4 channels of 2 track
m_objMFile.AudioTrackAdd(2, "1,2,4", "NewTrack", track)
IMAudioTrack track;
//Create new virtual track as full clone of 0 track
m_objMFile.AudioTrackAdd(0, "", "NewTrack", out track);
//Create new virtual track as clone of 1,2,4 channels of 2 track
m_objMFile.AudioTrackAdd(2, "1,2,4", "NewTrack", out track);
var
track: IMAudioTrack;
begin
//Create new virtual track as full clone of 0 track
mAudio.AudioTrackAdd(0, '', 'NewTrack', out track);
//Create new virtual track as clone of 1,2,4 channels of 2 track
mAudio.AudioTrackAdd(2, '1,2,4', 'NewTrack', track);
end;
See Also

Reference

MWriterClass Class
MWriterClass Members