Removed WIP tests that are no longer needed
This commit is contained in:
parent
802f3c0051
commit
6ddd8e844e
@ -1,5 +1,3 @@
|
||||
from pprint import pprint
|
||||
|
||||
"""
|
||||
Not all output rates are going to be supported by the system sound card.
|
||||
Choosing from a limited subset of preferred output rates is how we guarantee
|
||||
@ -64,56 +62,3 @@ def supported_sample_rates(supported_input_rates):
|
||||
|
||||
def preferred_sample_rates(supported_input_rates):
|
||||
return sorted(flatten_dict(supported_sample_rates(supported_input_rates)), key=score)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
nesdr_sample_rates = [
|
||||
250000,
|
||||
1024000,
|
||||
1536000,
|
||||
1792000,
|
||||
1920000,
|
||||
2048000,
|
||||
2160000,
|
||||
2560000,
|
||||
2880000,
|
||||
3200000
|
||||
]
|
||||
|
||||
sdrplay_sample_rates = [
|
||||
62500,
|
||||
96000,
|
||||
125000,
|
||||
192000,
|
||||
250000,
|
||||
384000,
|
||||
500000,
|
||||
768000,
|
||||
1000000,
|
||||
2000000,
|
||||
2048000,
|
||||
3000000,
|
||||
4000000,
|
||||
5000000,
|
||||
6000000,
|
||||
7000000,
|
||||
8000000,
|
||||
9000000,
|
||||
10000000
|
||||
]
|
||||
|
||||
print('nesdr')
|
||||
pprint(preferred_sample_rates(nesdr_sample_rates))
|
||||
#for rate in nesdr_sample_rates:
|
||||
# print(rate, ' \t', get_pairs(rate))
|
||||
#supported = flatten([get_pairs(rate) for rate in nesdr_sample_rates])
|
||||
#supported.sort(key=score)
|
||||
#pprint(supported)
|
||||
|
||||
print('sdrplay')
|
||||
pprint(preferred_sample_rates(sdrplay_sample_rates))
|
||||
#for rate in sdrplay_sample_rates:
|
||||
# print(rate, ' \t', get_pairs(rate))
|
||||
#supported = flatten([get_pairs(rate) for rate in sdrplay_sample_rates])
|
||||
#supported.sort(key=score)
|
||||
#pprint(supported)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user