TSP (libtsp/AF) - AFclose

## AFclose

#### 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) 1998 / Revision 1.37 1998/06/13

#### See Also

AFopenRead, AFopenWrite

Main Index libtsp