Copyright © 2006-2018 MultiMedia Soft

SetInputDeviceChannelDefault method

Previous pageReturn to chapter overviewNext page

Remarks

 

Sets the new default channel for the given input device.

 

The friendly name of each input channel can be obtained using the GetInputDeviceChannelDesc method.

 

IMPORTANT NOTE ABOUT THE WINDOWS VERSION: This method is only intended for usage when the operating system is Windows XP or older versions; for Windows Vista and higher versions it's recommended using methods exposed by the CoreAudioDevices COM object.

 

 

Syntax

 

[Visual Basic]

control.SetInputDeviceChannelDefault (

nInputDevice as integer,

nInputChannel as integer

) as enumErrorCodes


 

[C++]

short control.SetInputDeviceChannelDefault (

short nInputDevice,

short nInputChannel

);


 

 

Parameter

Description

 

 

nInputDevice

Number representing the zero-based index of the input device

nInputChannel

Number representing the zero-based index of the new default input channel (Microphone, Stereo Mix, Line-In, etc.)

 

Return value

 

Value

Meaning

 

 

Negative value

An error occurred, check the LastError property value in order to see the error code meaning

enumErrorCodes.ERR_NOERROR (0)

The method call was successful.