AudioTrackGetByIndex Method (MLiveClass)
input track index
description of received track
received track object
Gets the input track by its index.
Syntax
Public Overridable Sub AudioTrackGetByIndex( _
   ByVal _nIndex As Integer, _
   ByRef _pbsDesc As String, _
   ByRef _ppTrack As IMAudioTrack _
) 
public virtual void AudioTrackGetByIndex( 
   int _nIndex,
   out string _pbsDesc,
   out IMAudioTrack _ppTrack
)
public procedure AudioTrackGetByIndex( 
    _nIndex: Integer;
   Out  _pbsDesc: String;
   Out  _ppTrack: IMAudioTrack
); virtual; 
public: virtual void AudioTrackGetByIndex( 
   int _nIndex,
   [PARAMFLAG::Out] BSTR* _pbsDesc,
   [PARAMFLAG::Out] IMAudioTrack* _ppTrack
) 

Parameters

_nIndex
input track index
_pbsDesc
description of received track
_ppTrack
received track object
Example
'Get the first audio track
Dim track As IMAudioTrack
Dim strTrackDesc As String
m_objMFile.AudioTrackGetByIndex(1, strTrackDesc, track)
//Get the first audio track
IMAudioTrack track;
string strTrackDesc;
m_objMFile.AudioTrackGetByIndex(0, out strTrackDesc, out track);
var
track: IMAudioTrack;
strTrackDesc: string;
begin
mAudio.AudioTrackGetByIndex(1, strTrackDesc, track);
end;
See Also

Reference

MLiveClass Class
MLiveClass Members