Check for headphones in Unity C#?

Is there any way to programmatically check and debug whether headphones or an external device is plugged into a windows and/or Mac device within a Unity application?

I’ve messed around a bit with Naudio and such but to no avail thus far.

  • You can use low-level API.

    – 




Leave a Comment