fix switching audio device bug
Merge pull request #2701 from ZappoMan/master

fix switching audio device bug