afCloseFile(3)

afCloseFile3

Close an open audio file

Usage

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

Parameters

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

Overview

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

Releases

Unchanged in 7 releases since Debian 8 (Jessie).

  1. 8–Arch

Author

Michael Pruett <[email protected]>

From audiofile 0.3.6-12 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.