11#ifndef INCLUDED_GR_WAVFILE_SINK_H
12#define INCLUDED_GR_WAVFILE_SINK_H
33 typedef std::shared_ptr<wavfile_sink>
sptr;
53 virtual bool open(
const char* filename) = 0;
Write stream to a Microsoft PCM (.wav) file.
Definition: wavfile_sink.h:30
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...
std::shared_ptr< wavfile_sink > sptr
Definition: wavfile_sink.h:33
virtual void set_append(bool append)=0
Enable appending to an existing file instead of creating it. This will not affect the WAV file curren...
static sptr make(const char *filename, int n_channels, unsigned int sample_rate, wavfile_format_t format, wavfile_subformat_t subformat, bool append=false)
synchronous 1:1 input to output with history
Definition: sync_block.h:26
#define BLOCKS_API
Definition: gr-blocks/include/gnuradio/blocks/api.h:18
wavfile_subformat_t
Definition: wavfile.h:51
wavfile_format_t
Definition: wavfile.h:44
GNU Radio logging wrapper.
Definition: basic_block.h:29