mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-06-13 20:12:29 -04:00
Compare commits
2 Commits
c333fb505c
...
05f88acf02
Author | SHA1 | Date | |
---|---|---|---|
|
05f88acf02 | ||
|
9b714aed45 |
@ -44,7 +44,7 @@ QList<int> AudioDeviceInfo::supportedSampleRates() const
|
||||
// QAudioDevice is a bit more flexible than QAudioDeviceInfo, in that it supports
|
||||
// min and max rate, rather than a specific list
|
||||
// For now, we just list some common rates.
|
||||
QList<int> sampleRates = {8000, 11025, 22050, 44100, 48000, 96000, 192000};
|
||||
QList<int> sampleRates = {8000, 11025, 22050, 44100, 48000, 96000, 192000, 384000};
|
||||
QList<int> supportedRates;
|
||||
for (auto sampleRate : sampleRates)
|
||||
{
|
||||
@ -52,6 +52,9 @@ QList<int> AudioDeviceInfo::supportedSampleRates() const
|
||||
supportedRates.append(sampleRate);
|
||||
}
|
||||
}
|
||||
if (!supportedRates.contains(m_deviceInfo.maximumSampleRate())) {
|
||||
supportedRates.append(m_deviceInfo.maximumSampleRate());
|
||||
}
|
||||
return supportedRates;
|
||||
}
|
||||
#else
|
||||
|
Loading…
x
Reference in New Issue
Block a user