GNU Radio 3.6.5 C++ API

gr::blocks::wavfile_source Class Reference

Read stream from a Microsoft PCM (.wav) file, output floats. More...

#include <wavfile_source.h>

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

List of all members.

Public Types

typedef boost::shared_ptr
< wavfile_source
sptr

Public Member Functions

virtual unsigned int sample_rate () const =0
 Read the sample rate as specified in the wav file header.
virtual int bits_per_sample () const =0
 Return the number of bits per sample as specified in the wav file header. Only 8 or 16 bit are supported here.
virtual int channels () const =0
 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.

Static Public Member Functions

static sptr make (const char *filename, bool repeat=false)

Detailed Description

Read stream from a Microsoft PCM (.wav) file, output floats.

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


Member Typedef Documentation


Member Function Documentation

virtual int gr::blocks::wavfile_source::bits_per_sample ( ) const [pure virtual]

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

Implemented in gr::blocks::wavfile_source_impl.

virtual int gr::blocks::wavfile_source::channels ( ) const [pure 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.

Implemented in gr::blocks::wavfile_source_impl.

static sptr gr::blocks::wavfile_source::make ( const char *  filename,
bool  repeat = false 
) [static]
virtual unsigned int gr::blocks::wavfile_source::sample_rate ( ) const [pure virtual]

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

Implemented in gr::blocks::wavfile_source_impl.


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