aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNao Pross <np@0hm.ch>2021-12-14 14:46:32 +0100
committerNao Pross <np@0hm.ch>2021-12-14 14:46:32 +0100
commit34c90dbede5d2035749ef5ea7159d134709d310a (patch)
tree56c0d07fc408d651b727e2f74f7b7656c2191d6b /src
parentUpdate QAM flowgraph and show crosscorrelation (diff)
downloadFading-34c90dbede5d2035749ef5ea7159d134709d310a.tar.gz
Fading-34c90dbede5d2035749ef5ea7159d134709d310a.zip
Avoid sending EVERY sample over UDP
Diffstat (limited to 'src')
-rw-r--r--src/gr-fadingui/python/netsink.py4
1 files changed, 2 insertions, 2 deletions
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