openInputDevice

@NotNull
abstract fun openInputDevice(@Nullable format: @Nullable AudioFormat): @NotNull InputDevice

Opens a new input device with the specified audio format and device parameters. Note: This method doesn't set the input device in the manager. You need to use setInputDevice.

Return

The input device.

Parameters

format

The audio format (or null to use the current ServerInfo voice format).

Throws

If there is an issue with opening an input device.