reactor-c 1.0
C Runtime for Lingua Franca
Loading...
Searching...
No Matches
wave_file_reader.h
Go to the documentation of this file.
1
38
39#ifndef WAVE_FILE_READER_H
40#define WAVE_FILE_READER_H
41
50typedef struct lf_waveform_t {
51 uint32_t length;
52 uint16_t num_channels;
53 int16_t* waveform;
55
70lf_waveform_t* read_wave_file(const char* path);
71
72#endif // WAVE_FILE_READER_H
lf_waveform_t * read_wave_file(const char *path)
Open a wave file, check that the format is supported, allocate memory for the sample data,...
Waveform in 16-bit linear-PCM format.
Definition wave_file_reader.h:50
uint32_t length
Definition wave_file_reader.h:51
uint16_t num_channels
Definition wave_file_reader.h:52
int16_t * waveform
Definition wave_file_reader.h:53