Operates a single audio track.
Methods
TrackChannelOrderGet
Gets channel order.
Syntax
void TrackChannelOrderGet( int _bInput, int _nChannelIdx, out int _pnOrder )
Parameters
_bInput - input or output flag Possible values: 0 is to get output channel order. 1 is to get input channel order.
_nChannelIdx - original channel index
_pnOrder - new channel order
TrackChannelOrderSet
Changes specific channel order. For example, it can be used to swap left and right channels.
Syntax
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
TrackChannelsGet
Gets the number of input track channels, the number of output channels and first channel index of this track in output stream.
Syntax
void TrackChannelsGet( out int _pnInputChannels, out int _pnOutputChannelIdx, out int _pnOutputChannels )
Parameters
_pnInputChannels - number of input channels
_pnOutputChannelIdx - index of first channel of this track in output stream
_pnOutputChannels - number of output channels
TrackChannelsSet
Sets the number of output channels for this track. If output channels number is less than input (for example 5.1 to stereo) then mixes the channels together. To prevent mixing you can mute unneeded channels first.
Syntax
void TrackChannelsSet( int _nOutputChannels )
Parameters
_nOutputChannels - number of output channels
TrackGainGet
Gets the audio gain for specific channel.
Syntax
void TrackGainGet( int _nChannel, 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
TrackGainSet
Sets the audio gain for specific channel or whole track.
Syntax
void TrackGainSet( int _nChannel, double _dblGain, double _dblTimeForChange )
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
TrackIsVirtual
Indicates whether the track is virtual.
Syntax
void TrackIsVirtual( out int _pbVirtual, out int _pnSourceTrack, out string _pbsChannelsSet )
Parameters
_pbVirtual - virtual track flag Possible values: 1 means that track is virtual. 0 means that track is not virtual.
_pnSourceTrack - source track index
_pbsChannelsSet - channels set string
TrackLoudnessGet
Gets the audio track original and output loudness information.
Syntax
void TrackLoudnessGet( out M_AUDIO_TRACK_LOUDNESS _pAudioLoudnessOrg, out M_AUDIO_TRACK_LOUDNESS _pAudioLoudnessOut )
Parameters
_pAudioLoudnessOrg - input loudness value and number of channels
_pAudioLoudnessOut - output loudness value and number of channels
TrackModeGet
Gets the audio track mode.
Syntax
void TrackModeGet( out eMAudioTrackMode _peMode, out int _pnAddToTrack, out double _pdblAddGain )
Parameters
_peMode - mode of the track
_pnAddToTrack - index of track for mixing
_pdblAddGain - gain value for mixing
TrackModeSet
Sets the track mode.
Syntax
void TrackModeSet( eMAudioTrackMode _eMode, int _nAddToTrack, double _dblAddGain )
Parameters
_eMode - mode of the track
_nAddToTrack - index of track for mixing
_dblAddGain - gain value for mixing
TrackMuteGet
Indicates whether the channel is muted.
Syntax
void TrackMuteGet( int _nChannel, out int _pbMute )
Parameters
_nChannel - channel index
_pbMute - mute flag Possible values: 1 means that channel is muted. 0 means that channel is not muted.
TrackMuteSet
Mutes the specific channel.
Syntax
void TrackMuteSet( int _nChannel, int _bMute, double _dblTimeForChange )
Parameters
_nChannel - channel index
_bMute - mute flag Possible values: 1 is to mute the channel. 0 is to not mute the channel.
_dblTimeForChange - time period to apply changes in seconds
TrackOrderGet
Gets the output order of this track.
Syntax
void TrackOrderGet( out int _pnOrder )
Parameters
_pnOrder - order value
TrackOrderSet
Sets the output order of this track.
Syntax
void TrackOrderSet( int _nOrder )
Parameters
_nOrder - order value