1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-18 00:54:19 +00:00

Linux: Increased maximum number of reported ALSA channels

This commit is contained in:
hogliux 2017-08-29 10:14:32 +01:00
parent b83bf4e7ce
commit 8a239ea5c3

View file

@ -75,7 +75,7 @@ static void getDeviceNumChannels (snd_pcm_t* handle, unsigned int* minChans, uns
JUCE_ALSA_LOG ("getDeviceNumChannels: " << (int) *minChans << " " << (int) *maxChans);
// some virtual devices (dmix for example) report 10000 channels , we have to clamp these values
*maxChans = jmin (*maxChans, 32u);
*maxChans = jmin (*maxChans, 256u);
*minChans = jmin (*minChans, *maxChans);
}
else