Debian Codegraph @

docs/afReadMisc.3

raw
1 '\" t
2 .\" Title: afReadMisc
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 "AFREADMISC" "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 afReadMisc, afWriteMisc, afSeekMisc \- access miscellaneous metadata in an audio file
32 .SH "SYNOPSIS"
33 .sp
34 .nf
35 #include <audiofile\&.h>
36 .fi
37 .sp
38 .nf
39 int afReadMisc (AFfilehandle file, int miscid, void *buffer, int nbytes);
40 .fi
41 .sp
42 .nf
43 int afWriteMisc (AFfilehandle file, int miscid, const void *buffer, int nbytes);
44 .fi
45 .sp
46 .nf
47 int afSeekMisc (AFfilehandle file, int miscid, int offbytes);
48 .fi
49 .SH "DESCRIPTION"
50 .sp
51 afReadMisc reads up to \fInbytes\fR from the miscellaneous data chunk identified by \fImiscid\fR in \fIfile\fR\&.
52 .sp
53 afWriteMisc writes up to \fInbytes\fR to the miscellaneous data chunk identified by \fImiscid\fR in \fIfile\fR\&.
54 .sp
55 afSeekMisc changes the current offset within the miscellaneous data chunk identified by \fImiscid\fR to the offset \fIoffbytes\fR\&.
56 .SH "RETURN VALUE"
57 .sp
58 afReadMisc returns the number of bytes read from the specified miscellaneous chunk into the buffer referred to by \fIbuffer\fR\&.
59 .sp
60 afWriteMisc returns the number of bytes written to the specified miscellaneous chunk from the buffer referred to by \fIbuffer\fR\&.
61 .sp
62 afSeekMisc returns the new location of the logical data pointer as measured as an offset in bytes from the beginning of the miscellaneous chunk\(cqs data area\&.
63 .SH "ERRORS"
64 .sp
65 afReadMisc, afWriteMisc, and afSeekMisc can produce the following error codes:
66 .sp
67 .RS 4
68 .ie n \{\
69 \h'-04'\(bu\h'+03'\c
70 .\}
71 .el \{\
72 .sp -1
73 .IP \(bu 2.3
74 .\}
75
76 AF_BAD_READ
77 .RE
78 .sp
79 .RS 4
80 .ie n \{\
81 \h'-04'\(bu\h'+03'\c
82 .\}
83 .el \{\
84 .sp -1
85 .IP \(bu 2.3
86 .\}
87
88 AF_BAD_WRITE
89 .RE
90 .sp
91 .RS 4
92 .ie n \{\
93 \h'-04'\(bu\h'+03'\c
94 .\}
95 .el \{\
96 .sp -1
97 .IP \(bu 2.3
98 .\}
99
100 AF_BAD_MISCSEEK
101 .RE
102 .sp
103 .RS 4
104 .ie n \{\
105 \h'-04'\(bu\h'+03'\c
106 .\}
107 .el \{\
108 .sp -1
109 .IP \(bu 2.3
110 .\}
111
112 AF_BAD_MISCID
113 .RE
114 .sp
115 .RS 4
116 .ie n \{\
117 \h'-04'\(bu\h'+03'\c
118 .\}
119 .el \{\
120 .sp -1
121 .IP \(bu 2.3
122 .\}
123
124 AF_BAD_TRACKID
125 .RE
126 .sp
127 .RS 4
128 .ie n \{\
129 \h'-04'\(bu\h'+03'\c
130 .\}
131 .el \{\
132 .sp -1
133 .IP \(bu 2.3
134 .\}
135
136 AF_BAD_FILEHANDLE
137 .RE
138 .SH "AUTHOR"
139 .sp
140 Michael Pruett <michael@68k\&.org>