AudioSwitcher: Improve boundary checking.