diff options
author | Tom Rondeau | 2010-12-06 20:57:40 -0500 |
---|---|---|
committer | Tom Rondeau | 2010-12-06 20:57:40 -0500 |
commit | e13783aeb84a2c3656c3344a8d52fa2c9ee38a00 (patch) | |
tree | 1c5688dc89173336020d7e8b2083a11e39c48e65 /gnuradio-core/src/lib/general/gr_skiphead.cc | |
parent | cdca1c917626f7c63f820da921a17187efc92cd5 (diff) | |
parent | 7b19372f83fede6a1d55e4b70202aa58b004e9f8 (diff) | |
download | gnuradio-e13783aeb84a2c3656c3344a8d52fa2c9ee38a00.tar.gz gnuradio-e13783aeb84a2c3656c3344a8d52fa2c9ee38a00.tar.bz2 gnuradio-e13783aeb84a2c3656c3344a8d52fa2c9ee38a00.zip |
Merge branch 'master' into next
* master:
Adding new example script for using the new PFB arbitrary resampler interface. One resampler takes user-generated taps and another resampler just takes the resampling rate. Both input and output signals are plotted.
Modifying blks2 wrapper for PFB arbitrary resampler to allow the user to just specify the requested resampling rate without providing their own filter taps.
Changing API for gr_skiphead to use uint64_t for the offset instead of size_t (still unsigned). Fixes issue #304.
Adding typedef for uint64_t and int64_t so we can use them through SWIG.
Removing warnings in portaudio source/sink.
Fixing output types from tap_type to o_type in gr_single_pole_iir.h. Doesn't make a difference in the current uses of this class, but could in the future. Thanks to Achilleas Anastasopoulos for pointing this out.
first shot at Windows-compatible LIBUSB check
Tweak LIBUSB m4 script to not check for 'usb_debug' symbol on Windows, because the symbol does not exist for that platform (only, it seems)
Removing autogenerated file.
Updated doxygen Doxyfile for newer versions.
Adding file operations result checking.
Updating audio_jack to new interface for creating a client. Fixes depricated warning.
Potential fix to MSDD warnings by setting sequence number from buffer more explicitly.
Adding a bit more checking on file operations.
Fixing copyright date.
Fixed warning re defining GNU_SOURCE. Can probably just remove it since it's defined in config, but this won't hurt anyone.
Fixing signed/unsigned warnings.
first shot at Windows-compatible LIBUSB check
Tweak LIBUSB m4 script to not check for 'usb_debug' symbol on Windows, because the symbol does not exist for that platform (only, it seems)
Conflicts:
gnuradio-core/src/lib/swig/gnuradio.i
Diffstat (limited to 'gnuradio-core/src/lib/general/gr_skiphead.cc')
-rw-r--r-- | gnuradio-core/src/lib/general/gr_skiphead.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gnuradio-core/src/lib/general/gr_skiphead.cc b/gnuradio-core/src/lib/general/gr_skiphead.cc index ea7e9405f..1670eb7cf 100644 --- a/gnuradio-core/src/lib/general/gr_skiphead.cc +++ b/gnuradio-core/src/lib/general/gr_skiphead.cc @@ -27,7 +27,7 @@ #include <gr_io_signature.h> #include <string.h> -gr_skiphead::gr_skiphead (size_t itemsize, size_t nitems_to_skip) +gr_skiphead::gr_skiphead (size_t itemsize, uint64_t nitems_to_skip) : gr_block ("skiphead", gr_make_io_signature(1, 1, itemsize), gr_make_io_signature(1, 1, itemsize)), @@ -36,7 +36,7 @@ gr_skiphead::gr_skiphead (size_t itemsize, size_t nitems_to_skip) } gr_skiphead_sptr -gr_make_skiphead (size_t itemsize, size_t nitems_to_skip) +gr_make_skiphead (size_t itemsize, uint64_t nitems_to_skip) { return gnuradio::get_initial_sptr(new gr_skiphead (itemsize, nitems_to_skip)); } @@ -55,11 +55,11 @@ gr_skiphead::general_work(int noutput_items, while (ii < ninput_items){ - long long ni_total = ii + d_nitems; // total items processed so far + uint64_t ni_total = ii + d_nitems; // total items processed so far if (ni_total < d_nitems_to_skip){ // need to skip some more int n_to_skip = (int) std::min(d_nitems_to_skip - ni_total, - (long long)(ninput_items - ii)); + (uint64_t)(ninput_items - ii)); ii += n_to_skip; } |