Copyright © 2006-2020 MultiMedia Soft

ASIO.DeviceChannelInputAmplyfierSet method

Previous pageReturn to chapter overviewNext page

Remarks

 

Sets the current amplification factor for the given input channel. The current amplification factor can be obtained through the ASIO.DeviceChannelInputAmplyfierGet method.

 

For further details about the use of ASIO drivers see the ASIO object section and the How to manage ASIO drivers tutorial.

 

 

Syntax

 

[Visual Basic]

control.ASIO.DeviceChannelInputAmplyfierSet (

nDeviceIndex as Integer,

nChannelIndex as Integer,

fFactor as Single

) as Single


 

[C++]

float control.ASIO.DeviceChannelInputAmplyfierSet (

short nDeviceIndex,

short nChannelIndex,

float fFactor

);


 

Parameter

Description

 

 

nDeviceIndex

Number representing the zero-based index of the ASIO device.

This index is related to available ASIO devices so it must be the related to the enumeration performed through the ASIO.DeviceGetCount and ASIO.DeviceGetDesc methods: it must not be confused with indexes related to generic input devices enumerated through the GetInputDevicesCount and GetInputDeviceDesc methods which may contain both DirectSound and ASIO devices.

nChannelIndex

Number representing the zero-based index of the ASIO channel of interest

fFactor

The new amplification factor.

- value 0.0 means that sound in input is muted

- values higher than 0.0 and smaller than 1.0 attenuate the input level

- value 1.0 means that no amplification is applied

- values higher than 1.0 amplify the input level

 

 

 

Return value

 

Value

Meaning

 

 

Negative value

An error occurred (see the LastError property for further error details)

>= 0

The current channel volume