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 ASIOMan class and the How to manage ASIO drivers tutorial.

 

 

Syntax

 

[Visual Basic]

Public Function DeviceChannelInputAmplyfierSet (

nDeviceIndex as Int16,

nChannelIndex as Int16,

fFactor as Single

) as enumErrorCodes


 

[C#]

public enumErrorCodes DeviceChannelInputAmplyfierSet (

Int16 nDeviceIndex,

Int16 nChannelIndex,

float fFactor

);


 

[C++]

public: enumErrorCodes DeviceChannelInputAmplyfierSet (

Int16 nDeviceIndex,

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

enumErrorCodes.ERR_NOERROR (0)

The method call was successful.