Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 470be14

Browse files
committed
mass changes; fix titles; add examples; correct typos; clarifications;
unified style; etc.
1 parent 7760cde commit 470be14

131 files changed

Lines changed: 1970 additions & 1124 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Doc/lib/libaifc.tex

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,11 @@ \section{Standard Module \sectcode{aifc}}
2121
Open an AIFF or AIFF-C file and return an object instance with
2222
methods that are described below. The argument file is either a
2323
string naming a file or a file object. The mode is either the string
24-
'r' when the file must be opened for reading, or 'w' when the file
25-
must be opened for writing.
24+
\code{'r'} when the file must be opened for reading, or \code{'w'}
25+
when the file must be opened for writing. When used for writing, the
26+
file object should be seekable, unless you know ahead of time how many
27+
samples you are going to write in total and use
28+
\code{writeframesraw()} and \code{setnframes()}.
2629
\end{funcdesc}
2730

2831
Objects returned by \code{aifc.open()} when a file is opened for

Doc/lib/libal.tex

Lines changed: 55 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
\section{Built-in Module \sectcode{al}}
22
\bimodindex{al}
33

4-
This module provides access to the audio facilities of the Indigo and
5-
4D/35 workstations, described in section 3A of the IRIX 4.0 man pages
6-
(and also available as an option in IRIX 3.3). You'll need to read
7-
those man pages to understand what these functions do!
8-
Some of the functions are not available in releases below 4.0.5.
9-
Again, see the manual to check whether a specific function is
10-
available on your platform.
4+
This module provides access to the audio facilities of the SGI Indy
5+
and Indigo workstations. See section 3A of the IRIX man pages for
6+
details. You'll need to read those man pages to understand what these
7+
functions do! Some of the functions are not available in IRIX
8+
releases before 4.0.5. Again, see the manual to check whether a
9+
specific function is available on your platform.
10+
11+
All functions and methods defined in this module are equivalent to
12+
the C functions with \samp{AL} prefixed to their name.
1113

1214
Symbolic constants from the C header file \file{<audio.h>} are defined
1315
in the standard module \code{AL}, see below.
@@ -20,145 +22,138 @@ \section{Built-in Module \sectcode{al}}
2022
(One example is specifying an excessive queue size --- there is no
2123
documented upper limit.)
2224

23-
Module \code{al} defines the following functions:
25+
The module defines the following functions:
2426

2527
\renewcommand{\indexsubitem}{(in module al)}
28+
2629
\begin{funcdesc}{openport}{name\, direction\optional{\, config}}
27-
Equivalent to the C function ALopenport(). The name and direction
28-
arguments are strings. The optional config argument is an opaque
29-
configuration object as returned by \code{al.newconfig()}. The return
30-
value is an opaque port object; methods of port objects are described
31-
below.
30+
The name and direction arguments are strings. The optional config
31+
argument is a configuration object as returned by
32+
\code{al.newconfig()}. The return value is an \dfn{port object};
33+
methods of port objects are described below.
3234
\end{funcdesc}
3335

3436
\begin{funcdesc}{newconfig}{}
35-
Equivalent to the C function ALnewconfig(). The return value is a new
36-
opaque configuration object; methods of configuration objects are
37-
described below.
37+
The return value is a new \dfn{configuration object}; methods of
38+
configuration objects are described below.
3839
\end{funcdesc}
3940

4041
\begin{funcdesc}{queryparams}{device}
41-
Equivalent to the C function ALqueryparams(). The device argument is
42-
an integer. The return value is a list of integers containing the
43-
data returned by ALqueryparams().
42+
The device argument is an integer. The return value is a list of
43+
integers containing the data returned by ALqueryparams().
4444
\end{funcdesc}
4545

