@clockworkdog/cogs-client 2.0.0-beta.5 → 2.0.0
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/dist/AudioPlayer.js +2 -2
- package/dist/browser/index.js +3 -3
- package/package.json +1 -1
package/dist/AudioPlayer.js
CHANGED
|
@@ -256,8 +256,8 @@ class AudioPlayer {
|
|
|
256
256
|
// Set callback after starting new fade, otherwise it will fire straight away as the previous fade is cancelled
|
|
257
257
|
clipPlayer.player.once('fade', (soundId) => {
|
|
258
258
|
clipPlayer.player.loop(false, soundId);
|
|
259
|
-
clipPlayer.player.stop(soundId)
|
|
260
|
-
});
|
|
259
|
+
clipPlayer.player.stop(soundId);
|
|
260
|
+
}, soundId);
|
|
261
261
|
log('CLIP -> stopping', soundId);
|
|
262
262
|
clip.state = { type: 'stopping' };
|
|
263
263
|
}
|