GNU Radio 3.6.5 C++ API

gr::blocks::wavfile_source_impl Class Reference

#include <wavfile_source_impl.h>

Inheritance diagram for gr::blocks::wavfile_source_impl:
gr::blocks::wavfile_source gr_sync_block gr_block gr_basic_block gr_msg_accepter gruel::msg_accepter

List of all members.

Public Member Functions

 wavfile_source_impl (const char *filename, bool repeat)
 ~wavfile_source_impl ()
unsigned int sample_rate () const
 Read the sample rate as specified in the wav file header.
int bits_per_sample () const
 Return the number of bits per sample as specified in the wav file header. Only 8 or 16 bit are supported here.
int channels () const
 Return the number of channels in the wav file as specified in the wav file header. This is also the max number of outputs you can have.
int work (int noutput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items)
 just like gr_block::general_work, only this arranges to call consume_each for you

Constructor & Destructor Documentation

gr::blocks::wavfile_source_impl::wavfile_source_impl ( const char *  filename,
bool  repeat 
)
gr::blocks::wavfile_source_impl::~wavfile_source_impl ( )

Member Function Documentation

int gr::blocks::wavfile_source_impl::bits_per_sample ( ) const [inline, virtual]

Return the number of bits per sample as specified in the wav file header. Only 8 or 16 bit are supported here.

Implements gr::blocks::wavfile_source.

int gr::blocks::wavfile_source_impl::channels ( ) const [inline, virtual]

Return the number of channels in the wav file as specified in the wav file header. This is also the max number of outputs you can have.

Implements gr::blocks::wavfile_source.

unsigned int gr::blocks::wavfile_source_impl::sample_rate ( ) const [inline, virtual]

Read the sample rate as specified in the wav file header.

Implements gr::blocks::wavfile_source.

int gr::blocks::wavfile_source_impl::work ( int  noutput_items,
gr_vector_const_void_star input_items,
gr_vector_void_star output_items 
) [virtual]

just like gr_block::general_work, only this arranges to call consume_each for you

The user must override work to define the signal processing code

Implements gr_sync_block.


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