12 #ifndef INCLUDED_GR_THROTTLE_H
13 #define INCLUDED_GR_THROTTLE_H
45 typedef std::shared_ptr<throttle>
sptr;
64 double samples_per_sec,
65 bool ignore_tags =
true,
66 unsigned int maximum_items_per_chunk = 0);
throttle flow of samples such that the average rate does not exceed samples_per_sec.
Definition: throttle.h:43
virtual void set_maximum_items_per_chunk(unsigned int maximum_items_per_chunk)=0
Set the maximum items that will be produced per waiting period.
virtual double sample_rate() const =0
Get the sample rate in samples per second.
virtual void set_sample_rate(double rate)=0
Sets the sample rate in samples per second.
virtual unsigned int maximum_items_per_chunk() const =0
Get the maximum items that will be produced per waiting period.
std::shared_ptr< throttle > sptr
Definition: throttle.h:45
static sptr make(size_t itemsize, double samples_per_sec, bool ignore_tags=true, unsigned int maximum_items_per_chunk=0)
synchronous 1:1 input to output with history
Definition: sync_block.h:26
#define BLOCKS_API
Definition: gr-blocks/include/gnuradio/blocks/api.h:18
GR_RUNTIME_API size_t itemsize(types::vector_type type)
GNU Radio logging wrapper.
Definition: basic_block.h:29