TrackGainGet Method
channel index
Possible values:
gain value:
Gets the audio gain for specific channel.
Syntax
Sub TrackGainGet( _
   ByVal _nChannel As Integer, _
   ByRef _pdblGain As Double _
) 
void TrackGainGet( 
   int _nChannel,
   out double _pdblGain
)
procedure TrackGainGet( 
    _nChannel: Integer;
   Out  _pdblGain: Double
); 
void TrackGainGet( 
   int _nChannel,
   [PARAMFLAG::Out] double _pdblGain
) 

Parameters

_nChannel
channel index
Possible values:
  • 1, 2, 3, ... n are for channel index.
  • -1 is for whole track.
_pdblGain
gain value:
  • Minimum value (mute): -60 dB
  • No changes: 0
  • Maximum value: +60dB
Example
Dim nGain As Integer
track.TrackGainGet(0, nGain)
int nGain;
track.TrackGainGet(0, out nGain);
var
nGain: integer;
begin
track.TrackGainGet(0, nGain);
end;
See Also

Reference

IMAudioTrack Interface
IMAudioTrack Members