From 32dbf0f325e1ecae87312e11318810c2259505d0 Mon Sep 17 00:00:00 2001 From: f4exb Date: Wed, 2 Jul 2025 14:57:39 +0200 Subject: [PATCH] Audio: added 160 kHz sample rate for Malahit DSP --- sdrbase/audio/audiodeviceinfo.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sdrbase/audio/audiodeviceinfo.cpp b/sdrbase/audio/audiodeviceinfo.cpp index 5c18ea1e2..59176952f 100644 --- a/sdrbase/audio/audiodeviceinfo.cpp +++ b/sdrbase/audio/audiodeviceinfo.cpp @@ -44,7 +44,7 @@ QList 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 sampleRates = {8000, 11025, 22050, 44100, 48000, 96000, 192000, 384000}; + QList sampleRates = {8000, 11025, 22050, 44100, 48000, 96000, 160000, 192000, 384000}; QList supportedRates; for (auto sampleRate : sampleRates) { @@ -61,7 +61,7 @@ QList AudioDeviceInfo::supportedSampleRates() const QList AudioDeviceInfo::supportedSampleRates() const { QList reportedSampleRates = m_deviceInfo.supportedSampleRates(); - reportedSampleRates.append({96000, 192000, 384000}); // Add some common rates that may not be in the list + reportedSampleRates.append({96000, 160000, 192000, 384000}); // Add some common rates that may not be in the list QList sampleRates; for (auto sampleRate : reportedSampleRates) // Retain the sample rates that are supported by the device