| 1 |
afCloseFile(3) |
| 2 |
============== |
| 3 |
|
| 4 |
NAME |
| 5 |
---- |
| 6 |
afCloseFile - close an open audio file |
| 7 |
|
| 8 |
SYNOPSIS |
| 9 |
-------- |
| 10 |
#include <audiofile.h> |
| 11 |
|
| 12 |
int afCloseFile(AFfilehandle file); |
| 13 |
|
| 14 |
PARAMETERS |
| 15 |
---------- |
| 16 |
`file` is a valid file handle created by linkaf:afOpenFile[3]. |
| 17 |
|
| 18 |
DESCRIPTION |
| 19 |
----------- |
| 20 |
`afCloseFile` closes the audio file 'file', updating the file if it was |
| 21 |
opened for writing. |
| 22 |
|
| 23 |
RETURN VALUE |
| 24 |
------------ |
| 25 |
`afCloseFile` returns 0 if the file was closed properly and -1 if an |
| 26 |
error occurred while closing the file. |
| 27 |
|
| 28 |
ERRORS |
| 29 |
------ |
| 30 |
`afCloseFile` can generate these possible errors: |
| 31 |
|
| 32 |
* `AF_BAD_FILEHANDLE` |
| 33 |
* `AF_BAD_LSEEK` |
| 34 |
* `AF_BAD_WRITE` |
| 35 |
|
| 36 |
SEE ALSO |
| 37 |
-------- |
| 38 |
linkaf:afOpenFile[3] |
| 39 |
|
| 40 |
AUTHOR |
| 41 |
------ |
| 42 |
Michael Pruett <[email protected]> |