TrackGainSet Method
channel index
Possible values:
gain value
Minimum value (mute): -60 dB
No changes: 0
Maximum value: +60dB
time period to apply changes in seconds
Sets the audio gain for specific channel or whole track.
Syntax
Sub TrackGainSet( _
   ByVal _nChannel As Integer, _
   ByVal _dblGain As Double, _
   ByVal _dblTimeForChange As Double _
) 
procedure TrackGainSet( 
    _nChannel: Integer;
    _dblGain: Double;
    _dblTimeForChange: Double
); 

Parameters

_nChannel
channel index
Possible values:
  • 1, 2, 3, ... n are for channel index
  • -1 is for whole track
_dblGain
gain value
Minimum value (mute): -60 dB
No changes: 0
Maximum value: +60dB
_dblTimeForChange
time period to apply changes in seconds
Example
track.TrackGainSet(-1, 10, 100);
track.TrackGainSet(-1, 10, 100);
track.TrackGainSet(-1, 10, 100);
See Also

Reference

IMAudioTrack Interface
IMAudioTrack Members