summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuval Adam <_@yuv.al>2018-03-26 17:59:19 +0200
committerYuval Adam <_@yuv.al>2018-03-26 17:59:19 +0200
commit113afe8e1c7bd50cef9366bbe249bbe2ea419ae1 (patch)
treeaf492c0232953f1c8fe901222e6ee2d66dfbb0f5
parentbedf42b77ad4887ede503300b77a6612d243377c (diff)
Print sample lenghts
-rw-r--r--fm.py2
1 files changed, 2 insertions, 0 deletions
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())
+