I'm learning the WebAudio API and experimenting by building a simple audio player with a visualiser and an equaliser.
Both the visualiser and equaliser work on their own, but when I have them both connected to the AudioContext, the equaliser stops working.
Here's some of the code...
The equaliser
var sum = APP.audioContext.createGain();
APP.lGain.connect(sum);
APP.mGain.connect(sum);
APP.hGain.connect(sum);
sum.connect(APP.audioContext.destination);
And the visualiser
APP.analyser = APP.audioContext.createAnalyser();
APP.source.connect(APP.analyser);
APP.analyser.connect(APP.audioContext.destination);
If I remove the final line APP.analyser.connect(APP.audioContext.destination);
then the equaliser works, but then my visualiser obviously breaks.
This works fine in Firefox, but not in Chrome (osx).
Thanks in advance for any help!