A 5.1 audio system is connected via hdmi. The operating system processes it correctly, I can test each individual speaker and get the expected result.

I need to use JS to send audio to specific channels (speakers). Below is the code. The number of channels and other nuances work correctly.
let source;
const AudioContext = window.AudioContext || window.webkitAudioContext;
const audioCtx = new AudioContext();
const audioUrl = "1.mp3";
const audioResp = await fetch(audioUrl);
const arrayBuffer = await audioResp.arrayBuffer();
const audioBuffer = await audioCtx.decodeAudioData(arrayBuffer);
let channelCount = audioCtx.destination.maxChannelCount;
let audioChannelCount = audioBuffer.numberOfChannels;
const splitter = audioCtx.createChannelSplitter(channelCount);
const merger = audioCtx.createChannelMerger(channelCount);
source = audioCtx.createBufferSource();
source.buffer = audioBuffer;
source.connect(splitter);
const test = splitter.connect(merger, 0, 0);
const test2 = splitter.connect(merger, 0, 3);
merger.connect(audioCtx.destination);
source?.start();
If I'm writing splitter.connect(merger, 0, 0); or splitter.connect(merger, 0, 1); the audio is played correctly on the left or right speaker. But if I write splitter.connect(merger, 0, 3); it doesn't play at all. But if I specify channel 4 or 5, I get the same result as if I specify 0 or 1. All other columns are always silent. How do I get through to them? I need to be able to send a certain audio file to a certain channel.
Yes, essentially the problem is solved as follows:
My final working version looks like this