12#ifndef INCLUDED_GR_THROTTLE_H
13#define INCLUDED_GR_THROTTLE_H
45 typedef std::shared_ptr<throttle>
sptr;
throttle flow of samples such that the average rate does not exceed samples_per_sec.
Definition: throttle.h:43
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.
static sptr make(size_t itemsize, double samples_per_sec, bool ignore_tags=true)
std::shared_ptr< throttle > sptr
Definition: throttle.h:45
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