fix audiodevice adding logic