对了,我把引擎类中的WebAudioSound类的dispose方法改了,改成了这样:
public function dispose():void {
delete _dataCache[url];
delete __loadingSound[url];
this.audioBuffer = null;
this.data = null;
this.__toPlays = [];
super.dispose();
}
如果不添加最后4行代码的话,每次切换回来内存就都会上涨了,现在是只有第一次上涨,之后就不会了