23#ifndef INCLUDED_GR_WAVFILE_SINK_H
24#define INCLUDED_GR_WAVFILE_SINK_H
44 typedef boost::shared_ptr<wavfile_sink>
sptr;
54 unsigned int sample_rate,
55 int bits_per_sample = 16);
60 virtual bool open(
const char* filename) = 0;
Write stream to a Microsoft PCM (.wav) file.
Definition wavfile_sink.h:41
boost::shared_ptr< wavfile_sink > sptr
Definition wavfile_sink.h:44
virtual bool open(const char *filename)=0
Opens a new file and writes a WAV header. Thread-safe.
virtual void close()=0
Closes the currently active file and completes the WAV header. Thread-safe.
virtual void set_bits_per_sample(int bits_per_sample)=0
Set bits per sample. This will not affect the WAV file currently opened (see set_sample_rate())....
virtual void set_sample_rate(unsigned int sample_rate)=0
Set the sample rate. This will not affect the WAV file currently opened. Any following open() calls w...
static sptr make(const char *filename, int n_channels, unsigned int sample_rate, int bits_per_sample=16)
synchronous 1:1 input to output with history
Definition sync_block.h:38
#define BLOCKS_API
Definition gr-blocks/include/gnuradio/blocks/api.h:30
GNU Radio logging wrapper for log4cpp library (C++ port of log4j)
Definition basic_block.h:46