mirror of
https://github.com/genxium/DelayNoMore
synced 2024-12-29 13:08:17 +00:00
13 lines
329 B
JavaScript
13 lines
329 B
JavaScript
|
(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;
|
||
|
};
|
||
|
})();
|