-
Notifications
You must be signed in to change notification settings - Fork 0
How It Works
The runtime reads the configured Windows render endpoint through the native Windows Core Audio APIs (no third-party tools). A typical supported transition is:
Active → Connected
Unplugged → Disconnected
A disabled endpoint, an unexpected state or a read failure is Unknown. Unknown never triggers a switch.
For Logitech wireless headsets (PRO X 2, PRO X Wireless, PRO X and other G HUB-supported headsets), AutoSwitch connects to the unofficial local G HUB WebSocket on ws://localhost:9010, discovers the matching headset and uses its battery-state payload as the physical ON/OFF signal.
G HUB device IDs are volatile and are rediscovered; they are not persisted as machine configuration.
For SteelSeries Arctis Nova 5/5X, AutoSwitch reads the headset state directly over HID (native Windows hid.dll/setupapi.dll calls). No SteelSeries GG or third-party software is required.
The configured Windows Item IDs are set through the native Core Audio COM interface (Console, Multimedia and Communications roles, each verified). Item IDs are machine-local and can change after driver updates or endpoint recreation, so Reconfigure... can resolve and persist a fresh ID.
The OFF debounce requires consecutive disconnected readings before moving to the fallback output.
Logitech PRO X 2 LIGHTSPEED uses direct Centurion HID for physical ON/OFF state and battery percentage. The configuration value remains LogitechGHub for backward compatibility, but G HUB's removed /battery/<deviceId>/state route is not used for PRO X 2 state detection anymore. Unknown HID reads never switch audio, and OFF still requires consecutive confirmed observations.
Audio AutoSwitch · MIT · Repository · Security · Home · Inicio