@clockworkdog/cogs-client 1.3.0 → 1.3.1

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.
@@ -109,6 +109,11 @@ class AudioPlayer {
109
109
  clipPlayer.player.off('fade', undefined, soundId);
110
110
  clipPlayer.player.off('end', undefined, soundId);
111
111
  clipPlayer.player.off('stop', undefined, soundId);
112
+ // Non-preloaded clips don't yet have an HTML audio node
113
+ // so we need to set the audio output when it's playing
114
+ clipPlayer.player.once('play', () => {
115
+ setPlayerSinkId(clipPlayer.player, this.sinkId);
116
+ });
112
117
  clipPlayer.player.once('stop', () => this.handleStoppedClip(path, playId, soundId), soundId);
113
118
  // Looping clips fire the 'end' callback on every loop
114
119
  clipPlayer.player.on('end', () => {