TrackChannelOrderSet Method
input or output flag
Possible values:
original channel index
new channel order
Changes specific channel order.
For example, it can be used to swap left and right channels.
Syntax
Sub TrackChannelOrderSet( _
   ByVal _bInput As Integer, _
   ByVal _nChannelIdx As Integer, _
   ByVal _nOrder As Integer _
) 
void TrackChannelOrderSet( 
   int _bInput,
   int _nChannelIdx,
   int _nOrder
)
procedure TrackChannelOrderSet( 
    _bInput: Integer;
    _nChannelIdx: Integer;
    _nOrder: Integer
); 
void TrackChannelOrderSet( 
   int _bInput,
   int _nChannelIdx,
   int _nOrder
) 

Parameters

_bInput
input or output flag
Possible values:
  • 0 is to set output channels order.
  • 1 is to set input channels order.
_nChannelIdx
original channel index
_nOrder
new channel order
Example
et 1-st input channel to 3-rd position
'Before call
' input output
' 1 -> 1
' 2 -> 2
' 3 -> 3
track.TrackChannelOrderSet(1, 0, 2)
' After call
' input output
' 3 -> 1
' 2 -> 2
' 1 -> 3
et 3-rd output channel to 2-nd position
'Before call
' input output
' 1 -> 1
' 2 -> 2
' 3 -> 3
track.TrackChannelOrderSet(0, 2, 1)
' After call
' input output
' 3 -> 3
' 2 -> 2
' 1 -> 1
//Set 1-st input channel to 3-rd position
//Before call
// input output
// 1 -> 1
// 2 -> 2
// 3 -> 3
track.TrackChannelOrderSet(1, 0, 2);
// After call
// input output
// 3 -> 1
// 2 -> 2
// 1 -> 3
//Set 3-rd output channel to 2-nd position
//Before call
// input output
// 1 -> 1
// 2 -> 2
// 3 -> 3
track.TrackChannelOrderSet(0, 2, 1);
// After call
// input output
// 3 -> 3
// 2 -> 2
// 1 -> 1
//Set 1-st input channel to 3-rd position
//Before call
// input output
// 1 -> 1
// 2 -> 2
// 3 -> 3
track.TrackChannelOrderSet(1, 0, 2);
// After call
// input output
// 3 -> 1
// 2 -> 2
// 1 -> 3
//Set 3-rd output channel to 2-nd position
//Before call
// input output
// 1 -> 1
// 2 -> 2
// 3 -> 3
track.TrackChannelOrderSet(0, 2, 1);
// After call
// input output
// 3 -> 3
// 2 -> 2
// 1 -> 1
See Also

Reference

IMAudioTrack Interface
IMAudioTrack Members