Debian Codegraph @

docs/afInitCompression.3

raw
1 '\" t
2 .\" Title: afInitByteOrder
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 "AFINITBYTEORDER" "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 afInitCompression \- initialize compression for a track in an audio file setup
32 .SH "SYNOPSIS"
33 .sp
34 .nf
35 #include <audiofile\&.h>
36 .fi
37 .sp
38 .nf
39 void afInitCompression(AFfilesetup setup, int track, int compression);
40 .fi
41 .SH "PARAMETERS"
42 .sp
43 setup is a valid file setup returned by \fBafNewFileSetup\fR(3)\&.
44 .sp
45 track specifies a track within the audio file setup\&. track is always AF_DEFAULT_TRACK for all currently supported file formats\&.
46 .sp
47 compression is an identifier specifying the compression type (such as AF_COMPRESSION_G711_ULAW) to be used for audio data in the track\&.
48 .SH "DESCRIPTION"
49 .sp
50 Given an AFfilesetup structure created with \fBafNewFileSetup\fR(3) and a track identified by track (AF_DEFAULT_TRACK for all currently supported file formats), afInitCompression initializes the track to the specified compression\&.
51 .sp
52 The following compression types are currently supported:
53 .PP
54 AF_COMPRESSION_NONE
55 .RS 4
56 no compression
57 .RE
58 .PP
59 AF_COMPRESSION_G711_ULAW
60 .RS 4
61 CCITT G\&.711 mu\-law encoding
62 .RE
63 .PP
64 AF_COMPRESSION_G711_ALAW
65 .RS 4
66 CCITT G\&.711 A\-law encoding
67 .RE
68 .PP
69 AF_COMPRESSION_IMA
70 .RS 4
71 IMA ADPCM encoding
72 .RE
73 .PP
74 AF_COMPRESSION_MS_ADPCM
75 .RS 4
76 MS ADPCM encoding
77 .RE
78 .PP
79 AF_COMPRESSION_FLAC
80 .RS 4
81 FLAC
82 .RE
83 .PP
84 AF_COMPRESSION_ALAC
85 .RS 4
86 Apple Lossless Audio Codec
87 .RE
88 .SH "ERRORS"
89 .sp
90 afInitCompression can produce the following errors:
91 .PP
92 AF_BAD_FILESETUP
93 .RS 4
94
95 setup
96 represents an invalid file setup\&.
97 .RE
98 .PP
99 AF_BAD_TRACKID
100 .RS 4
101
102 track
103 represents an invalid track identifier\&.
104 .RE
105 .PP
106 AF_BAD_COMPTYPE
107 .RS 4
108
109 compression
110 represents an invalid compression type\&.
111 .RE
112 .SH "SEE ALSO"
113 .sp
114 \fBafNewFileSetup\fR(3), \fBafInitSampleFormat\fR(3)
115 .SH "AUTHOR"
116 .sp
117 Michael Pruett <michael@68k\&.org>