Merge pull request 'fix: prevent orbit clicking by defining max number of channels in an orbit' (#1552) from orbitfix into main

Reviewed-on: https://codeberg.org/uzu/strudel/pulls/1552
This commit is contained in:
Switch Angel AKA Jade Rose
2025-09-07 21:05:23 +02:00
+1 -1
View File
@@ -413,7 +413,7 @@ function connectToOrbit(node, orbit) {
function setOrbit(audioContext, orbit, channels) {
if (orbits[orbit] == null) {
orbits[orbit] = {
gain: new GainNode(audioContext, { gain: 1 }),
gain: new GainNode(audioContext, { gain: 1, channelCount: 2, channelCountMode: 'explicit' }),
};
connectToDestination(orbits[orbit].gain, channels);
}