Add audio device selection. Fixes #3553.