Small comment change

This commit is contained in:
Anne de Jong 2022-11-11 13:51:10 +01:00
parent 0c0a86dc64
commit f4c4a883c6

View File

@ -62,8 +62,8 @@ void fillRtAudioDeviceInfo(vector<DeviceInfo> &devinfolist) {
d.device_name = devinfo.name;
d.api_specific_devindex = devno;
/// We overwrite the default sample rate with the 48 kHz value, which
/// is our preffered rate.
/// When 48k is available we overwrite the default sample rate with the 48
/// kHz value, which is our preffered rate,
bool rate_48k_found = false;
for (us j = 0; j < devinfo.sampleRates.size(); j++) {
@ -72,13 +72,13 @@ void fillRtAudioDeviceInfo(vector<DeviceInfo> &devinfolist) {
d.availableSampleRates.push_back((double)rate_int);
if(!rate_48k_found) {
if (!rate_48k_found) {
if (devinfo.preferredSampleRate == rate_int) {
d.prefSampleRateIndex = j;
}
if(rate_int == 48000) {
if (rate_int == 48000) {
d.prefSampleRateIndex = j;
rate_48k_found = true;
}
@ -144,7 +144,7 @@ class RtAudioDaq : public Daq {
std::atomic<StreamStatus> _streamStatus{};
public:
public:
RtAudioDaq(const DeviceInfo &devinfo, const DaqConfiguration &config)
: Daq(devinfo, config),
rtaudio(static_cast<RtAudio::Api>(devinfo.api.api_specific_subcode)),