table of contents
AFINITFILEFORMAT(3) | AFINITFILEFORMAT(3) |
NAME¶
afInitFileFormat - initialize file format of an audio file setup
SYNOPSIS¶
#include <audiofile.h>
void afInitFileFormat(AFfilesetup setup, int fileFormat);
PARAMETERS¶
setup is a valid file setup created by afNewFileSetup(3).
fileFormat is an integer constant specifying a file format.
DESCRIPTION¶
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
ERRORS¶
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.
SEE ALSO¶
AUTHOR¶
Michael Pruett <michael@68k.org>
03/06/2013 | Audio File Library 0.3.6 |