I think we can use the new GstDeviceMonitor API for this.
The current AudioSession API seems quite specific to Apple platforms. Closing, because I'm not sure I see the benefits of supporting this anyway.