Is there any method inside the AudioContext can let ByteTimeDomainData back to the sound?

90 views Asked by At

The following code is where I can put the current TimeDomainData into an array.

    fbc_array = new Uint8Array(analyser.frequencyBinCount);
    analyser.getByteTimeDomainData(fbc_array);

And then I can use the for statement to let each fbc_array[i] value (Time Domain waveform) being displayed on canvas.

Question:

I want to use the mouse events to trigger the sound where the mouse hovers on the Time Domain waveform.

Is there any method inside the AudioContext can let the fbc_array[i] value back to the sound?

0

There are 0 answers