Debian Codegraph @

docs/afWriteFrames.3.txt

raw
1 afWriteFrames(3)
2 ================
3
4 NAME
5 ----
6 afWriteFrames - write sample frames to a track in an audio file
7
8 SYNOPSIS
9 --------
10 #include <audiofile.h>
11
12 AFframecount afWriteFrames(AFfilehandle file, int track, const void *data,
13 AFframecount count);
14
15 DESCRIPTION
16 -----------
17 `afWriteFrames` attempts to write up to 'count' frames of audio data
18 from the buffer 'data' to the audio file handle 'file'.
19
20 PARAMETERS
21 ----------
22 'file' is a valid file handle returned by linkaf:afOpenFile[3].
23
24 'track' is always `AF_DEFAULT_TRACK` for all currently supported file formats.
25
26 'data' is a buffer of sample frames to be written to the file.
27
28 'count' is the number of sample frames to be written.
29
30 RETURN VALUE
31 ------------
32 `afWriteFrames` returns the number of sample frames successfully written
33 to 'file'.
34
35 ERRORS
36 ------
37 `afWriteFrames` can produce these errors:
38
39 `AF_BAD_FILEHANDLE`:: the file handle was invalid
40 `AF_BAD_TRACKID`:: the track is not `AF_DEFAULT_TRACK`
41 `AF_BAD_WRITE`:: writing audio data to the file failed
42 `AF_BAD_LSEEK`:: seeking within the file failed
43
44 SEE ALSO
45 --------
46 linkaf:afReadFrames[3]
47
48 AUTHOR
49 ------
50 Michael Pruett <[email protected]>