Readd clarifying comment.
parent
0fc4a2a94e
commit
f9273d5607
|
@ -107,6 +107,10 @@ std::vector<AudioDeviceSpecification> PortAudioEngine::getAudioDeviceList(AudioD
|
||||||
streamParameters.suggestedLatency = Pa_GetDeviceInfo(index)->defaultHighInputLatency;
|
streamParameters.suggestedLatency = Pa_GetDeviceInfo(index)->defaultHighInputLatency;
|
||||||
streamParameters.hostApiSpecificStreamInfo = NULL;
|
streamParameters.hostApiSpecificStreamInfo = NULL;
|
||||||
|
|
||||||
|
// On Linux, the below logic causes the device lookup process to take MUCH
|
||||||
|
// longer than it does on other platforms, mainly because of the special devices
|
||||||
|
// it provides to PortAudio. For these, we're just going to assume the minimum
|
||||||
|
// valid channels is 1.
|
||||||
int maxChannels = direction == AUDIO_ENGINE_IN ? deviceInfo->maxInputChannels : deviceInfo->maxOutputChannels;
|
int maxChannels = direction == AUDIO_ENGINE_IN ? deviceInfo->maxInputChannels : deviceInfo->maxOutputChannels;
|
||||||
bool isDeviceWithKnownMinimum =
|
bool isDeviceWithKnownMinimum =
|
||||||
!strcmp(deviceInfo->name, "sysdefault") ||
|
!strcmp(deviceInfo->name, "sysdefault") ||
|
||||||
|
|
Loading…
Reference in New Issue