From 113afe8e1c7bd50cef9366bbe249bbe2ea419ae1 Mon Sep 17 00:00:00 2001 From: Yuval Adam <_@yuv.al> Date: Mon, 26 Mar 2018 17:59:19 +0200 Subject: Print sample lenghts --- fm.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'fm.py') diff --git a/fm.py b/fm.py index 2a1d8be..dc8df68 100644 --- a/fm.py +++ b/fm.py @@ -13,6 +13,7 @@ async def streaming(): async for samples in sdr.stream(): # do something with samples # ... + print(len(samples), samples[0]) # to stop streaming: await sdr.stop() @@ -22,3 +23,4 @@ async def streaming(): loop = asyncio.get_event_loop() loop.run_until_complete(streaming()) + -- cgit v1.3.1