1AFWRITEFRAMES(3)                                              AFWRITEFRAMES(3)
2
3
4

NAME

6       afWriteFrames - write sample frames to a track in an audio file
7

SYNOPSIS

9       #include <audiofile.h>
10
11       AFframecount afWriteFrames(AFfilehandle file, int track, const void *data,
12           AFframecount count);
13

DESCRIPTION

15       afWriteFrames attempts to write up to count frames of audio data from
16       the buffer data to the audio file handle file.
17

PARAMETERS

19       file is a valid file handle returned by afOpenFile(3).
20
21       track is always AF_DEFAULT_TRACK for all currently supported file
22       formats.
23
24       data is a buffer of sample frames to be written to the file.
25
26       count is the number of sample frames to be written.
27

RETURN VALUE

29       afWriteFrames returns the number of sample frames successfully written
30       to file.
31

ERRORS

33       afWriteFrames can produce these errors:
34
35       AF_BAD_FILEHANDLE
36           the file handle was invalid
37
38       AF_BAD_TRACKID
39           the track is not AF_DEFAULT_TRACK
40
41       AF_BAD_WRITE
42           writing audio data to the file failed
43
44       AF_BAD_LSEEK
45           seeking within the file failed
46

SEE ALSO

48       afReadFrames(3)
49

AUTHOR

51       Michael Pruett <michael@68k.org>
52
53
54
55Audio File Library 0.3.6          03/06/2013                  AFWRITEFRAMES(3)
Impressum