diff options
author | Johnathan Corgan <johnathan@corganlabs.com> | 2014-08-26 10:52:18 -0700 |
---|---|---|
committer | Johnathan Corgan <johnathan@corganlabs.com> | 2014-08-26 10:52:18 -0700 |
commit | 99e0c0adc2c52d4faef2c26bb3e56c36e347c84a (patch) | |
tree | bf27a3c5c127bcd9a58d06eb2ed16375422b06d6 /gr-blocks | |
parent | 36e0bf45c312400b13ebd32640ff34bfebc92d51 (diff) | |
parent | 527be63d2c1aaba009588a4ec32ec888513ae6a5 (diff) |
Merge branch 'maint'
Diffstat (limited to 'gr-blocks')
-rw-r--r-- | gr-blocks/include/gnuradio/blocks/wavfile.h | 21 | ||||
-rw-r--r-- | gr-blocks/lib/stream_to_tagged_stream_impl.cc | 10 | ||||
-rw-r--r-- | gr-blocks/lib/wavfile.cc | 1 | ||||
-rwxr-xr-x | gr-blocks/python/blocks/qa_tag_gate.py | 10 |
4 files changed, 23 insertions, 19 deletions
diff --git a/gr-blocks/include/gnuradio/blocks/wavfile.h b/gr-blocks/include/gnuradio/blocks/wavfile.h index 9440105e76..bc1175a6cb 100644 --- a/gr-blocks/include/gnuradio/blocks/wavfile.h +++ b/gr-blocks/include/gnuradio/blocks/wavfile.h @@ -23,6 +23,9 @@ // This file stores all the RIFF file type knowledge for the wavfile_* // gnuradio/blocks. +#ifndef _GR_WAVFILE_H_ +#define _GR_WAVFILE_H_ + #include <gnuradio/blocks/api.h> #include <cstdio> @@ -44,8 +47,7 @@ namespace gr { * \return True on a successful read, false if the file could not be read or is * not a valid WAV file. */ - bool - wavheader_parse(FILE *fp, + BLOCKS_API bool wavheader_parse(FILE *fp, unsigned int &sample_rate, int &nchans, int &bytes_per_sample, @@ -58,8 +60,7 @@ namespace gr { * \details * Takes care of endianness. */ - short int - wav_read_sample(FILE *fp, int bytes_per_sample); + BLOCKS_API short int wav_read_sample(FILE *fp, int bytes_per_sample); /*! @@ -69,8 +70,7 @@ namespace gr { * not known a-priori (file and chunk lengths). Use * gri_wavheader_complete() to fill these in. */ - bool - wavheader_write(FILE *fp, + BLOCKS_API bool wavheader_write(FILE *fp, unsigned int sample_rate, int nchans, int bytes_per_sample); @@ -81,8 +81,7 @@ namespace gr { * \details * Takes care of endianness. */ - void - wav_write_sample(FILE *fp, short int sample, int bytes_per_sample); + BLOCKS_API void wav_write_sample(FILE *fp, short int sample, int bytes_per_sample); /*! @@ -97,8 +96,10 @@ namespace gr { * \param[in] fp File pointer to an open WAV file with a blank header * \param[in] byte_count Length of all samples written to the file in bytes. */ - bool - wavheader_complete(FILE *fp, unsigned int byte_count); + BLOCKS_API bool wavheader_complete(FILE *fp, unsigned int byte_count); } /* namespace blocks */ } /* namespace gr */ + +#endif /* _GR_WAVFILE_H_ */ + diff --git a/gr-blocks/lib/stream_to_tagged_stream_impl.cc b/gr-blocks/lib/stream_to_tagged_stream_impl.cc index 82344447cc..341961bde2 100644 --- a/gr-blocks/lib/stream_to_tagged_stream_impl.cc +++ b/gr-blocks/lib/stream_to_tagged_stream_impl.cc @@ -1,19 +1,21 @@ /* -*- c++ -*- */ /* - * Copyright 2013 <+YOU OR YOUR COMPANY+>. + * Copyright 2013 Free Software Foundation, Inc. * - * This is free software; you can redistribute it and/or modify + * This file is part of GNU Radio + * + * GNU Radio is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3, or (at your option) * any later version. * - * This software is distributed in the hope that it will be useful, + * GNU Radio is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License - * along with this software; see the file COPYING. If not, write to + * along with GNU Radio; see the file COPYING. If not, write to * the Free Software Foundation, Inc., 51 Franklin Street, * Boston, MA 02110-1301, USA. */ diff --git a/gr-blocks/lib/wavfile.cc b/gr-blocks/lib/wavfile.cc index 865082e05f..b0d2e7ff96 100644 --- a/gr-blocks/lib/wavfile.cc +++ b/gr-blocks/lib/wavfile.cc @@ -31,7 +31,6 @@ namespace gr { namespace blocks { - #define VALID_COMPRESSION_TYPE 0x0001 // Basically, this is the opposite of htonx() and ntohx() diff --git a/gr-blocks/python/blocks/qa_tag_gate.py b/gr-blocks/python/blocks/qa_tag_gate.py index 4d22c73adb..acb2c68a82 100755 --- a/gr-blocks/python/blocks/qa_tag_gate.py +++ b/gr-blocks/python/blocks/qa_tag_gate.py @@ -1,19 +1,21 @@ #!/usr/bin/env python # -# Copyright 2013 <+YOU OR YOUR COMPANY+>. +# Copyright 2013 Free Software Foundation, Inc. # -# This is free software; you can redistribute it and/or modify +# This file is part of GNU Radio +# +# GNU Radio is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3, or (at your option) # any later version. # -# This software is distributed in the hope that it will be useful, +# GNU Radio is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License -# along with this software; see the file COPYING. If not, write to +# along with GNU Radio; see the file COPYING. If not, write to # the Free Software Foundation, Inc., 51 Franklin Street, # Boston, MA 02110-1301, USA. # |