AFWRITEFRAMES(3) - Linux man page online | Library functions
Write sample frames to a track in an audio file.
Audio File Library 0.3.6 03/06/2013 AFWRITEFRAMES(3)
NAMEafWriteFrames - write sample frames to a track in an audio file
SYNOPSIS#include <audiofile.h> AFframecount afWriteFrames(AFfilehandle file, int track, const void *data, AFframecount count);
DESCRIPTIONafWriteFrames attempts to write up to count frames of audio data from the buffer data to the audio file handle file.
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 sample frames to be written to the file. count is the number of sample frames to be written.
RETURN VALUEafWriteFrames returns the number of sample frames successfully written to file.
ERRORSafWriteFrames can produce these errors: AF_BAD_FILEHANDLE the file handle was invalid AF_BAD_TRACKID the track is not AF_DEFAULT_TRACK AF_BAD_WRITE writing audio data to the file failed AF_BAD_LSEEK seeking within the file failed
AUTHORMichael Pruett <@68k.org>
|This manual||Reference||Other manuals|
|afWriteFrames(3)||referred by||afOpenFile(3) | afReadFrames(3)|
|refer to||afOpenFile(3) | afReadFrames(3)|