Debian Codegraph @

docs/afInitFileFormat.3

raw
1 '\" t
2 .\" Title: afInitFileFormat
3 .\" Author: [see the "AUTHOR" section]
4 .\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>
5 .\" Date: 03/06/2013
6 .\" Manual: \ \&
7 .\" Source: Audio File Library 0.3.6
8 .\" Language: English
9 .\"
10 .TH "AFINITFILEFORMAT" "3" "03/06/2013" "Audio File Library 0\&.3\&.6" "\ \&"
11 .\" -----------------------------------------------------------------
12 .\" * Define some portability stuff
13 .\" -----------------------------------------------------------------
14 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15 .\" http://bugs.debian.org/507673
16 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
17 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18 .ie \n(.g .ds Aq \(aq
19 .el .ds Aq '
20 .\" -----------------------------------------------------------------
21 .\" * set default formatting
22 .\" -----------------------------------------------------------------
23 .\" disable hyphenation
24 .nh
25 .\" disable justification (adjust text to left margin only)
26 .ad l
27 .\" -----------------------------------------------------------------
28 .\" * MAIN CONTENT STARTS HERE *
29 .\" -----------------------------------------------------------------
30 .SH "NAME"
31 afInitFileFormat \- initialize file format of an audio file setup
32 .SH "SYNOPSIS"
33 .sp
34 .nf
35 #include <audiofile\&.h>
36 .fi
37 .sp
38 .nf
39 void afInitFileFormat(AFfilesetup setup, int fileFormat);
40 .fi
41 .SH "PARAMETERS"
42 .sp
43 setup is a valid file setup created by \fBafNewFileSetup\fR(3)\&.
44 .sp
45 fileFormat is an integer constant specifying a file format\&.
46 .SH "DESCRIPTION"
47 .sp
48 Given an AFfilesetup structure created with \fBafNewFileSetup\fR(3), afInitFileFormat initializes the file format to that specified by fileFormat\&.
49 .sp
50 The following file formats are currently supported:
51 .PP
52 AF_FILE_RAWDATA
53 .RS 4
54 raw audio data
55 .RE
56 .PP
57 AF_FILE_AIFF
58 .RS 4
59 Audio Interchange File Format
60 .RE
61 .PP
62 AF_FILE_AIFFC
63 .RS 4
64 Audio Interchange File Format AIFF\-C
65 .RE
66 .PP
67 AF_FILE_NEXTSND
68 .RS 4
69 NeXT \&.snd/Sun \&.au
70 .RE
71 .PP
72 AF_FILE_WAVE
73 .RS 4
74 Microsoft RIFF WAVE
75 .RE
76 .PP
77 AF_FILE_BICSF
78 .RS 4
79 Berkeley/IRCAM/CARL Sound File
80 .RE
81 .PP
82 AF_FILE_AVR
83 .RS 4
84 Audio Visual Research
85 .RE
86 .PP
87 AF_FILE_IFF_8SVX
88 .RS 4
89 Amiga IFF/8SVX
90 .RE
91 .PP
92 AF_FILE_SAMPLEVISION
93 .RS 4
94 Sample Vision
95 .RE
96 .PP
97 AF_FILE_VOC
98 .RS 4
99 Creative Voice File
100 .RE
101 .PP
102 AF_FILE_NIST_SPHERE
103 .RS 4
104 NIST SPHERE
105 .RE
106 .PP
107 AF_FILE_CAF
108 .RS 4
109 Core Audio Format
110 .RE
111 .SH "ERRORS"
112 .sp
113 afInitFileFormat can produce the following errors:
114 .PP
115 AF_BAD_FILESETUP
116 .RS 4
117
118 setup
119 represents an invalid file setup\&.
120 .RE
121 .PP
122 AF_BAD_FILEFMT
123 .RS 4
124
125 fileFormat
126 represents an unknown file format\&.
127 .RE
128 .PP
129 AF_BAD_NOT_IMPLEMENTED
130 .RS 4
131
132 fileFormat
133 represents a file format which is not currently implemented\&.
134 .RE
135 .SH "SEE ALSO"
136 .sp
137 \fBafNewFileSetup\fR(3)
138 .SH "AUTHOR"
139 .sp
140 Michael Pruett <michael@68k\&.org>