!function(){var o=window.QySound=cc.Class.extend({ctor:function(o){o.preload&&o.urls&&o.urls.length&&this.preloadEffect(o.urls[0]);o.preload&&o.urls&&o.urls.length&&console.log("预加载");this.setLoop(!!o.loop);this.background_=o.background;this.url=o.urls[0]}});o.prototype.setLoop=function(o){this.loop_=o};o.prototype.isLoop=function(){return this.loop_?!0:!1};o.prototype.play=function(o){this.sdId=this.background_?cc.audioEngine.playMusic(this.url,o?o:this.isLoop()):cc.audioEngine.playEffect(this.url,o?o:this.isLoop())}}();