I am streaming PCM audio chunks by emitting them via socket.io. Then on the browser am using pcm-player to feed the the data as they are received.
I can hear the sound clearly, and everything seems fine.
My issue is now that I want to visualize the sound that I am receiving, but everywhere I looked, I stumble on the same part. I need to create a AudioContext analyzer, which needs a source. The only way I can create a source, is by linking it to an <audio> tag createMediaElementSource()
My question is: How can I connect the AudioContext analyzer to the PCMPlayer source?
This is what the PCMPlayer contains:
