currentFrame property
The read-only currentFrame
property of the AudioWorkletGlobalScope
returns an integer that represents the ever-increasing current
sample-frame of the audio block being processed. It is incremented by 128
(the size of a render quantum) after the processing of each audio block.
Implementation
int get currentFrame;