GNU Radio 3.5.3.2 C++ API
gr_throttle Class Reference

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>

Inheritance diagram for gr_throttle:

List of all members.

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.

Detailed Description

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.


Member Typedef Documentation


Member Function Documentation

virtual void gr_throttle::set_sample_rate ( double  rate) [pure virtual]

Sets the sample rate in samples per second.


The documentation for this class was generated from the following file: