With the change I mentioned, this could call TheApp.audio.onEndPause here and pause_state_changed could be removed.