1AFINITFILEFORMAT(3)                                        AFINITFILEFORMAT(3)
2
3
4

NAME

6       afInitFileFormat - initialize file format of an audio file setup
7

SYNOPSIS

9       #include <audiofile.h>
10
11       void afInitFileFormat(AFfilesetup setup, int fileFormat);
12

PARAMETERS

14       setup is a valid file setup created by afNewFileSetup(3).
15
16       fileFormat is an integer constant specifying a file format.
17

DESCRIPTION

19       Given an AFfilesetup structure created with afNewFileSetup(3),
20       afInitFileFormat initializes the file format to that specified by
21       fileFormat.
22
23       The following file formats are currently supported:
24
25       AF_FILE_RAWDATA
26           raw audio data
27
28       AF_FILE_AIFF
29           Audio Interchange File Format
30
31       AF_FILE_AIFFC
32           Audio Interchange File Format AIFF-C
33
34       AF_FILE_NEXTSND
35           NeXT .snd/Sun .au
36
37       AF_FILE_WAVE
38           Microsoft RIFF WAVE
39
40       AF_FILE_BICSF
41           Berkeley/IRCAM/CARL Sound File
42
43       AF_FILE_AVR
44           Audio Visual Research
45
46       AF_FILE_IFF_8SVX
47           Amiga IFF/8SVX
48
49       AF_FILE_SAMPLEVISION
50           Sample Vision
51
52       AF_FILE_VOC
53           Creative Voice File
54
55       AF_FILE_NIST_SPHERE
56           NIST SPHERE
57
58       AF_FILE_CAF
59           Core Audio Format
60

ERRORS

62       afInitFileFormat can produce the following errors:
63
64       AF_BAD_FILESETUP
65
66           setup represents an invalid file setup.
67
68       AF_BAD_FILEFMT
69
70           fileFormat represents an unknown file format.
71
72       AF_BAD_NOT_IMPLEMENTED
73
74           fileFormat represents a file format which is not currently
75           implemented.
76

SEE ALSO

78       afNewFileSetup(3)
79

AUTHOR

81       Michael Pruett <michael@68k.org>
82
83
84
85Audio File Library 0.3.6          03/06/2013               AFINITFILEFORMAT(3)
Impressum