有谁知道cc.audioEngine怎样可以全局静音么?

有谁知道cc.audioEngine怎样可以全局静音么?

  1. cc.audioEngine.pauseAll();
  2. cc.audioEngine.stopAll();
  3. 记住所有的声音audioID,然后挨个调用cc.audioEngine.setVolume(audioID, volume)。

谢谢啊