ASIO.DeviceSampleRateSupportedGet method |
|
Remarks
Obtains a specific sample rate supported by the given ASIO device.
This method can be only used after the ASIO device has been started through the ASIO.DeviceStart 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.DeviceSampleRateSupportedGet ( nDeviceIndex as Integer, nSampleRateIndex as Long, nRate as Long ) as enumErrorCodes |
[C++] short control.ASIO.DeviceSampleRateSupportedGet ( short nDeviceIndex, long nSampleRateIndex, long *nRate ); |
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. |
nSampleRateIndex |
Number representing the zero-based index of a specific sample rate supported by the given ASIO device. The total number of supported sample rates can be obtained through the ASIO.DeviceSampleRateSupportedCountGet method. |
nRate |
Reference that, on return from the method call, will contain the requested sample rate supported by the given ASIO device. |
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 |