mirror of
https://github.com/genxium/DelayNoMore
synced 2025-11-10 16:29:06 +00:00
Initial commit.
This commit is contained in:
13
frontend/build-templates/wechatgame/libs/engine/Audio.js
Normal file
13
frontend/build-templates/wechatgame/libs/engine/Audio.js
Normal file
@@ -0,0 +1,13 @@
|
||||
(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;
|
||||
};
|
||||
})();
|
||||
Reference in New Issue
Block a user