SysTutorials

Linux Manual Pages › Section 3

afclosefile(3)

afCloseFile – close an open audio file

Synopsis

#include <audiofile.h>
int afCloseFile(AFfilehandle file);

Parameters

file is a valid file handle created by afOpenFile(3).

Description

afCloseFile closes the audio file file, updating the file if it was opened for writing.

Return Value

afCloseFile returns 0 if the file was closed properly and -1 if an error occurred while closing the file.

Errors

afCloseFile can generate these possible errors:

•

AF_BAD_FILEHANDLE

•

AF_BAD_LSEEK

•

AF_BAD_WRITE

See Also

afOpenFile(3)

Author

Michael Pruett <michael [at] 68k.org>