GNU Radio 3.6.5 C++ API

gr_throttle Class Reference

throttle flow of samples such that the average rate does not exceed samples_per_sec. More...

#include <gr_throttle.h>

Inheritance diagram for gr_throttle:
gr_sync_block gr_block gr_basic_block gr_msg_accepter gruel::msg_accepter

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: