@urso/core 0.4.32 → 0.4.33
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/package.json
CHANGED
|
@@ -55,6 +55,9 @@ class SoundSprite {
|
|
|
55
55
|
this._player.on('end', id => {
|
|
56
56
|
const soundState = this._getSoundStateById(id);
|
|
57
57
|
|
|
58
|
+
if (!soundState)
|
|
59
|
+
return Urso.logger.error(`SoundSprite error: soundState for id '${id}' not found!`);
|
|
60
|
+
|
|
58
61
|
if (!soundState.loop)
|
|
59
62
|
soundState.id = null;
|
|
60
63
|
});
|
|
@@ -175,7 +178,7 @@ class SoundSprite {
|
|
|
175
178
|
const params = { loop, relaunch, volume, soundKey };
|
|
176
179
|
|
|
177
180
|
if (!self[action])
|
|
178
|
-
Urso.logger.error(`Sound action '${action}' not found!`);
|
|
181
|
+
return Urso.logger.error(`SoundSprite error: Sound action '${action}' not found!`);
|
|
179
182
|
|
|
180
183
|
if (!this._isAudioUnlocked)
|
|
181
184
|
this._addEventToQueue({ ...params, action });
|