Browse Source

Linux: Increased maximum number of reported ALSA channels

tags/2021-05-28
hogliux 8 years ago
parent
commit
8a239ea5c3
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      modules/juce_audio_devices/native/juce_linux_ALSA.cpp

+ 1
- 1
modules/juce_audio_devices/native/juce_linux_ALSA.cpp 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); JUCE_ALSA_LOG ("getDeviceNumChannels: " << (int) *minChans << " " << (int) *maxChans);
// some virtual devices (dmix for example) report 10000 channels , we have to clamp these values // 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); *minChans = jmin (*minChans, *maxChans);
} }
else else


Loading…
Cancel
Save