From 77d1cfc27fb72e442b8d8e5cbe2be143723724e5 Mon Sep 17 00:00:00 2001 From: Arturs Artamonovs Date: Thu, 28 Nov 2024 11:37:28 +0000 Subject: RtlSdrIQ: read samples from device. Using command line arguments --- Radio/Utils/TestRtlSdr/main.swift | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'Radio/Utils/TestRtlSdr/main.swift') diff --git a/Radio/Utils/TestRtlSdr/main.swift b/Radio/Utils/TestRtlSdr/main.swift index 7b10d05..39e1c06 100644 --- a/Radio/Utils/TestRtlSdr/main.swift +++ b/Radio/Utils/TestRtlSdr/main.swift @@ -8,8 +8,14 @@ import Foundation import libr820 -let rtldev = R820Tuner() -let count = rtldev.getDeviceCount() -rtldev.open(index: 0) -rtldev.close() + +let count = getDeviceCount() +print("Found \(count) r820 devices") +//rtldev.open(index: 0) +//rtldev.close() +for dev_idx in 0..