gogins / csound-extended

Extensions for Csound including algorithmic composition, Android app, and WebAssembly.
GNU Lesser General Public License v2.1
40 stars 1 forks source link

Make Csound for WebAssembly accept mismatching input and output channel counts #150

Closed gogins closed 3 years ago

gogins commented 3 years ago

The CsoundAudioProcessor class fails to produce real-time audio if the WebAudio input channel count doesn't match Csound's spin channel count, or Csound's spout channel count doesn't match the WebAudio output channel count.

The code should be changed so that Csound performs in real time with any configuration. The only exception should be that ksmps must match the frames per quantum of Web Audio (128).