setPreferredAudioInputDevice

Sets the preferred audio input device for recording.

This allows routing audio input to a specific device, such as a USB microphone that may not be detected by AudioSwitch (e.g., Rode Wireless Go II).

Return

true if the preference was set successfully, false otherwise.

Parameters

deviceInfo

The AudioDeviceInfo to use for recording, or null to restore default routing.