summaryrefslogtreecommitdiff
path: root/gr-vocoder/lib/g723_24_decode_bs_impl.cc
diff options
context:
space:
mode:
authorMarcus Müller <mmueller@gnuradio.org>2019-08-07 21:45:12 +0200
committerMarcus Müller <marcus@hostalia.de>2019-08-09 23:04:28 +0200
commitf7bbf2c1d8d780294f3e016aff239ca35eb6516e (patch)
treee09ab6112e02b2215b2d59ac24d3d6ea2edac745 /gr-vocoder/lib/g723_24_decode_bs_impl.cc
parent78431dc6941e3acc67c858277dfe4a0ed583643c (diff)
Tree: clang-format without the include sorting
Diffstat (limited to 'gr-vocoder/lib/g723_24_decode_bs_impl.cc')
-rw-r--r--gr-vocoder/lib/g723_24_decode_bs_impl.cc53
1 files changed, 24 insertions, 29 deletions
diff --git a/gr-vocoder/lib/g723_24_decode_bs_impl.cc b/gr-vocoder/lib/g723_24_decode_bs_impl.cc
index c78229c4f3..376d8241d3 100644
--- a/gr-vocoder/lib/g723_24_decode_bs_impl.cc
+++ b/gr-vocoder/lib/g723_24_decode_bs_impl.cc
@@ -29,40 +29,35 @@
#include <limits.h>
namespace gr {
- namespace vocoder {
+namespace vocoder {
- g723_24_decode_bs::sptr
- g723_24_decode_bs::make()
- {
- return gnuradio::get_initial_sptr
- (new g723_24_decode_bs_impl());
- }
+g723_24_decode_bs::sptr g723_24_decode_bs::make()
+{
+ return gnuradio::get_initial_sptr(new g723_24_decode_bs_impl());
+}
- g723_24_decode_bs_impl::g723_24_decode_bs_impl()
- : sync_block("vocoder_g723_24_decode_bs",
- io_signature::make(1, 1, sizeof(unsigned char)),
- io_signature::make(1, 1, sizeof(short)))
- {
- g72x_init_state(&d_state);
- }
+g723_24_decode_bs_impl::g723_24_decode_bs_impl()
+ : sync_block("vocoder_g723_24_decode_bs",
+ io_signature::make(1, 1, sizeof(unsigned char)),
+ io_signature::make(1, 1, sizeof(short)))
+{
+ g72x_init_state(&d_state);
+}
- g723_24_decode_bs_impl::~g723_24_decode_bs_impl()
- {
- }
+g723_24_decode_bs_impl::~g723_24_decode_bs_impl() {}
- int
- g723_24_decode_bs_impl::work(int noutput_items,
- gr_vector_const_void_star &input_items,
- gr_vector_void_star &output_items)
- {
- const unsigned char *in = (const unsigned char*)input_items[0];
- short *out = (short*)output_items[0];
+int g723_24_decode_bs_impl::work(int noutput_items,
+ gr_vector_const_void_star& input_items,
+ gr_vector_void_star& output_items)
+{
+ const unsigned char* in = (const unsigned char*)input_items[0];
+ short* out = (short*)output_items[0];
- for(int i = 0; i < noutput_items; i++)
- out[i] = g723_24_decoder(in[i], AUDIO_ENCODING_LINEAR, &d_state);
+ for (int i = 0; i < noutput_items; i++)
+ out[i] = g723_24_decoder(in[i], AUDIO_ENCODING_LINEAR, &d_state);
- return noutput_items;
- }
+ return noutput_items;
+}
- } /* namespace vocoder */
+} /* namespace vocoder */
} /* namespace gr */