26 #ifndef _GR_WAVFILE_H_
27 #define _GR_WAVFILE_H_
51 unsigned int &sample_rate,
53 int &bytes_per_sample,
54 int &first_sample_pos,
55 unsigned int &samples_per_chan);
74 unsigned int sample_rate,
76 int bytes_per_sample);
BLOCKS_API bool wavheader_write(FILE *fp, unsigned int sample_rate, int nchans, int bytes_per_sample)
Write a valid RIFF file header.
BLOCKS_API void wav_write_sample(FILE *fp, short int sample, int bytes_per_sample)
Write one sample to an open WAV file at the current position.
BLOCKS_API short int wav_read_sample(FILE *fp, int bytes_per_sample)
Read one sample from an open WAV file at the current position.
BLOCKS_API bool wavheader_parse(FILE *fp, unsigned int &sample_rate, int &nchans, int &bytes_per_sample, int &first_sample_pos, unsigned int &samples_per_chan)
Read signal information from a given WAV file.
BLOCKS_API bool wavheader_complete(FILE *fp, unsigned int byte_count)
Complete a WAV header.
Include this header to use the message passing features.
Definition: logger.h:131
#define BLOCKS_API
Definition: gr-blocks/include/gnuradio/blocks/api.h:30