Fixes bug where audio player wouldstop instead ofpausingwhen removing headphones.