Copyright © 2006-2019 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 CoreAudioDevicesMan class.

 

 

Syntax

 

[Visual Basic]

Public Function SetInputDeviceChannelDefault (

nInputDevice as Int16,

nInputChannel as Int16

) as enumErrorCodes


 

[C#]

public enumErrorCodes SetInputDeviceChannelDefault (

Int16 nInputDevice,

Int16 nInputChannel

);


 

[C++]

public: enumErrorCodes SetInputDeviceChannelDefault (

Int16 nInputDevice,

Int16 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.