4646
\begin{funcdesc}{getparams}{device\, list}
47-
Equivalent to the C function ALgetparams(). The device argument is an
48-
integer. The list argument is a list such as returned by
49-
\code{queryparams}; it is modified in place (!).
47+
The device argument is an integer. The list argument is a list such
48+
as returned by \code{queryparams}; it is modified in place (!).
5049
\end{funcdesc}
5150

5251
\begin{funcdesc}{setparams}{device\, list}
53-
Equivalent to the C function ALsetparams(). The device argument is an
54-
integer.The list argument is a list such as returned by
55-
\code{al.queryparams}.
52+
The device argument is an integer. The list argument is a list such
53+
as returned by \code{al.queryparams}.
5654
\end{funcdesc}
5755

56+
\subsection{Configuration Objects}
57+
5858
Configuration objects (returned by \code{al.newconfig()} have the
5959
following methods:
6060

6161
\renewcommand{\indexsubitem}{(audio configuration object method)}
62+
6263
\begin{funcdesc}{getqueuesize}{}
63-
Return the queue size; equivalent to the C function ALgetqueuesize().
64+
Return the queue size.
6465
\end{funcdesc}
6566

6667
\begin{funcdesc}{setqueuesize}{size}
67-
Set the queue size; equivalent to the C function ALsetqueuesize().
68+
Set the queue size.
6869
\end{funcdesc}
6970

7071
\begin{funcdesc}{getwidth}{}
71-
Get the sample width; equivalent to the C function ALgetwidth().
72+
Get the sample width.
7273
\end{funcdesc}
7374

74-
\begin{funcdesc}{getwidth}{width}
75-
Set the sample width; equivalent to the C function ALsetwidth().
75+
\begin{funcdesc}{setwidth}{width}
76+
Set the sample width.
7677
\end{funcdesc}
7778

7879
\begin{funcdesc}{getchannels}{}
79-
Get the channel count; equivalent to the C function ALgetchannels().
80+
Get the channel count.
8081
\end{funcdesc}
8182

8283
\begin{funcdesc}{setchannels}{nchannels}
83-
Set the channel count; equivalent to the C function ALsetchannels().
84+
Set the channel count.
8485
\end{funcdesc}
8586

8687
\begin{funcdesc}{getsampfmt}{}
87-
Get the sample format; equivalent to the C function ALgetsampfmt().
88+
Get the sample format.
8889
\end{funcdesc}
8990

9091
\begin{funcdesc}{setsampfmt}{sampfmt}
91-
Set the sample format; equivalent to the C function ALsetsampfmt().
92+
Set the sample format.
9293
\end{funcdesc}
9394

9495
\begin{funcdesc}{getfloatmax}{}
95-
Get the maximum value for floating sample formats;
96-
equivalent to the C function ALgetfloatmax().
96+
Get the maximum value for floating sample formats.
9797
\end{funcdesc}
9898

9999
\begin{funcdesc}{setfloatmax}{floatmax}
100-
Set the maximum value for floating sample formats;
101-
equivalent to the C function ALsetfloatmax().
100+
Set the maximum value for floating sample formats.
102101
\end{funcdesc}
103102

103+
\subsection{Port Objects}
104+
104105
Port objects (returned by \code{al.openport()} have the following
105106
methods:
106107

107108
\renewcommand{\indexsubitem}{(audio port object method)}
109+
108110
\begin{funcdesc}{closeport}{}
109-
Close the port; equivalent to the C function ALcloseport().
111+
Close the port.
110112
\end{funcdesc}
111113

112114
\begin{funcdesc}{getfd}{}
113-
Return the file descriptor as an int; equivalent to the C function
114-
ALgetfd().
115+
Return the file descriptor as an int.
115116
\end{funcdesc}
116117

117118
\begin{funcdesc}{getfilled}{}
118-
Return the number of filled samples; equivalent to the C function
119-
ALgetfilled().
119+
Return the number of filled samples.
120120
\end{funcdesc}
121121

122122
\begin{funcdesc}{getfillable}{}
123-
Return the number of fillable samples; equivalent to the C function
124-
ALgetfillable().
123+
Return the number of fillable samples.
125124
\end{funcdesc}
126125

127126
\begin{funcdesc}{readsamps}{nsamples}
128-
Read a number of samples from the queue, blocking if necessary;
129-
equivalent to the C function ALreadsamples. The data is returned as a
130-
string containing the raw data (e.g. 2 bytes per sample in big-endian
131-
byte order (high byte, low byte) if you have set the sample width to 2
132-
bytes.
127+
Read a number of samples from the queue, blocking if necessary.
128+
Return the data as a string containing the raw data, (e.g., 2 bytes per
129+
sample in big-endian byte order (high byte, low byte) if you have set
130+
the sample width to 2 bytes).
133131
\end{funcdesc}
134132

135133
\begin{funcdesc}{writesamps}{samples}
136-
Write samples into the queue, blocking if necessary; equivalent to the
137-
C function ALwritesamples. The samples are encoded as described for
138-
the \code{readsamps} return value.
134+
Write samples into the queue, blocking if necessary. The samples are
135+
encoded as described for the \code{readsamps} return value.
139136
\end{funcdesc}
140137

141138
\begin{funcdesc}{getfillpoint}{}
142-
Return the `fill point'; equivalent to the C function ALgetfillpoint().
139+
Return the `fill point'.
143140
\end{funcdesc}
144141

145142
\begin{funcdesc}{setfillpoint}{fillpoint}
146-
Set the `fill point'; equivalent to the C function ALsetfillpoint().
143+
Set the `fill point'.
147144
\end{funcdesc}
148145

149146
\begin{funcdesc}{getconfig}{}
150147
Return a configuration object containing the current configuration of
151-
the port; equivalent to the C function ALgetconfig().
148+
the port.
152149
\end{funcdesc}
153150

154151
\begin{funcdesc}{setconfig}{config}
155-
Set the configuration from the argument, a configuration object;
156-
equivalent to the C function ALsetconfig().
152+
Set the configuration from the argument, a configuration object.
157153
\end{funcdesc}
158154

159155
\begin{funcdesc}{getstatus}{list}
160-
Get status information on last error
161-
equivalent to C function ALgetstatus().
156+
Get status information on last error.
162157
\end{funcdesc}
163158

164159
\section{Standard Module \sectcode{AL}}

Doc/lib/libamoeba.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ \section{Built-in Module \sectcode{amoeba}}
7070

7171
\subsection{Capability Operations}
7272

73-
Capabilities are written in a convenient ASCII format, also used by the
73+
Capabilities are written in a convenient \ASCII{} format, also used by the
7474
Amoeba utilities
7575
{\it c2a}(U)
7676
and

Doc/lib/libarray.tex

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
\section{Built-in module \sectcode{array}}
1+
\section{Built-in Module \sectcode{array}}
22
\bimodindex{array}
33
\index{arrays}
44

@@ -21,7 +21,7 @@ \section{Built-in module \sectcode{array}}
2121

2222
The actual representation of values is determined by the machine
2323
architecture (strictly speaking, by the C implementation). The actual
24-
size can be accessed through the \var{typecode} attribute.
24+
size can be accessed through the \var{itemsize} attribute.
2525

2626
The module defines the following function:
2727

@@ -59,7 +59,9 @@ \section{Built-in module \sectcode{array}}
5959
Read \var{n} items (as machine values) from the file object \var{f}
6060
and append them to the end of the array. If less than \var{n} items
6161
are available, \code{EOFError} is raised, but the items that were
62-
available are still inserted into the array.
62+
available are still inserted into the array. \var{f} must be a real
63+
built-in file object; something else with a \code{read()} method won't
64+
do.
6365
\end{funcdesc}
6466

6567
\begin{funcdesc}{fromlist}{list}

0 commit comments

Comments
 (0)