lyb-pixi-js 1.3.1 → 1.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Components/Base/LibPixiSpine.js +1 -1
- package/Utils/LibPixiAudio.js +2 -2
- package/lyb-pixi.js +71 -71
- package/package.json +1 -1
package/Utils/LibPixiAudio.js
CHANGED
|
@@ -54,7 +54,7 @@ export class LibPixiAudio {
|
|
|
54
54
|
*/
|
|
55
55
|
playEffect(key, end) {
|
|
56
56
|
return new Promise((resolve) => {
|
|
57
|
-
const id =
|
|
57
|
+
const id = Math.random();
|
|
58
58
|
const url = Assets.get(key).url;
|
|
59
59
|
const sound = new Howl({
|
|
60
60
|
src: url,
|
|
@@ -131,7 +131,7 @@ export class LibPixiAudio {
|
|
|
131
131
|
const url = Assets.get(key).url;
|
|
132
132
|
this._playingList.forEach((item) => {
|
|
133
133
|
if (item.url === url) {
|
|
134
|
-
item.audio.
|
|
134
|
+
item.audio.stop();
|
|
135
135
|
}
|
|
136
136
|
});
|
|
137
137
|
this._playingList = this._playingList.filter((item) => item.url !== url);
|