ASIO.DeviceChannelVolumeSet method |
|
Remarks
Sets the volume for a specific input or output ASIO channel.
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 DeviceChannelVolumeSet ( nDeviceIndex as Int16, nChannelIndex as Int16, bInputChannel as Boolean, fVolume as Single, nScaleType as enumVolumeScales ) as enumErrorCodes |
[C#] public enumErrorCodes DeviceChannelVolumeSet ( Int16 nDeviceIndex, Int16 nChannelIndex, bool bInputChannel, float fVolume, enumVolumeScales nScaleType ); |
[C++] public: enumErrorCodes DeviceChannelVolumeSet ( Int16 nDeviceIndex, Int16 nChannelIndex, bool bInputChannel, float fVolume, enumVolumeScales 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 output devices enumerated through the GetOutputDevicesCount and GetOutputDeviceDesc 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:
|
|||||||||
fVolume |
New volume expressed in the unit specified by the nScaleType parameter below. |
|||||||||
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) |
enumErrorCodes.NOERROR (0) |
The method call was successful. |