diff options
author | Marcus Müller <mmueller@gnuradio.org> | 2019-08-07 21:45:12 +0200 |
---|---|---|
committer | Marcus Müller <marcus@hostalia.de> | 2019-08-09 23:04:28 +0200 |
commit | f7bbf2c1d8d780294f3e016aff239ca35eb6516e (patch) | |
tree | e09ab6112e02b2215b2d59ac24d3d6ea2edac745 /gr-vocoder/lib/alaw_decode_bs_impl.cc | |
parent | 78431dc6941e3acc67c858277dfe4a0ed583643c (diff) |
Tree: clang-format without the include sorting
Diffstat (limited to 'gr-vocoder/lib/alaw_decode_bs_impl.cc')
-rw-r--r-- | gr-vocoder/lib/alaw_decode_bs_impl.cc | 53 |
1 files changed, 24 insertions, 29 deletions
diff --git a/gr-vocoder/lib/alaw_decode_bs_impl.cc b/gr-vocoder/lib/alaw_decode_bs_impl.cc index 2f43304578..eadc7f458a 100644 --- a/gr-vocoder/lib/alaw_decode_bs_impl.cc +++ b/gr-vocoder/lib/alaw_decode_bs_impl.cc @@ -29,44 +29,39 @@ #include <limits.h> namespace gr { - namespace vocoder { +namespace vocoder { extern "C" { #include "g7xx/g72x.h" } - alaw_decode_bs::sptr - alaw_decode_bs::make() - { - return gnuradio::get_initial_sptr - (new alaw_decode_bs_impl()); - } - - alaw_decode_bs_impl::alaw_decode_bs_impl() - : sync_block("vocoder_alaw_decode_bs", - io_signature::make(1, 1, sizeof(unsigned char)), - io_signature::make(1, 1, sizeof(short))) - { - } +alaw_decode_bs::sptr alaw_decode_bs::make() +{ + return gnuradio::get_initial_sptr(new alaw_decode_bs_impl()); +} - alaw_decode_bs_impl::~alaw_decode_bs_impl() - { - } +alaw_decode_bs_impl::alaw_decode_bs_impl() + : sync_block("vocoder_alaw_decode_bs", + io_signature::make(1, 1, sizeof(unsigned char)), + io_signature::make(1, 1, sizeof(short))) +{ +} - int - alaw_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]; +alaw_decode_bs_impl::~alaw_decode_bs_impl() {} - for(int i = 0; i < noutput_items; i++) { - out[i] = alaw2linear(in[i]); - } +int alaw_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]; - return noutput_items; + for (int i = 0; i < noutput_items; i++) { + out[i] = alaw2linear(in[i]); } - } /* namespace vocoder */ + return noutput_items; +} + +} /* namespace vocoder */ } /* namespace gr */ |