From 34c90dbede5d2035749ef5ea7159d134709d310a Mon Sep 17 00:00:00 2001 From: Nao Pross Date: Tue, 14 Dec 2021 14:46:32 +0100 Subject: Avoid sending EVERY sample over UDP --- src/gr-fadingui/python/netsink.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/gr-fadingui/python/netsink.py b/src/gr-fadingui/python/netsink.py index 487ef45..06e376c 100644 --- a/src/gr-fadingui/python/netsink.py +++ b/src/gr-fadingui/python/netsink.py @@ -61,8 +61,8 @@ class netsink(gr.sync_block): return bytes(values, "ascii") def work(self, input_items, output_items): - # FIXME: it is probably better NOT to send *every* sample - inp = input_items[0] + # send only every k-th sample + inp = input_items[0][::3] inp_len = len(inp) blocksize = 1024 -- cgit v1.2.1