Remarks
Sets the new volume for the given channel on the given input device
The chosen channel's current volume can be retrieved using the GetInputDeviceChannelVolume method.
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.SetInputDeviceChannelVolume (
nInputDevice as integer,
nInputChannel as integer,
nVolume as integer
) as integer
|
|
[C++]
short control.SetInputDeviceChannelVolume (
short nInputDevice,
short nInputChannel,
short nVolume
);
|
|
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.)
|
nVolume
|
The new channel's volume: can be a value between 0 and 100
|
Return value
Value
|
Meaning
|
|
|
Negative value
|
An error occurred, check the LastError property value in order to see the error code meaning
|
0
|
The method call was successful.
|
|