TrackModeSet Method
mode of the track
index of track for mixing
gain value for mixing
Sets the track mode.
Syntax
Sub TrackModeSet( _
   ByVal _eMode As eMAudioTrackMode, _
   ByVal _nAddToTrack As Integer, _
   ByVal _dblAddGain As Double _
) 
procedure TrackModeSet( 
    _eMode: eMAudioTrackMode;
    _nAddToTrack: Integer;
    _dblAddGain: Double
); 

Parameters

_eMode
mode of the track
_nAddToTrack
index of track for mixing
_dblAddGain
gain value for mixing
Example
//Enable this track and disable all others (for example to choose language)
track.TrackModeSet(eMAudioTrackMode.eMAT_Exclusive, 0, 0)
//Disable this track
track.TrackModeSet(eMAudioTrackMode.eMAT_Disabled, 0, 0)
//Mix this track with 3-rd one with 40 Db gain
track.TrackModeSet(eMAudioTrackMode.eMAT_Enabled_AddTo, 4, 40)
//Enable this track and disable all others (for example to choose language)
track.TrackModeSet(eMAudioTrackMode.eMAT_Exclusive, 0, 0);
//Disable this track
track.TrackModeSet(eMAudioTrackMode.eMAT_Disabled, 0, 0);
//Mix this track with 3-rd one with 40 Db gain
track.TrackModeSet(eMAudioTrackMode.eMAT_Enabled_AddTo, 4, 40);
//Enable this track and disable all others (for example to choose language)
track.TrackModeSet(eMAT_Exclusive, 0, 0);
//Disable this track
track.TrackModeSet(eMAT_Disabled, 0, 0);
//Mix this track with 3-rd one with 40 Db gain
track.TrackModeSet(eMAT_Enabled_AddTo, 4, 40);
See Also

Reference

IMAudioTrack Interface
IMAudioTrack Members