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-blocks/lib/wavfile_source_impl.h | |
parent | 78431dc6941e3acc67c858277dfe4a0ed583643c (diff) |
Tree: clang-format without the include sorting
Diffstat (limited to 'gr-blocks/lib/wavfile_source_impl.h')
-rw-r--r-- | gr-blocks/lib/wavfile_source_impl.h | 60 |
1 files changed, 30 insertions, 30 deletions
diff --git a/gr-blocks/lib/wavfile_source_impl.h b/gr-blocks/lib/wavfile_source_impl.h index 3996cb0606..677c95562b 100644 --- a/gr-blocks/lib/wavfile_source_impl.h +++ b/gr-blocks/lib/wavfile_source_impl.h @@ -24,47 +24,47 @@ #define INCLUDED_GR_WAVFILE_SOURCE_IMPL_H #include <gnuradio/blocks/wavfile_source.h> -#include <cstdio> // for FILE +#include <cstdio> // for FILE namespace gr { - namespace blocks { +namespace blocks { - class wavfile_source_impl : public wavfile_source - { - private: - FILE *d_fp; - bool d_repeat; +class wavfile_source_impl : public wavfile_source +{ +private: + FILE* d_fp; + bool d_repeat; - unsigned d_sample_rate; - int d_nchans; - int d_bytes_per_sample; - int d_first_sample_pos; - unsigned d_samples_per_chan; - unsigned d_sample_idx; - int d_normalize_shift; - int d_normalize_fac; + unsigned d_sample_rate; + int d_nchans; + int d_bytes_per_sample; + int d_first_sample_pos; + unsigned d_samples_per_chan; + unsigned d_sample_idx; + int d_normalize_shift; + int d_normalize_fac; - /*! - * \brief Convert an integer sample value to a float value within [-1;1] - */ - float convert_to_float(short int sample); + /*! + * \brief Convert an integer sample value to a float value within [-1;1] + */ + float convert_to_float(short int sample); - public: - wavfile_source_impl(const char *filename, bool repeat); - ~wavfile_source_impl(); +public: + wavfile_source_impl(const char* filename, bool repeat); + ~wavfile_source_impl(); - unsigned int sample_rate() const { return d_sample_rate; }; + unsigned int sample_rate() const { return d_sample_rate; }; - int bits_per_sample() const { return d_bytes_per_sample * 8; }; + int bits_per_sample() const { return d_bytes_per_sample * 8; }; - int channels() const { return d_nchans; }; + int channels() const { return d_nchans; }; - int work(int noutput_items, - gr_vector_const_void_star &input_items, - gr_vector_void_star &output_items); - }; + int work(int noutput_items, + gr_vector_const_void_star& input_items, + gr_vector_void_star& output_items); +}; - } /* namespace blocks */ +} /* namespace blocks */ } /* namespace gr */ #endif /* INCLUDED_GR_WAVFILE_SOURCE_IMPL_H */ |