ASIO.DeviceStart method |
|
Remarks
Starts the given ASIO device.
This call is mandatory in order to start working with a specific ASIO device for playback or for recording purposes; if you simply need to render audio data incoming from one or more input channels directly to one or more output channels, a possible alternative to this method is to invoke the ASIO.DeviceListenInputStart method.
In order to allow the call to this method, the ASIO device must be in stopped state.
A started device can be stopped at any time through the ASIO.DeviceStop method.
You can know if a certain device is started or stopped through the ASIO.DeviceIsStarted 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.DeviceStart ( nDeviceIndex as Integer, nSampleRate as Long, nChannelMode as enumAsioChannelModes, nOutputChannelFirst as Integer ) as enumErrorCodes |
[C++] short control.ASIO.DeviceStart ( short nDeviceIndex, long nSampleRate, short nChannelMode, short nOutputChannelFirst ); |
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. |
|||||||||||||||
nSampleRate |
Sample rate to set into the ASIO device (0=leave current). |
|||||||||||||||
nChannelMode |
Channel mode. Supported values are the following:
|
|||||||||||||||
nOutputChannelFirst |
Zero-based index of the first output channel used for sound rendering: this parameter is only used when the nChannelMode parameter is set to ASIO_CHANNEL_MODE_STEREO and is ignored in all other cases. |
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 |