title: Switch audio device using winapi
body: <p>i find this <a href="http://www.daveamenta.com/2011-05/programmatically-or-command-line-change-the-default-sound-playback-device-in-windows-7/" rel="nofollow">http://www.daveamenta.com/2011-05/programmatically-or-command-line-change-the-default-sound-playback-device-in-windows-7/</a> , and it works for me, but i want to switch audio devices, i have 2 audio devices, if active 1st turn on 2nd, if active 2nd turn on 1st. But i don't know is it possible to check if audio device active in windows</p>