ASIO.DeviceChannelVolumeGet method |
|
Remarks
Obtains the volume for a specific input or output ASIO channel. This volume can be modified through the ASIO.DeviceChannelVolumeSet 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.DeviceChannelVolumeGet ( nDeviceIndex as Integer, nChannelIndex as Integer, bInputChannel as enumBoolean, nScaleType as enumErrorCodes ) as Single |
[C++] float control.ASIO.DeviceChannelVolumeGet ( short nDeviceIndex, short nChannelIndex, short bInputChannel, short nScaleType ); |
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 |
|||||||||
bInputChannel |
Boolean value that specifies if the nChannelIndex parameter is related to an input or output channel. Supported values are the following:
|
|||||||||
nScaleType |
The volume scaling type. Supported values are the following:
|
Return value
Value |
Meaning |
|
|
Negative value |
An error occurred (see the LastError property for further error details) |
>= 0 |
The current channel volume |