Skip to main content

Change Capture Device By Id

Change Capture Device By Id

IMPORTANT! Use the Async version in case you experience stuttering. Updates the capture device and restarts the capture stream of the Audio Capture component. The Async version runs asynchronously and does not block the main thread.

Inputs

NameTypeDescription
Execexec
New Device IdstringThe id of the targeted capture device.
On Change Completed (Async Only)delegateCallback for when the change result is available. Used only in the async version.

Outputs

NameTypeDescription
Execexec
SuccessbooleanWhether or not the capture device was successfully changed. This is for the synchronous version only.