Copyright © 2006-2019 MultiMedia Soft

GetInputDeviceChannelVolume method

Previous pageReturn to chapter overviewNext page

Remarks

 

Retrieves the current volume for the given channel on the given input device.

 

The chosen channel's volume can be modified using the SetInputDeviceChannelVolume method.

 

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

 

 

Syntax

 

[Visual Basic]

control.GetInputDeviceChannelVolume (

nInputDevice as integer,

nInputChannel as integer

) as integer


 

[C++]

short control.GetInputDeviceChannelVolume (

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

>= 0

The channel's volume: can be a value between 0 and 100