GNU Radio 3.7.1 C++ API
|
Read stream from a Microsoft PCM (.wav) file, output floats. More...
#include <wavfile_source.h>
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) |
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.
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.
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.
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.