Add some state check to cc.AudioEngine