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
);