Write stream to a Microsoft PCM (.wav) file.
Values must be floats within [-1;1]. Check gr_make_wavfile_sink() for extra info.
Constructor Specific Documentation:
Parameters: |
|
---|
Closes the currently active file and completes the WAV header. Thread-safe.
declare_sample_delay(wavfile_sink_sptr self, unsigned int delay)
Opens a new file and writes a WAV header. Thread-safe.
pc_input_buffers_full_avg(wavfile_sink_sptr self) -> pmt_vector_float
pc_output_buffers_full_avg(wavfile_sink_sptr self) -> pmt_vector_float
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.
Set the sample rate. This will not affect the WAV file currently opened. Any following open() calls will use this new sample rate.
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.
Constructor Specific Documentation:
Parameters: |
|
---|
Return the number of bits per sample as specified in the wav file header. Only 8 or 16 bit are supported here.
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.
declare_sample_delay(wavfile_source_sptr self, unsigned int delay)
pc_input_buffers_full_avg(wavfile_source_sptr self) -> pmt_vector_float
pc_output_buffers_full_avg(wavfile_source_sptr self) -> pmt_vector_float
Read the sample rate as specified in the wav file header.