We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 782b785 commit d1be71cCopy full SHA for d1be71c
packages/react/src/worklets/audio-worklet.js
@@ -6,6 +6,8 @@ class BufferQueue {
6
7
// For fading out
8
this._fadeOutDurationMs = 100;
9
+ // sampleRate is part of AudioWorkletGlobalScope
10
+ // eslint-disable-next-line no-undef
11
this._sampleRate = sampleRate;
12
this._fadeOutSamplesCount = Math.floor(
13
(this._fadeOutDurationMs * this._sampleRate) / 1000,
0 commit comments