WASAPI.ListenInputDeviceStart method |
|
Remarks
Attaches a given WASAPI capture device to a specific render device, allowing to emulate the "Listen to this device" option available inside the Windows control panel.
The effect of this method can be canceled through a call to the WASAPI.ListenInputDeviceStop method.
Both the given capture and render devices must have been previously started through one between the WASAPI.DeviceStartShared and WASAPI.DeviceStartExcusive methods.
This method is only intended for usage with Windows Vista and later versions.
For further details about the use of WASAPI see the WASAPI object and the How to manage audio flow through WASAPI tutorial.
Syntax
[Visual Basic] control.WASAPI.ListenInputDeviceStart ( nInputDeviceIndex as Integer, nRenderDeviceIndex as Integer ) as enumErrorCodes |
[C++] short control.WASAPI.ListenInputDeviceStart ( short nInputDeviceIndex, short nRenderDeviceIndex ); |
Parameter |
Description |
|
|
nInputDeviceIndex |
Number representing the zero-based index of the WASAPI capture device of interest. The total number of available WASAPI capture devices can be obtained using the WASAPI.DeviceGetCount method with the nDeviceType parameter set to WASAPI_DEVICE_TYPE_CAPTURE. |
nRenderDeviceIndex |
Number representing the zero-based index of the WASAPI render device of interest. The total number of available WASAPI render devices can be obtained using the WASAPI.DeviceGetCount method with the nDeviceType parameter set to WASAPI_DEVICE_TYPE_RENDER. |
Return value
Value |
Meaning |
|
|
Negative value |
An error occurred, check the LastError property value in order to get the error code |
enumErrorCodes.ERR_NOERROR (0) |
The method call was successful |