Remove libasound dependency. We're using OSS.
[aftubes.git] / wavefile.h
blob84d0ca5afc4bef8db8164064ebd7f7bb123564a0
1 #ifndef WAVEFILE_H
2 #define WAVEFILE_H
4 #include "aformat.h"
5 #include "stdio.h"
6 #include "sys/types.h"
8 struct wavefile
10 char *filename;
11 FILE *f;
12 struct aformat format;
13 long length; // length, in samples
14 off_t pcm_start; // file offset to start of actual audio data
17 int wavefile_open(struct wavefile *wav, const char *filename);
18 int wavefile_read_at(struct wavefile *wav, off_t sample_start, void *buf, size_t n_samples);
20 #endif