A question about the Standalone wrapper for plugins


#1

I have some Juce plugins which accepts many inputs and outputs ( say 8 ). Now if i use them as VST plugins no problem at all, but if i try to use them with the Standalone wrapper (which uses the AudioDeviceManager) i’m getting lot of problems cause my default ALSA audio device have only 2 inputs (but up to 8 outputs) and so i’m getting the AudioDeviceManager trying to call snd_pcm_hw_params_set_channels with more channels than what it’s available in my device… and so i’m unable to make it work.

There is a clean way to circumvent this ?


#2

Can’t think of a good way round it. I can’t remember - is this a limitation of ALSA itself or of the juce alsa code?


#3

i think is a limitation of the juce ALSA code, cause it’s trying to call snd_pcm_hw_params_set_channels with an arbitrary number of channels without check if the device supports less than that first.