DelayNoMore/frontend/build-templates/wechatgame/libs/engine/Audio.js

13 lines
329 B
JavaScript
Raw Normal View History

2022-09-20 15:50:01 +00:00
(function () {
if (!(cc && cc.Audio)) {
return;
}
cc.Audio.prototype.stop = function () {
if (!this._element) return;
this._element.stop();
this._element.currentTime = 0;
this._unbindEnded();
this.emit('stop');
this._state = cc.Audio.State.STOPPED;
};
})();