Allow user-defined audio device max channels

In this age where computers can process more and more tracks, maybe it is more common for audio I/O devices to have more channels (?). They can at least be aggregated on mac such that multiple devices can appear as one device with hardware synchronized clocks.

So, I’m making a case that the maximum number of audio channels for a given hardware device should be flexible and user-definable. The maximum channels are currently fixed at 128 and defined here:

sources/juce_AudioSourcePlayer.h: float* channels[128];
sources/juce_AudioSourcePlayer.h: float* outputChans[128];
sources/juce_AudioSourcePlayer.h: const float* inputChans[128];

This is the only code that I am forced to edit/hack in the JUCE released code.

The proposal is to create a #define in that module that the user can set in projucer. I know a device of more than 128 channels is probably not a widely requested need, but at least it is one that should be easy to remedy. We all like easy feature requests :). Cheers!

There even are audio interfaces that have more then 128 addressable channels. For example the MADIFace XT by RME with, on single speed, three times 64 (MADI streams).