ASX Version4.13.09
Functions

Channel Mode control functions

These functions support channel mode operations that can be used to swap left and right audio channels, or convert stereo sources to mono outputs etc. More...

Functions

ASX32_API ASX_ERROR ASX_ChannelMode_Enumerate (ASX_HANDLE hMode, const int nIndex, enum asxCHANNELMODE *peMode, int *pnCount)
 Enumerate each channel mode option.
ASX32_API ASX_ERROR ASX_ChannelMode_Get (ASX_HANDLE hMode, enum asxCHANNELMODE *peMode)
 Get the current channel mode.
ASX32_API ASX_ERROR ASX_ChannelMode_Set (ASX_HANDLE hMode, const enum asxCHANNELMODE eMode)
 Set the current channel mode.

Detailed Description

These functions support channel mode operations that can be used to swap left and right audio channels, or convert stereo sources to mono outputs etc.


Function Documentation

ASX32_API ASX_ERROR ASX_ChannelMode_Enumerate ( ASX_HANDLE  hMode,
const int  nIndex,
enum asxCHANNELMODE peMode,
int *  pnCount 
)

Enumerate each channel mode option.

Parameters:
hModeA handle to an ASX channel mode control.
nIndexThe index of the channel mode option to fetch.
peModeThe returned channel mode option. See asxCHANNELMODE for available settings.
pnCountThe total number of available mode options.
Returns:
Returns 0 if there is no error, otherwise one of asxERROR is returned.
ASX32_API ASX_ERROR ASX_ChannelMode_Get ( ASX_HANDLE  hMode,
enum asxCHANNELMODE peMode 
)

Get the current channel mode.

Parameters:
hModeA handle to an ASX channel mode control.
peModeThe returned channel mode. See asxCHANNELMODE for different mode options.
Returns:
Returns 0 if there is no error, otherwise one of asxERROR is returned.
ASX32_API ASX_ERROR ASX_ChannelMode_Set ( ASX_HANDLE  hMode,
const enum asxCHANNELMODE  eMode 
)

Set the current channel mode.

Parameters:
hModeA handle to an ASX channel mode control.
eModeThe channel mode to set. This must be one of the options returned by calls to ASX_ChannelMode_Enumerate().
Returns:
Returns 0 if there is no error, otherwise one of asxERROR is returned.
Examples:
dual_mono_play/main.c, and dual_mono_record/main.c.