GNU Radio's RTP Package
gr::rtp::source< T > Class Template Referenceabstract

Read stream from an RTP PCM stream, output gr_complex or interleaved shorts. More...

#include <source.h>

Inheritance diagram for gr::rtp::source< T >:
gr::rtp::source_impl< T >

Public Types

typedef std::shared_ptr< source< T > > sptr

Public Member Functions

virtual int get_bits_per_sample () const =0
 Return the number of bits per sample. the RTP stream.
virtual int get_channels () const =0
 Return the number of input channels.
virtual void set_ssrc (unsigned int ssrc)=0
virtual unsigned int get_ssrc () const =0

Static Public Member Functions

static sptr make (const std::string &mcast_address, unsigned int ssrc, int in_channels=1, int out_channels=1, bool quiet=false)

Detailed Description

template<class T>
class gr::rtp::source< T >

Read stream from an RTP PCM stream, output gr_complex or interleaved shorts.

Unless otherwise called, values are within [-1;1]. Check gr_make_rtp_source() for extra info.

Member Typedef Documentation

◆ sptr

template<class T>
typedef std::shared_ptr<source<T> > gr::rtp::source< T >::sptr

Member Function Documentation

◆ get_bits_per_sample()

template<class T>
virtual int gr::rtp::source< T >::get_bits_per_sample ( ) const
pure virtual

Return the number of bits per sample. the RTP stream.

Implemented in gr::rtp::source_impl< T >.

◆ get_channels()

template<class T>
virtual int gr::rtp::source< T >::get_channels ( ) const
pure virtual

Return the number of input channels.

Implemented in gr::rtp::source_impl< T >.

◆ get_ssrc()

template<class T>
virtual unsigned int gr::rtp::source< T >::get_ssrc ( ) const
pure virtual

Get SSRC

Returns
current SSRC

Implemented in gr::rtp::source_impl< T >.

◆ make()

template<class T>
sptr gr::rtp::source< T >::make ( const std::string & mcast_address,
unsigned int ssrc,
int in_channels = 1,
int out_channels = 1,
bool quiet = false )
static

◆ set_ssrc()

template<class T>
virtual void gr::rtp::source< T >::set_ssrc ( unsigned int ssrc)
pure virtual

Set SSRC

Parameters
ssrcnew SSRC

Implemented in gr::rtp::source_impl< T >.


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