Is there a cross-platform way to detect if the current mic is usb or built-in?

I want to detect when a USB mic is connected vs the built-in mic. Currently I do this by knowing the mic’s deviceName for each platform. Do you know of a cross-platform way to do this without looking at deviceNames?

Currently, there is no interface in Unity allowing to differentiate capture device types, and I am not aware of a strong cross-platform library providing such information. Even with native APIs, this information is not always obvious to get or even available… :
I’d say that the device name is probably the best source of information there.

1 Like

This plug-in did the trick for me… GitHub - DaVikingCode/UnityDetectHeadset: Detect if a headphone is plugged on iOS & Android.

1 Like