Add some state check to cc.AudioEngine

Add some state check to cc.AudioEngine