AFclose(3tsp)

Routine
void AFclose (AFILE *AFp)

Purpose
Close an audio file

Description
This routine closes an audio file opened with AFopenRead or AFopenWrite. If the file was opened for write, the file header is updated with the number of samples in the file. For both read and write operations, the audio file parameter structure associated with the file pointer is deallocated and the file is closed.

If the file was opened for write, the number of overloads detected during write operations is reported.

Parameters
 -> AFILE *AFp
Audio file pointer for the audio file. This structure is deallocated by this routine.

Author / revision
P. Kabal Copyright (C) 1999 / Revision 1.39 1999/06/04

See Also
AFopenRead, AFopenWrite, AFsp