GNU Radio 3.5.3.2 C++ API
|
throttle flow of samples such that the average rate does not exceed samples_per_sec.input: one stream of itemsize; output: one stream of itemsize More...
#include <gr_throttle.h>
Public Types | |
typedef boost::shared_ptr < gr_throttle > | sptr |
Public Member Functions | |
virtual void | set_sample_rate (double rate)=0 |
Sets the sample rate in samples per second. |
throttle flow of samples such that the average rate does not exceed samples_per_sec.
input: one stream of itemsize; output: one stream of itemsize
N.B. this should only be used in GUI apps where there is no other rate limiting block. It is not intended nor effective at precisely controlling the rate of samples. That should be controlled by a source or sink tied to sample clock. E.g., a USRP or audio card.
virtual void gr_throttle::set_sample_rate | ( | double | rate | ) | [pure virtual] |
Sets the sample rate in samples per second.