Copyright © 2006 - 2008 MultiMedia Soft 
Return to Table of contents  
 
 
SetInputDeviceChannelVolume method 
 
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 total number of available input channels for the given input device can be obtained using the GetInputDeviceChannelsCount method. 
 
 
Syntax 
 
[Visual Basic] 
Public Function SetInputDeviceChannelVolume
nInputDevice  as Int16, 
nInputChannel as Int16, 
nVolume as Int16 
) as Int16 
 
[C#] 
public Int16 SetInputDeviceChannelVolume
Int16 nInputDevice
Int16 nInputChannel, 
Int16 nVolume 
);
 
[C++] 
public: Int16 SetInputDeviceChannelVolume
Int16 nInputDevice, 
Int16 nInputChannel, 
Int16 nVolume  
);
 
 
Parameter
Description
 
 
nInputDevice
Number representing the zero-based index of the input device
nInputChannel
Number representing the zero-based index of the requested 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 last error.
enumErrorCodes.NOERROR (0)
The method call was successful.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Copyright © 2006 - 2008 MultiMedia Soft 
Return to Table of contents