-
Notifications
You must be signed in to change notification settings - Fork 20
Description
In preparation for a better integration with SoapySDR, I introduced a very basic validation for sample rates in the OpenWebRX web config. I based the list of options on what is implemented in the listSampleRates()
function found in the code here because that would ultimately be the base for said validation when SoapySDR devices are natively integrated (the default implementation of getSampleRateRanges()
falls back to the data available from listSampleRates()
).
I am now receiving complaints from users that various sample rates that they used before cannot be entered any more. The following rates seem to be in use, but are invalid according to the code here:
- 5.7MS/s
- 2.56MS/s
- 2.4MS/s
- probably more, this is just the ones i know of right now.
It is my understanding that SDRPlay devices have (multiple?) ranges of sample rates they can operate on. The existing listSampleRates()
API cannot really properly model these ranges, so it is understandable that it cannot really present all valid options. There is however getSampleRateRanges()
, which, according to my understanding, follows a different data model that allows both discrete entries as well as ranges. It would be really helpful if this method was implemented in a way that covers all valid user input in the future.