23 #ifndef INCLUDED_GR_WAVFILE_SINK_H
24 #define INCLUDED_GR_WAVFILE_SINK_H
29 #include <boost/thread.hpp>
43 unsigned int sample_rate,
44 int bits_per_sample = 16);
59 unsigned int sample_rate,
64 unsigned int sample_rate,
67 unsigned d_sample_rate;
69 unsigned d_sample_count;
70 int d_bytes_per_sample;
71 int d_bytes_per_sample_new;
74 int d_normalize_shift;
86 short convert_to_short(
float sample);
109 bool open(
const char* filename);
122 void set_sample_rate(
unsigned int sample_rate);
129 void set_bits_per_sample(
int bits_per_sample);
132 int work(
int noutput_items,
133 gr_vector_const_void_star &input_items,
134 gr_vector_void_star &output_items);
boost::mutex mutex
Definition: thread.h:44
Definition: gr_sync_block.h:27
shared_ptr documentation stub
Definition: shared_ptr_docstub.h:15
#define GR_CORE_API
Definition: gr_core_api.h:30
Write stream to a Microsoft PCM (.wav) file.
Definition: gr_wavfile_sink.h:54
GR_CORE_API gr_wavfile_sink_sptr gr_make_wavfile_sink(const char *filename, int n_channels, unsigned int sample_rate, int bits_per_sample=16)
virtual 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 ...