afReadFrames (3) - Linux Man Pages
afReadFrames: read sample frames from a track in an audio file
afReadFrames - read sample frames from a track in an audio file
AFframecount afReadFrames(AFfilehandle file, int track, void *data, int count);
file is a valid file handle returned by afOpenFile(3).
track is always AF_DEFAULT_TRACK for all currently supported file formats.
data is a buffer of storing count frames of audio sample data.
afReadFrames can produce these errors:
- the file handle was invalid
- the track parameter is not AF_DEFAULT_TRACK
- reading audio data from the file failed
- seeking within the file failed
Michael Pruett <michael [at] 68k.org>