We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f6e493e commit 71cda9bCopy full SHA for 71cda9b
1 file changed
src/playback/processing/streamProcessor.js
@@ -384,11 +384,20 @@ class SymphoniaDecoderStream extends Transform {
384
this._loopScheduled ||
385
this._isDecoding ||
386
!this._isDecoderValid() ||
387
- this.readableFlowing === false ||
388
- this.readableLength >= this.readableHighWaterMark
+ this.readableFlowing === false
389
)
390
return
391
+ if (this.readableLength >= this.readableHighWaterMark) {
392
+ this._loopScheduled = true
393
+ this._timeoutId = setTimeout(() => {
394
+ this._timeoutId = null
395
+ this._loopScheduled = false
396
+ if (this._isDecoderValid()) this._scheduleDecode()
397
+ }, AUDIO_CONSTANTS.decodeIntervalMs)
398
+ return
399
+ }
400
+
401
this._loopScheduled = true
402
403
this._timeoutId = setTimeout(() => {
0 commit comments