lichen-community-systems / Flocking

Flocking - Creative audio synthesis for the Web
GNU General Public License v2.0
692 stars 60 forks source link

The AudioIn demos in the Flocking Playground throw errors when using multichannel audio interfaces #300

Closed colinbdclark closed 3 years ago

colinbdclark commented 3 years ago

With my Expert Sleepers ES-8 interface, the Live audio input demo in the Flocking Playground will result in errors being thrown. This appears to be an issue with trying to read an out-of-bounds bus index in flock.ugen.audioIn's main sample generation function.

colinbdclark commented 3 years ago

Flocking doesn't take into account the number of output and input channels when allocating buses. The algorithm in flock.audioSystem.clampNumBuses() needs to take both into account when setting the minimum number of buses.