Closed ukaj808 closed 1 year ago
Extra Context:
The canvas fills correctly, so the draw function is running;
The indivudual samples in the dataArray (buffer) are always "-Infinity" when I log them
My audio has a single output source, with 2 channels (L, R)
This is a non-issue. I had a bug in my code... I was reinitialzing the analyser before connecting it to the audio worklet node. Apologies ):
Hey everyone!
I'm following this doc here, in an attempt to implement the frequency bar graph in my app. I cant seem to get the bars to appear.
I've hooked up the analyser into my graph (note that its source connection is an AudioWorkletNode):
And i've hooked into a canvas element on my page and implemented the draw function:
I was wondering if the analyser works when hooked up to a AudioWorkletNode? I noticed in the docs that you use a MediaStreamAudioSourceNode and in the voice-change-o-matic source code you use another type of node:
Here's my code for extra reference: where connection to graph is made where draw function is called