|
GNU Radio 3.6.5 C++ API
|
#include <wavfile_sink_impl.h>

Public Member Functions | |
| wavfile_sink_impl (const char *filename, int n_channels, unsigned int sample_rate, int bits_per_sample) | |
| ~wavfile_sink_impl () | |
| bool | open (const char *filename) |
| Opens a new file and writes a WAV header. Thread-safe. More... | |
| void | close () |
| Closes the currently active file and completes the WAV header. Thread-safe. More... | |
| void | set_sample_rate (unsigned int sample_rate) |
| Set the sample rate. This will not affect the WAV file currently opened. Any following open() calls will use this new sample rate. More... | |
| void | set_bits_per_sample (int bits_per_sample) |
| Set bits per sample. This will not affect the WAV file currently opened (see set_sample_rate()). If the value is neither 8 nor 16, the call is ignored and the current value is kept. More... | |
| int | bits_per_sample () |
| unsigned int | sample_rate () |
| 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 More... | |
Additional Inherited Members | |
Public Types inherited from gr::blocks::wavfile_sink | |
| typedef boost::shared_ptr < wavfile_sink > | sptr |
Static Public Member Functions inherited from gr::blocks::wavfile_sink | |
| static sptr | make (const char *filename, int n_channels, unsigned int sample_rate, int bits_per_sample=16) |
Protected Types inherited from gr_basic_block | |
| enum | vcolor { WHITE, GREY, BLACK } |
Protected Member Functions inherited from gr_sync_block | |
| gr_sync_block (void) | |
| gr_sync_block (const std::string &name, gr_io_signature_sptr input_signature, gr_io_signature_sptr output_signature) | |
Protected Attributes inherited from gr_block | |
| std::vector< long > | d_max_output_buffer |
| std::vector< long > | d_min_output_buffer |
| gruel::mutex | d_setlock |
| gr_logger_ptr | d_logger |
| gr_logger_ptr | d_debug_logger |
| gr::blocks::wavfile_sink_impl::wavfile_sink_impl | ( | const char * | filename, |
| int | n_channels, | ||
| unsigned int | sample_rate, | ||
| int | bits_per_sample | ||
| ) |
| gr::blocks::wavfile_sink_impl::~wavfile_sink_impl | ( | ) |
| int gr::blocks::wavfile_sink_impl::bits_per_sample | ( | ) |
|
virtual |
Closes the currently active file and completes the WAV header. Thread-safe.
Implements gr::blocks::wavfile_sink.
|
virtual |
Opens a new file and writes a WAV header. Thread-safe.
Implements gr::blocks::wavfile_sink.
| unsigned int gr::blocks::wavfile_sink_impl::sample_rate | ( | ) |
|
virtual |
Set bits per sample. This will not affect the WAV file currently opened (see set_sample_rate()). If the value is neither 8 nor 16, the call is ignored and the current value is kept.
Implements gr::blocks::wavfile_sink.
|
virtual |
Set the sample rate. This will not affect the WAV file currently opened. Any following open() calls will use this new sample rate.
Implements gr::blocks::wavfile_sink.
|
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.