gapless 4.0.5 → 4.0.6

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/Track.ts +3 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gapless",
3
- "version": "4.0.5",
3
+ "version": "4.0.6",
4
4
  "description": "Gapless audio playback javascript plugin",
5
5
  "type": "module",
6
6
  "main": "dist/index.mjs",
package/src/Track.ts CHANGED
@@ -172,7 +172,9 @@ export class Track {
172
172
  stopSourceNode: () => this._stopSourceNode(),
173
173
  disconnectGain: () => this._disconnectGain(),
174
174
  stopProgressLoop: () => this._stopProgressLoop(),
175
- reportProgress: () => this.queueRef.onProgress(this.toInfo()),
175
+ reportProgress: () => {
176
+ queueMicrotask(() => this.queueRef.onProgress(this.toInfo()));
177
+ },
176
178
  seekHtml5: () => this._seekHtml5(),
177
179
  seekWebAudio: () => this._seekWebAudio(),
178
180
  resetHtml5Element: () => {