add support for AudioDevice scripting interface, and switching audio input/output device on the fly