ASIO.DeviceMasterVolumeGet method |
|
Remarks
Obtains the master volume for input or output ASIO channels of a specific ASIO device. This volume can be modified through the ASIO.DeviceMasterVolumeSet 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 DeviceMasterVolumeGet ( nDeviceIndex as Int16, bInputChannel as Boolean, nScaleType as enumVolumeScales ) as Single |
[C#] public float DeviceMasterVolumeGet ( Int16 nDeviceIndex, bool bInputChannel, enumVolumeScales nScaleType ); |
[C++] public: float DeviceMasterVolumeGet ( Int16 nDeviceIndex, bool bInputChannel, 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 input devices enumerated through the GetInputDevicesCount and GetInputDeviceDesc methods which may contain both DirectSound and ASIO devices. |
|||||||||
bInputChannel |
Boolean value that specifies if we need to obtain the master volume for input or output channels. 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 volume |