summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax <ikj1234i@yahoo.com>2017-12-22 18:29:43 -0500
committerMax <ikj1234i@yahoo.com>2017-12-22 18:29:43 -0500
commit3b26dd2fd2056ede5abd6e556e2f91ed568d0a27 (patch)
treec954026e0d38ddf84c53a8bbc54c9332d86c3215
parent5f264c68bf104f1814031b43a210351066902f8d (diff)
vocoder_impl
-rw-r--r--op25/gr-op25_repeater/lib/vocoder_impl.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/op25/gr-op25_repeater/lib/vocoder_impl.cc b/op25/gr-op25_repeater/lib/vocoder_impl.cc
index 967dde4..935c243 100644
--- a/op25/gr-op25_repeater/lib/vocoder_impl.cc
+++ b/op25/gr-op25_repeater/lib/vocoder_impl.cc
@@ -139,13 +139,14 @@ vocoder_impl::general_work_encode (int noutput_items,
const int fragments_available = output_queue.size() / FRAGMENT_SIZE;
const int nsamples_consume = std::min(ninput_items[0], std::max(0,(noutput_fragments - fragments_available) * 9 * 160));
- if (nsamples_consume > 0)
+ if (nsamples_consume > 0) {
p1voice_encode.compress_samp(in, nsamples_consume);
- // Tell runtime system how many input items we consumed on
- // each input stream.
+ // Tell runtime system how many input items we consumed on
+ // each input stream.
- consume_each (nsamples_consume);
+ consume_each (nsamples_consume);
+ }
if (opt_udp_port > 0) // in udp option, we are a gr sink only
return 0;