ASIO.DeviceListenInputStart method |
|
Remarks
Starts the given ASIO device in order to allow direct playback of audio data incoming from one or more input channels to one or more output channels.
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 ASIOMan class and the How to manage ASIO drivers tutorial.
Syntax
[Visual Basic] Public Function DeviceListenInputStart ( nDeviceIndex as Int16, nInputChannelFirst as Int16, nOutputChannelFirst as Int16, nTotalChannels as Int16 ) as enumErrorCodes |
[C#] public enumErrorCodes DeviceListenInputStart ( Int16 nDeviceIndex, Int16 nInputChannelFirst, Int16 nOutputChannelFirst, Int16 nTotalChannels ); |
[C++] public: enumErrorCodes DeviceListenInputStart ( Int16 nDeviceIndex, Int16 nInputChannelFirst, Int16 nOutputChannelFirst, Int16 nTotalChannels ); |
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. |
nInputChannelFirst |
Zero-based index of the first input channel used for getting incoming audio data. |
nOutputChannelFirst |
Zero-based index of the first output channel used for direct playback of incoming audio data. |
nTotalChannels |
Total number of input/output channels |
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. |