Force 16 bit samples if 24 is requested.

merge-requests/9/merge
Phil Taylor 2022-04-11 23:24:56 +01:00
rodzic 55fdf52436
commit e834396387
1 zmienionych plików z 5 dodań i 0 usunięć

Wyświetl plik

@ -126,6 +126,11 @@ bool audioHandler::init(audioSetup setupIn)
return false;
}
if (format.sampleSize() == 24) {
// We can't convert this easily
format.setSampleSize(16);
}
qInfo(logAudio()) << (setup.isinput ? "Input" : "Output") << "Internal: sample rate" << format.sampleRate() << "channel count" << format.channelCount();
// We "hopefully" now have a valid format that is supported so try connecting