AFclose


Routine

void AFclose (AFILE *AFp)

Purpose

Close an audio file

Description

This routine closes an audio file opened with AFopnRead or AFopnWrite. 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 / Revision 1.45 2003/11/03

See Also

AFopnRead, AFopnWrite


Main Index libtsp