AFREADFRAMES(3) - Linux man page online | Library functions
Read sample frames from a track in an audio file.
Audio File Library 0.3.6 03/06/2013 AFREADFRAMES(3)
NAMEafReadFrames - read sample frames from a track in an audio file
SYNOPSIS#include <audiofile.h> AFframecount afReadFrames(AFfilehandle file, int track, void *data, int count);
DESCRIPTIONafReadFrames attempts to read up to count frames of audio data from the audio file handle file into the buffer at data.
PARAMETERSfile 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.
RETURN VALUEafReadFrames returns the number of frames successfully read from file.
ERRORSafReadFrames can produce these errors: AF_BAD_FILEHANDLE the file handle was invalid AF_BAD_TRACKID the track parameter is not AF_DEFAULT_TRACK AF_BAD_READ reading audio data from the file failed AF_BAD_LSEEK seeking within the file failed
AUTHORMichael Pruett <@68k.org>
|This manual||Reference||Other manuals|
|afReadFrames(3)||referred by||afOpenFile(3) | afWriteFrames(3)|
|refer to||afOpenFile(3) | afWriteFrames(3)|