|
From: | Vanush Vaswani |
Subject: | Re: [Discuss-gnuradio] Question about ZeroMQ Sub source |
Date: | Sun, 31 Aug 2014 03:37:27 +1000 |
I've got a question relating to the zmq sub source.I've got a flowgraph that has rtlsdr -> pub sinkIn another graph, I decode FM radio using WBFM receive.I noticed that it sounds horrible and choppy (sped up).I looked in the code of the sub source, and saw this// Copy to output buffer and returnif (msg.size() >= d_itemsize*noutput_items){memcpy(out, (void *) msg.data(), d_itemsize*noutput_items);return noutput_items;} else{memcpy(out, (void *) msg.data(), msg.size());return msg.size() / (d_itemsize);}Does this mean that if the message size is greater then the number of items requested by scheduler * item size (e.g. complex = 8), the rest of the message is simply dropped?This is probably the reason for the choppy audio. How can a situation like this be avoided?
[Prev in Thread] | Current Thread | [Next in Thread] |