I am using the channel splitter and merger to attempt to split a stereo file into two discrete channels and then funnel them back into the node graph as a "mono" input source that plays in both the left and right monitors. I figured out a way to do it but it uses the stereoPanner node set to 0.5 , and it feels a bit "hacky". How would I do this without using the stereoPanner node ?
//____________________________________________BEGIN Setup
var merger = audioContext.createChannelMerger();
var stereoPanner = audioContext.createStereoPanner();
var stereoInputSource = audioContext.createBufferSource();
stereoInputSource.buffer = soundObj.soundToPlay;
//____________________________________________END Setup
stereoInputSource.connect(merger, 0, 0);
merger.connect(stereoPanner);
stereoPanner.pan.value = 0.5;
stereoPanner.connect(audioContext.destination);