STATUS: work in progress WAV file input-output for (EEG)-data. More...
#include <stdint.h>#include <stdio.h>
Go to the source code of this file.
Data Structures | |
| struct | WavFile |
Functions | |
| void | wavfile_free (WavFile *w) |
| free WavFile struct and data. | |
| void | wavfile_print (FILE *out, WavFile *w) |
| list content of WavFile struct. | |
| WavFile * | wavfile_read (FILE *f) |
| read WAV-File. | |
| int | wavfile_write (WavFile *w, const char *fname) |
| write WAV-File. | |
STATUS: work in progress WAV file input-output for (EEG)-data.
The WAV-file format allows multi-channel output. Writing the EEG-data to WAV is a convenient way for visualizing the data in an audio-visualizer software (e.g. Audacity).
For writing the WAV file, some parameters need to be passed to the WavFile struct:
Definition in file io_wav.h.
| void wavfile_free | ( | WavFile * | w | ) |
| void wavfile_print | ( | FILE * | out, | |
| WavFile * | w | |||
| ) |
| WavFile* wavfile_read | ( | FILE * | f | ) |
read WAV-File.
see https://ccrma.stanford.edu/courses/422/projects/WaveFormat/ for details on the wav-file format
| f | a FILE pointer |
| int wavfile_write | ( | WavFile * | w, | |
| const char * | fname | |||
| ) |
write WAV-File.
see https://ccrma.stanford.edu/courses/422/projects/WaveFormat/ for details on the wav-file format
| w | the wavfile | |
| fname | the name of the output file |
1.7.0