* Observed on OS X, fldigi cannot work on audio cards with mono output
    - it requests 2 channels from PortAudio no matter what and portaudio
      will complain if the audio output is only mono.
    - modified SoundPort::init_stream to make sure that if max_channels < 2
      sd[1].params.channelCount is updated to max_channels
pull/4/head
Edouard Lafargue W6ELA 2016-04-13 15:15:35 -05:00 zatwierdzone przez David Freese
rodzic 4ab48d41e4
commit 505c8b384b
1 zmienionych plików z 2 dodań i 0 usunięć

Wyświetl plik

@ -1602,6 +1602,8 @@ void SoundPort::init_stream(unsigned dir)
else
sd[1].params.suggestedLatency = (*sd[dir].idev)->defaultHighOutputLatency;
sd[1].params.hostApiSpecificStreamInfo = NULL;
if (max_channels < 2)
sd[1].params.channelCount = max_channels;
}
const vector<double>& rates = supported_rates[dir][(*sd[dir].idev)->name];