| 1 |
afInitFileFormat(3) |
| 2 |
=================== |
| 3 |
|
| 4 |
NAME |
| 5 |
---- |
| 6 |
afInitFileFormat - initialize file format of an audio file setup |
| 7 |
|
| 8 |
SYNOPSIS |
| 9 |
-------- |
| 10 |
#include <audiofile.h> |
| 11 |
|
| 12 |
void afInitFileFormat(AFfilesetup setup, int fileFormat); |
| 13 |
|
| 14 |
PARAMETERS |
| 15 |
---------- |
| 16 |
`setup` is a valid file setup created by linkaf:afNewFileSetup[3]. |
| 17 |
|
| 18 |
`fileFormat` is an integer constant specifying a file format. |
| 19 |
|
| 20 |
DESCRIPTION |
| 21 |
----------- |
| 22 |
Given an `AFfilesetup` structure created with linkaf:afNewFileSetup[3], |
| 23 |
`afInitFileFormat` initializes the file format to that specified by |
| 24 |
`fileFormat`. |
| 25 |
|
| 26 |
The following file formats are currently supported: |
| 27 |
|
| 28 |
`AF_FILE_RAWDATA`:: raw audio data |
| 29 |
`AF_FILE_AIFF`:: Audio Interchange File Format |
| 30 |
`AF_FILE_AIFFC`:: Audio Interchange File Format AIFF-C |
| 31 |
`AF_FILE_NEXTSND`:: NeXT .snd/Sun .au |
| 32 |
`AF_FILE_WAVE`:: Microsoft RIFF WAVE |
| 33 |
`AF_FILE_BICSF`:: Berkeley/IRCAM/CARL Sound File |
| 34 |
`AF_FILE_AVR`:: Audio Visual Research |
| 35 |
`AF_FILE_IFF_8SVX`:: Amiga IFF/8SVX |
| 36 |
`AF_FILE_SAMPLEVISION`:: Sample Vision |
| 37 |
`AF_FILE_VOC`:: Creative Voice File |
| 38 |
`AF_FILE_NIST_SPHERE`:: NIST SPHERE |
| 39 |
`AF_FILE_CAF`:: Core Audio Format |
| 40 |
|
| 41 |
ERRORS |
| 42 |
------ |
| 43 |
`afInitFileFormat` can produce the following errors: |
| 44 |
|
| 45 |
`AF_BAD_FILESETUP`:: `setup` represents an invalid file setup. |
| 46 |
`AF_BAD_FILEFMT`:: `fileFormat` represents an unknown file format. |
| 47 |
`AF_BAD_NOT_IMPLEMENTED`:: `fileFormat` represents a file format which |
| 48 |
is not currently implemented. |
| 49 |
|
| 50 |
SEE ALSO |
| 51 |
-------- |
| 52 |
linkaf:afNewFileSetup[3] |
| 53 |
|
| 54 |
AUTHOR |
| 55 |
------ |
| 56 |
Michael Pruett <[email protected]> |