diff options
| author | Yuval Adam <_@yuv.al> | 2018-03-26 17:59:19 +0200 |
|---|---|---|
| committer | Yuval Adam <_@yuv.al> | 2018-03-26 17:59:19 +0200 |
| commit | 113afe8e1c7bd50cef9366bbe249bbe2ea419ae1 (patch) | |
| tree | af492c0232953f1c8fe901222e6ee2d66dfbb0f5 | |
| parent | bedf42b77ad4887ede503300b77a6612d243377c (diff) | |
Print sample lenghts
| -rw-r--r-- | fm.py | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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()) + |
