Allow duplex mode for PortAudio ALSA devices
Building, testing and releasing LASP if it has a tag / Build-Test-Ubuntu (push) Successful in 2m53s Details
Building, testing and releasing LASP if it has a tag / Release-Ubuntu (push) Has been skipped Details

This commit is contained in:
Anne de Jong 2024-02-06 15:02:25 +01:00
parent 7ce45e9c82
commit 6bda124196
1 changed files with 3 additions and 7 deletions

View File

@ -137,6 +137,9 @@ void fillPortAudioDeviceInfo(DeviceInfoList &devinfolist) {
d.ninchannels = deviceInfo->maxInputChannels;
d.noutchannels = deviceInfo->maxOutputChannels;
// Duplex mode, only for ALSA devices
d.hasDuplexMode = hasDuplexMode;
devinfolist.push_back(std::make_unique<OurPaDeviceInfo>(d));
}
}
@ -349,13 +352,6 @@ void PortAudioDaq::start(InDaqCallback inCallback, OutDaqCallback outCallback) {
throw rte("Stream is already running");
}
// Logical XOR
if (inCallback && outCallback) {
throw rte(
"Either input or output stream possible for PortAudio. "
"Stream duplex mode not provided.");
}
if (neninchannels() > 0) {
if (!inCallback) {
throw rte(