Section: \ \& (3)
afReadFrames - read sample frames from a track in an audio file
AFframecount afReadFrames(AFfilehandle file, int track, void *data,
afReadFrames attempts to read up to count frames of audio data from the audio file handle file into the buffer at data.
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.
count is the number of sample frames to be read.
afReadFrames returns the number of frames successfully read from file.
afReadFrames can produce these errors:
the file handle was invalid
the track parameter is not
reading audio data from the file failed
seeking within the file failed
Michael Pruett <email@example.com>