1AFCLOSEFILE(3) AFCLOSEFILE(3)
2
3
4
6 afCloseFile - close an open audio file
7
9 #include <audiofile.h>
10
11 int afCloseFile(AFfilehandle file);
12
14 file is a valid file handle created by afOpenFile(3).
15
17 afCloseFile closes the audio file file, updating the file if it was
18 opened for writing.
19
21 afCloseFile returns 0 if the file was closed properly and -1 if an
22 error occurred while closing the file.
23
25 afCloseFile can generate these possible errors:
26
27 · AF_BAD_FILEHANDLE
28
29 · AF_BAD_LSEEK
30
31 · AF_BAD_WRITE
32
34 afOpenFile(3)
35
37 Michael Pruett <michael@68k.org>
38
39
40
41Audio File Library 0.3.6 03/06/2013 AFCLOSEFILE(3)