pause sound when switching to background