AFINITFILEFORMAT(3) | AFINITFILEFORMAT(3) |
afInitFileFormat - initialize file format of an audio file setup
#include <audiofile.h>
void afInitFileFormat(AFfilesetup setup, int fileFormat);
setup is a valid file setup created by afNewFileSetup(3).
fileFormat is an integer constant specifying a file format.
Given an AFfilesetup structure created with afNewFileSetup(3), afInitFileFormat initializes the file format to that specified by fileFormat.
The following file formats are currently supported:
AF_FILE_RAWDATA
AF_FILE_AIFF
AF_FILE_AIFFC
AF_FILE_NEXTSND
AF_FILE_WAVE
AF_FILE_BICSF
AF_FILE_AVR
AF_FILE_IFF_8SVX
AF_FILE_SAMPLEVISION
AF_FILE_VOC
AF_FILE_NIST_SPHERE
AF_FILE_CAF
afInitFileFormat can produce the following errors:
AF_BAD_FILESETUP
setup represents an invalid file setup.
AF_BAD_FILEFMT
fileFormat represents an unknown file format.
AF_BAD_NOT_IMPLEMENTED
fileFormat represents a file format which is not currently implemented.
Michael Pruett <michael@68k.org>
03/06/2013 | Audio File Library 0.3.6 |