home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 5 / DATAFILE_PDCD5.iso / utilities / p / python / pytexdoc / ext / lib / lib2 / al / tex
LaTeX Document  |  1996-11-08  |  5.0 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: LaTeX Document (document/latex).

You can browse this item here: tex

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert LaTeX Document (document/latex) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file LaTeX document text default
99% file Python script text executable default (weak)
98% file LaTeX document, ASCII text default
100% checkBytes Printable ASCII default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/281 LaTeX (Subdocument) default
100% detectItEasy Format: plain text[LF] default (weak)



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 5c 73 65 63 74 69 6f 6e | 7b 42 75 69 6c 74 2d 69 |\section|{Built-i|
|00000010| 6e 20 4d 6f 64 75 6c 65 | 20 5c 73 65 63 74 63 6f |n Module| \sectco|
|00000020| 64 65 7b 61 6c 7d 7d 0a | 5c 62 69 6d 6f 64 69 6e |de{al}}.|\bimodin|
|00000030| 64 65 78 7b 61 6c 7d 0a | 0a 54 68 69 73 20 6d 6f |dex{al}.|.This mo|
|00000040| 64 75 6c 65 20 70 72 6f | 76 69 64 65 73 20 61 63 |dule pro|vides ac|
|00000050| 63 65 73 73 20 74 6f 20 | 74 68 65 20 61 75 64 69 |cess to |the audi|
|00000060| 6f 20 66 61 63 69 6c 69 | 74 69 65 73 20 6f 66 20 |o facili|ties of |
|00000070| 74 68 65 20 53 47 49 20 | 49 6e 64 79 0a 61 6e 64 |the SGI |Indy.and|
|00000080| 20 49 6e 64 69 67 6f 20 | 77 6f 72 6b 73 74 61 74 | Indigo |workstat|
|00000090| 69 6f 6e 73 2e 20 20 53 | 65 65 20 73 65 63 74 69 |ions. S|ee secti|
|000000a0| 6f 6e 20 33 41 20 6f 66 | 20 74 68 65 20 49 52 49 |on 3A of| the IRI|
|000000b0| 58 20 6d 61 6e 20 70 61 | 67 65 73 20 66 6f 72 0a |X man pa|ges for.|
|000000c0| 64 65 74 61 69 6c 73 2e | 20 20 59 6f 75 27 6c 6c |details.| You'll|
|000000d0| 20 6e 65 65 64 20 74 6f | 20 72 65 61 64 20 74 68 | need to| read th|
|000000e0| 6f 73 65 20 6d 61 6e 20 | 70 61 67 65 73 20 74 6f |ose man |pages to|
|000000f0| 20 75 6e 64 65 72 73 74 | 61 6e 64 20 77 68 61 74 | underst|and what|
|00000100| 20 74 68 65 73 65 0a 66 | 75 6e 63 74 69 6f 6e 73 | these.f|unctions|
|00000110| 20 64 6f 21 20 20 53 6f | 6d 65 20 6f 66 20 74 68 | do! So|me of th|
|00000120| 65 20 66 75 6e 63 74 69 | 6f 6e 73 20 61 72 65 20 |e functi|ons are |
|00000130| 6e 6f 74 20 61 76 61 69 | 6c 61 62 6c 65 20 69 6e |not avai|lable in|
|00000140| 20 49 52 49 58 0a 72 65 | 6c 65 61 73 65 73 20 62 | IRIX.re|leases b|
|00000150| 65 66 6f 72 65 20 34 2e | 30 2e 35 2e 20 20 41 67 |efore 4.|0.5. Ag|
|00000160| 61 69 6e 2c 20 73 65 65 | 20 74 68 65 20 6d 61 6e |ain, see| the man|
|00000170| 75 61 6c 20 74 6f 20 63 | 68 65 63 6b 20 77 68 65 |ual to c|heck whe|
|00000180| 74 68 65 72 20 61 0a 73 | 70 65 63 69 66 69 63 20 |ther a.s|pecific |
|00000190| 66 75 6e 63 74 69 6f 6e | 20 69 73 20 61 76 61 69 |function| is avai|
|000001a0| 6c 61 62 6c 65 20 6f 6e | 20 79 6f 75 72 20 70 6c |lable on| your pl|
|000001b0| 61 74 66 6f 72 6d 2e 0a | 0a 41 6c 6c 20 66 75 6e |atform..|.All fun|
|000001c0| 63 74 69 6f 6e 73 20 61 | 6e 64 20 6d 65 74 68 6f |ctions a|nd metho|
|000001d0| 64 73 20 64 65 66 69 6e | 65 64 20 69 6e 20 74 68 |ds defin|ed in th|
|000001e0| 69 73 20 6d 6f 64 75 6c | 65 20 61 72 65 20 65 71 |is modul|e are eq|
|000001f0| 75 69 76 61 6c 65 6e 74 | 20 74 6f 0a 74 68 65 20 |uivalent| to.the |
|00000200| 43 20 66 75 6e 63 74 69 | 6f 6e 73 20 77 69 74 68 |C functi|ons with|
|00000210| 20 5c 73 61 6d 70 7b 41 | 4c 7d 20 70 72 65 66 69 | \samp{A|L} prefi|
|00000220| 78 65 64 20 74 6f 20 74 | 68 65 69 72 20 6e 61 6d |xed to t|heir nam|
|00000230| 65 2e 0a 0a 53 79 6d 62 | 6f 6c 69 63 20 63 6f 6e |e...Symb|olic con|
|00000240| 73 74 61 6e 74 73 20 66 | 72 6f 6d 20 74 68 65 20 |stants f|rom the |
|00000250| 43 20 68 65 61 64 65 72 | 20 66 69 6c 65 20 5c 66 |C header| file \f|
|00000260| 69 6c 65 7b 3c 61 75 64 | 69 6f 2e 68 3e 7d 20 61 |ile{<aud|io.h>} a|
|00000270| 72 65 20 64 65 66 69 6e | 65 64 0a 69 6e 20 74 68 |re defin|ed.in th|
|00000280| 65 20 73 74 61 6e 64 61 | 72 64 20 6d 6f 64 75 6c |e standa|rd modul|
|00000290| 65 20 5c 63 6f 64 65 7b | 41 4c 7d 2c 20 73 65 65 |e \code{|AL}, see|
|000002a0| 20 62 65 6c 6f 77 2e 0a | 0a 5c 73 74 72 6f 6e 67 | below..|.\strong|
|000002b0| 7b 57 61 72 6e 69 6e 67 | 3a 7d 20 74 68 65 20 63 |{Warning|:} the c|
|000002c0| 75 72 72 65 6e 74 20 76 | 65 72 73 69 6f 6e 20 6f |urrent v|ersion o|
|000002d0| 66 20 74 68 65 20 61 75 | 64 69 6f 20 6c 69 62 72 |f the au|dio libr|
|000002e0| 61 72 79 20 6d 61 79 20 | 64 75 6d 70 20 63 6f 72 |ary may |dump cor|
|000002f0| 65 0a 77 68 65 6e 20 62 | 61 64 20 61 72 67 75 6d |e.when b|ad argum|
|00000300| 65 6e 74 20 76 61 6c 75 | 65 73 20 61 72 65 20 70 |ent valu|es are p|
|00000310| 61 73 73 65 64 20 72 61 | 74 68 65 72 20 74 68 61 |assed ra|ther tha|
|00000320| 6e 20 72 65 74 75 72 6e | 69 6e 67 20 61 6e 20 65 |n return|ing an e|
|00000330| 72 72 6f 72 0a 73 74 61 | 74 75 73 2e 20 20 55 6e |rror.sta|tus. Un|
|00000340| 66 6f 72 74 75 6e 61 74 | 65 6c 79 2c 20 73 69 6e |fortunat|ely, sin|
|00000350| 63 65 20 74 68 65 20 70 | 72 65 63 69 73 65 20 63 |ce the p|recise c|
|00000360| 69 72 63 75 6d 73 74 61 | 6e 63 65 73 20 75 6e 64 |ircumsta|nces und|
|00000370| 65 72 20 77 68 69 63 68 | 0a 74 68 69 73 20 6d 61 |er which|.this ma|
|00000380| 79 20 68 61 70 70 65 6e | 20 61 72 65 20 75 6e 64 |y happen| are und|
|00000390| 6f 63 75 6d 65 6e 74 65 | 64 20 61 6e 64 20 68 61 |ocumente|d and ha|
|000003a0| 72 64 20 74 6f 20 63 68 | 65 63 6b 2c 20 74 68 65 |rd to ch|eck, the|
|000003b0| 20 50 79 74 68 6f 6e 0a | 69 6e 74 65 72 66 61 63 | Python.|interfac|
|000003c0| 65 20 63 61 6e 20 70 72 | 6f 76 69 64 65 20 6e 6f |e can pr|ovide no|
|000003d0| 20 70 72 6f 74 65 63 74 | 69 6f 6e 20 61 67 61 69 | protect|ion agai|
|000003e0| 6e 73 74 20 74 68 69 73 | 20 6b 69 6e 64 20 6f 66 |nst this| kind of|
|000003f0| 20 70 72 6f 62 6c 65 6d | 73 2e 0a 28 4f 6e 65 20 | problem|s..(One |
|00000400| 65 78 61 6d 70 6c 65 20 | 69 73 20 73 70 65 63 69 |example |is speci|
|00000410| 66 79 69 6e 67 20 61 6e | 20 65 78 63 65 73 73 69 |fying an| excessi|
|00000420| 76 65 20 71 75 65 75 65 | 20 73 69 7a 65 20 2d 2d |ve queue| size --|
|00000430| 2d 20 74 68 65 72 65 20 | 69 73 20 6e 6f 0a 64 6f |- there |is no.do|
|00000440| 63 75 6d 65 6e 74 65 64 | 20 75 70 70 65 72 20 6c |cumented| upper l|
|00000450| 69 6d 69 74 2e 29 0a 0a | 54 68 65 20 6d 6f 64 75 |imit.)..|The modu|
|00000460| 6c 65 20 64 65 66 69 6e | 65 73 20 74 68 65 20 66 |le defin|es the f|
|00000470| 6f 6c 6c 6f 77 69 6e 67 | 20 66 75 6e 63 74 69 6f |ollowing| functio|
|00000480| 6e 73 3a 0a 0a 5c 72 65 | 6e 65 77 63 6f 6d 6d 61 |ns:..\re|newcomma|
|00000490| 6e 64 7b 5c 69 6e 64 65 | 78 73 75 62 69 74 65 6d |nd{\inde|xsubitem|
|000004a0| 7d 7b 28 69 6e 20 6d 6f | 64 75 6c 65 20 61 6c 29 |}{(in mo|dule al)|
|000004b0| 7d 0a 0a 5c 62 65 67 69 | 6e 7b 66 75 6e 63 64 65 |}..\begi|n{funcde|
|000004c0| 73 63 7d 7b 6f 70 65 6e | 70 6f 72 74 7d 7b 6e 61 |sc}{open|port}{na|
|000004d0| 6d 65 5c 2c 20 64 69 72 | 65 63 74 69 6f 6e 5c 6f |me\, dir|ection\o|
|000004e0| 70 74 69 6f 6e 61 6c 7b | 5c 2c 20 63 6f 6e 66 69 |ptional{|\, confi|
|000004f0| 67 7d 7d 0a 54 68 65 20 | 6e 61 6d 65 20 61 6e 64 |g}}.The |name and|
|00000500| 20 64 69 72 65 63 74 69 | 6f 6e 20 61 72 67 75 6d | directi|on argum|
|00000510| 65 6e 74 73 20 61 72 65 | 20 73 74 72 69 6e 67 73 |ents are| strings|
|00000520| 2e 20 20 54 68 65 20 6f | 70 74 69 6f 6e 61 6c 20 |. The o|ptional |
|00000530| 63 6f 6e 66 69 67 0a 61 | 72 67 75 6d 65 6e 74 20 |config.a|rgument |
|00000540| 69 73 20 61 20 63 6f 6e | 66 69 67 75 72 61 74 69 |is a con|figurati|
|00000550| 6f 6e 20 6f 62 6a 65 63 | 74 20 61 73 20 72 65 74 |on objec|t as ret|
|00000560| 75 72 6e 65 64 20 62 79 | 0a 5c 63 6f 64 65 7b 61 |urned by|.\code{a|
|00000570| 6c 2e 6e 65 77 63 6f 6e | 66 69 67 28 29 7d 2e 20 |l.newcon|fig()}. |
|00000580| 20 54 68 65 20 72 65 74 | 75 72 6e 20 76 61 6c 75 | The ret|urn valu|
|00000590| 65 20 69 73 20 61 6e 20 | 5c 64 66 6e 7b 70 6f 72 |e is an |\dfn{por|
|000005a0| 74 20 6f 62 6a 65 63 74 | 7d 3b 0a 6d 65 74 68 6f |t object|};.metho|
|000005b0| 64 73 20 6f 66 20 70 6f | 72 74 20 6f 62 6a 65 63 |ds of po|rt objec|
|000005c0| 74 73 20 61 72 65 20 64 | 65 73 63 72 69 62 65 64 |ts are d|escribed|
|000005d0| 20 62 65 6c 6f 77 2e 0a | 5c 65 6e 64 7b 66 75 6e | below..|\end{fun|
|000005e0| 63 64 65 73 63 7d 0a 0a | 5c 62 65 67 69 6e 7b 66 |cdesc}..|\begin{f|
|000005f0| 75 6e 63 64 65 73 63 7d | 7b 6e 65 77 63 6f 6e 66 |uncdesc}|{newconf|
|00000600| 69 67 7d 7b 7d 0a 54 68 | 65 20 72 65 74 75 72 6e |ig}{}.Th|e return|
|00000610| 20 76 61 6c 75 65 20 69 | 73 20 61 20 6e 65 77 20 | value i|s a new |
|00000620| 5c 64 66 6e 7b 63 6f 6e | 66 69 67 75 72 61 74 69 |\dfn{con|figurati|
|00000630| 6f 6e 20 6f 62 6a 65 63 | 74 7d 3b 20 6d 65 74 68 |on objec|t}; meth|
|00000640| 6f 64 73 20 6f 66 0a 63 | 6f 6e 66 69 67 75 72 61 |ods of.c|onfigura|
|00000650| 74 69 6f 6e 20 6f 62 6a | 65 63 74 73 20 61 72 65 |tion obj|ects are|
|00000660| 20 64 65 73 63 72 69 62 | 65 64 20 62 65 6c 6f 77 | describ|ed below|
|00000670| 2e 0a 5c 65 6e 64 7b 66 | 75 6e 63 64 65 73 63 7d |..\end{f|uncdesc}|
|00000680| 0a 0a 5c 62 65 67 69 6e | 7b 66 75 6e 63 64 65 73 |..\begin|{funcdes|
|00000690| 63 7d 7b 71 75 65 72 79 | 70 61 72 61 6d 73 7d 7b |c}{query|params}{|
|000006a0| 64 65 76 69 63 65 7d 0a | 54 68 65 20 64 65 76 69 |device}.|The devi|
|000006b0| 63 65 20 61 72 67 75 6d | 65 6e 74 20 69 73 20 61 |ce argum|ent is a|
|000006c0| 6e 20 69 6e 74 65 67 65 | 72 2e 20 20 54 68 65 20 |n intege|r. The |
|000006d0| 72 65 74 75 72 6e 20 76 | 61 6c 75 65 20 69 73 20 |return v|alue is |
|000006e0| 61 20 6c 69 73 74 20 6f | 66 0a 69 6e 74 65 67 65 |a list o|f.intege|
|000006f0| 72 73 20 63 6f 6e 74 61 | 69 6e 69 6e 67 20 74 68 |rs conta|ining th|
|00000700| 65 20 64 61 74 61 20 72 | 65 74 75 72 6e 65 64 20 |e data r|eturned |
|00000710| 62 79 20 41 4c 71 75 65 | 72 79 70 61 72 61 6d 73 |by ALque|ryparams|
|00000720| 28 29 2e 0a 5c 65 6e 64 | 7b 66 75 6e 63 64 65 73 |()..\end|{funcdes|
|00000730| 63 7d 0a 0a 5c 62 65 67 | 69 6e 7b 66 75 6e 63 64 |c}..\beg|in{funcd|
|00000740| 65 73 63 7d 7b 67 65 74 | 70 61 72 61 6d 73 7d 7b |esc}{get|params}{|
|00000750| 64 65 76 69 63 65 5c 2c | 20 6c 69 73 74 7d 0a 54 |device\,| list}.T|
|00000760| 68 65 20 64 65 76 69 63 | 65 20 61 72 67 75 6d 65 |he devic|e argume|
|00000770| 6e 74 20 69 73 20 61 6e | 20 69 6e 74 65 67 65 72 |nt is an| integer|
|00000780| 2e 20 20 54 68 65 20 6c | 69 73 74 20 61 72 67 75 |. The l|ist argu|
|00000790| 6d 65 6e 74 20 69 73 20 | 61 20 6c 69 73 74 20 73 |ment is |a list s|
|000007a0| 75 63 68 0a 61 73 20 72 | 65 74 75 72 6e 65 64 20 |uch.as r|eturned |
|000007b0| 62 79 20 5c 63 6f 64 65 | 7b 71 75 65 72 79 70 61 |by \code|{querypa|
|000007c0| 72 61 6d 73 7d 3b 20 69 | 74 20 69 73 20 6d 6f 64 |rams}; i|t is mod|
|000007d0| 69 66 69 65 64 20 69 6e | 20 70 6c 61 63 65 20 28 |ified in| place (|
|000007e0| 21 29 2e 0a 5c 65 6e 64 | 7b 66 75 6e 63 64 65 73 |!)..\end|{funcdes|
|000007f0| 63 7d 0a 0a 5c 62 65 67 | 69 6e 7b 66 75 6e 63 64 |c}..\beg|in{funcd|
|00000800| 65 73 63 7d 7b 73 65 74 | 70 61 72 61 6d 73 7d 7b |esc}{set|params}{|
|00000810| 64 65 76 69 63 65 5c 2c | 20 6c 69 73 74 7d 0a 54 |device\,| list}.T|
|00000820| 68 65 20 64 65 76 69 63 | 65 20 61 72 67 75 6d 65 |he devic|e argume|
|00000830| 6e 74 20 69 73 20 61 6e | 20 69 6e 74 65 67 65 72 |nt is an| integer|
|00000840| 2e 20 20 54 68 65 20 6c | 69 73 74 20 61 72 67 75 |. The l|ist argu|
|00000850| 6d 65 6e 74 20 69 73 20 | 61 20 6c 69 73 74 20 73 |ment is |a list s|
|00000860| 75 63 68 0a 61 73 20 72 | 65 74 75 72 6e 65 64 20 |uch.as r|eturned |
|00000870| 62 79 20 5c 63 6f 64 65 | 7b 61 6c 2e 71 75 65 72 |by \code|{al.quer|
|00000880| 79 70 61 72 61 6d 73 7d | 2e 0a 5c 65 6e 64 7b 66 |yparams}|..\end{f|
|00000890| 75 6e 63 64 65 73 63 7d | 0a 0a 5c 73 75 62 73 65 |uncdesc}|..\subse|
|000008a0| 63 74 69 6f 6e 7b 43 6f | 6e 66 69 67 75 72 61 74 |ction{Co|nfigurat|
|000008b0| 69 6f 6e 20 4f 62 6a 65 | 63 74 73 7d 0a 0a 43 6f |ion Obje|cts}..Co|
|000008c0| 6e 66 69 67 75 72 61 74 | 69 6f 6e 20 6f 62 6a 65 |nfigurat|ion obje|
|000008d0| 63 74 73 20 28 72 65 74 | 75 72 6e 65 64 20 62 79 |cts (ret|urned by|
|000008e0| 20 5c 63 6f 64 65 7b 61 | 6c 2e 6e 65 77 63 6f 6e | \code{a|l.newcon|
|000008f0| 66 69 67 28 29 7d 20 68 | 61 76 65 20 74 68 65 0a |fig()} h|ave the.|
|00000900| 66 6f 6c 6c 6f 77 69 6e | 67 20 6d 65 74 68 6f 64 |followin|g method|
|00000910| 73 3a 0a 0a 5c 72 65 6e | 65 77 63 6f 6d 6d 61 6e |s:..\ren|ewcomman|
|00000920| 64 7b 5c 69 6e 64 65 78 | 73 75 62 69 74 65 6d 7d |d{\index|subitem}|
|00000930| 7b 28 61 75 64 69 6f 20 | 63 6f 6e 66 69 67 75 72 |{(audio |configur|
|00000940| 61 74 69 6f 6e 20 6f 62 | 6a 65 63 74 20 6d 65 74 |ation ob|ject met|
|00000950| 68 6f 64 29 7d 0a 0a 5c | 62 65 67 69 6e 7b 66 75 |hod)}..\|begin{fu|
|00000960| 6e 63 64 65 73 63 7d 7b | 67 65 74 71 75 65 75 65 |ncdesc}{|getqueue|
|00000970| 73 69 7a 65 7d 7b 7d 0a | 52 65 74 75 72 6e 20 74 |size}{}.|Return t|
|00000980| 68 65 20 71 75 65 75 65 | 20 73 69 7a 65 2e 0a 5c |he queue| size..\|
|00000990| 65 6e 64 7b 66 75 6e 63 | 64 65 73 63 7d 0a 0a 5c |end{func|desc}..\|
|000009a0| 62 65 67 69 6e 7b 66 75 | 6e 63 64 65 73 63 7d 7b |begin{fu|ncdesc}{|
|000009b0| 73 65 74 71 75 65 75 65 | 73 69 7a 65 7d 7b 73 69 |setqueue|size}{si|
|000009c0| 7a 65 7d 0a 53 65 74 20 | 74 68 65 20 71 75 65 75 |ze}.Set |the queu|
|000009d0| 65 20 73 69 7a 65 2e 0a | 5c 65 6e 64 7b 66 75 6e |e size..|\end{fun|
|000009e0| 63 64 65 73 63 7d 0a 0a | 5c 62 65 67 69 6e 7b 66 |cdesc}..|\begin{f|
|000009f0| 75 6e 63 64 65 73 63 7d | 7b 67 65 74 77 69 64 74 |uncdesc}|{getwidt|
|00000a00| 68 7d 7b 7d 0a 47 65 74 | 20 74 68 65 20 73 61 6d |h}{}.Get| the sam|
|00000a10| 70 6c 65 20 77 69 64 74 | 68 2e 0a 5c 65 6e 64 7b |ple widt|h..\end{|
|00000a20| 66 75 6e 63 64 65 73 63 | 7d 0a 0a 5c 62 65 67 69 |funcdesc|}..\begi|
|00000a30| 6e 7b 66 75 6e 63 64 65 | 73 63 7d 7b 73 65 74 77 |n{funcde|sc}{setw|
|00000a40| 69 64 74 68 7d 7b 77 69 | 64 74 68 7d 0a 53 65 74 |idth}{wi|dth}.Set|
|00000a50| 20 74 68 65 20 73 61 6d | 70 6c 65 20 77 69 64 74 | the sam|ple widt|
|00000a60| 68 2e 0a 5c 65 6e 64 7b | 66 75 6e 63 64 65 73 63 |h..\end{|funcdesc|
|00000a70| 7d 0a 0a 5c 62 65 67 69 | 6e 7b 66 75 6e 63 64 65 |}..\begi|n{funcde|
|00000a80| 73 63 7d 7b 67 65 74 63 | 68 61 6e 6e 65 6c 73 7d |sc}{getc|hannels}|
|00000a90| 7b 7d 0a 47 65 74 20 74 | 68 65 20 63 68 61 6e 6e |{}.Get t|he chann|
|00000aa0| 65 6c 20 63 6f 75 6e 74 | 2e 0a 5c 65 6e 64 7b 66 |el count|..\end{f|
|00000ab0| 75 6e 63 64 65 73 63 7d | 0a 0a 5c 62 65 67 69 6e |uncdesc}|..\begin|
|00000ac0| 7b 66 75 6e 63 64 65 73 | 63 7d 7b 73 65 74 63 68 |{funcdes|c}{setch|
|00000ad0| 61 6e 6e 65 6c 73 7d 7b | 6e 63 68 61 6e 6e 65 6c |annels}{|nchannel|
|00000ae0| 73 7d 0a 53 65 74 20 74 | 68 65 20 63 68 61 6e 6e |s}.Set t|he chann|
|00000af0| 65 6c 20 63 6f 75 6e 74 | 2e 0a 5c 65 6e 64 7b 66 |el count|..\end{f|
|00000b00| 75 6e 63 64 65 73 63 7d | 0a 0a 5c 62 65 67 69 6e |uncdesc}|..\begin|
|00000b10| 7b 66 75 6e 63 64 65 73 | 63 7d 7b 67 65 74 73 61 |{funcdes|c}{getsa|
|00000b20| 6d 70 66 6d 74 7d 7b 7d | 0a 47 65 74 20 74 68 65 |mpfmt}{}|.Get the|
|00000b30| 20 73 61 6d 70 6c 65 20 | 66 6f 72 6d 61 74 2e 0a | sample |format..|
|00000b40| 5c 65 6e 64 7b 66 75 6e | 63 64 65 73 63 7d 0a 0a |\end{fun|cdesc}..|
|00000b50| 5c 62 65 67 69 6e 7b 66 | 75 6e 63 64 65 73 63 7d |\begin{f|uncdesc}|
|00000b60| 7b 73 65 74 73 61 6d 70 | 66 6d 74 7d 7b 73 61 6d |{setsamp|fmt}{sam|
|00000b70| 70 66 6d 74 7d 0a 53 65 | 74 20 74 68 65 20 73 61 |pfmt}.Se|t the sa|
|00000b80| 6d 70 6c 65 20 66 6f 72 | 6d 61 74 2e 0a 5c 65 6e |mple for|mat..\en|
|00000b90| 64 7b 66 75 6e 63 64 65 | 73 63 7d 0a 0a 5c 62 65 |d{funcde|sc}..\be|
|00000ba0| 67 69 6e 7b 66 75 6e 63 | 64 65 73 63 7d 7b 67 65 |gin{func|desc}{ge|
|00000bb0| 74 66 6c 6f 61 74 6d 61 | 78 7d 7b 7d 0a 47 65 74 |tfloatma|x}{}.Get|
|00000bc0| 20 74 68 65 20 6d 61 78 | 69 6d 75 6d 20 76 61 6c | the max|imum val|
|00000bd0| 75 65 20 66 6f 72 20 66 | 6c 6f 61 74 69 6e 67 20 |ue for f|loating |
|00000be0| 73 61 6d 70 6c 65 20 66 | 6f 72 6d 61 74 73 2e 0a |sample f|ormats..|
|00000bf0| 5c 65 6e 64 7b 66 75 6e | 63 64 65 73 63 7d 0a 0a |\end{fun|cdesc}..|
|00000c00| 5c 62 65 67 69 6e 7b 66 | 75 6e 63 64 65 73 63 7d |\begin{f|uncdesc}|
|00000c10| 7b 73 65 74 66 6c 6f 61 | 74 6d 61 78 7d 7b 66 6c |{setfloa|tmax}{fl|
|00000c20| 6f 61 74 6d 61 78 7d 0a | 53 65 74 20 74 68 65 20 |oatmax}.|Set the |
|00000c30| 6d 61 78 69 6d 75 6d 20 | 76 61 6c 75 65 20 66 6f |maximum |value fo|
|00000c40| 72 20 66 6c 6f 61 74 69 | 6e 67 20 73 61 6d 70 6c |r floati|ng sampl|
|00000c50| 65 20 66 6f 72 6d 61 74 | 73 2e 0a 5c 65 6e 64 7b |e format|s..\end{|
|00000c60| 66 75 6e 63 64 65 73 63 | 7d 0a 0a 5c 73 75 62 73 |funcdesc|}..\subs|
|00000c70| 65 63 74 69 6f 6e 7b 50 | 6f 72 74 20 4f 62 6a 65 |ection{P|ort Obje|
|00000c80| 63 74 73 7d 0a 0a 50 6f | 72 74 20 6f 62 6a 65 63 |cts}..Po|rt objec|
|00000c90| 74 73 20 28 72 65 74 75 | 72 6e 65 64 20 62 79 20 |ts (retu|rned by |
|00000ca0| 5c 63 6f 64 65 7b 61 6c | 2e 6f 70 65 6e 70 6f 72 |\code{al|.openpor|
|00000cb0| 74 28 29 7d 20 68 61 76 | 65 20 74 68 65 20 66 6f |t()} hav|e the fo|
|00000cc0| 6c 6c 6f 77 69 6e 67 0a | 6d 65 74 68 6f 64 73 3a |llowing.|methods:|
|00000cd0| 0a 0a 5c 72 65 6e 65 77 | 63 6f 6d 6d 61 6e 64 7b |..\renew|command{|
|00000ce0| 5c 69 6e 64 65 78 73 75 | 62 69 74 65 6d 7d 7b 28 |\indexsu|bitem}{(|
|00000cf0| 61 75 64 69 6f 20 70 6f | 72 74 20 6f 62 6a 65 63 |audio po|rt objec|
|00000d00| 74 20 6d 65 74 68 6f 64 | 29 7d 0a 0a 5c 62 65 67 |t method|)}..\beg|
|00000d10| 69 6e 7b 66 75 6e 63 64 | 65 73 63 7d 7b 63 6c 6f |in{funcd|esc}{clo|
|00000d20| 73 65 70 6f 72 74 7d 7b | 7d 0a 43 6c 6f 73 65 20 |seport}{|}.Close |
|00000d30| 74 68 65 20 70 6f 72 74 | 2e 0a 5c 65 6e 64 7b 66 |the port|..\end{f|
|00000d40| 75 6e 63 64 65 73 63 7d | 0a 0a 5c 62 65 67 69 6e |uncdesc}|..\begin|
|00000d50| 7b 66 75 6e 63 64 65 73 | 63 7d 7b 67 65 74 66 64 |{funcdes|c}{getfd|
|00000d60| 7d 7b 7d 0a 52 65 74 75 | 72 6e 20 74 68 65 20 66 |}{}.Retu|rn the f|
|00000d70| 69 6c 65 20 64 65 73 63 | 72 69 70 74 6f 72 20 61 |ile desc|riptor a|
|00000d80| 73 20 61 6e 20 69 6e 74 | 2e 0a 5c 65 6e 64 7b 66 |s an int|..\end{f|
|00000d90| 75 6e 63 64 65 73 63 7d | 0a 0a 5c 62 65 67 69 6e |uncdesc}|..\begin|
|00000da0| 7b 66 75 6e 63 64 65 73 | 63 7d 7b 67 65 74 66 69 |{funcdes|c}{getfi|
|00000db0| 6c 6c 65 64 7d 7b 7d 0a | 52 65 74 75 72 6e 20 74 |lled}{}.|Return t|
|00000dc0| 68 65 20 6e 75 6d 62 65 | 72 20 6f 66 20 66 69 6c |he numbe|r of fil|
|00000dd0| 6c 65 64 20 73 61 6d 70 | 6c 65 73 2e 0a 5c 65 6e |led samp|les..\en|
|00000de0| 64 7b 66 75 6e 63 64 65 | 73 63 7d 0a 0a 5c 62 65 |d{funcde|sc}..\be|
|00000df0| 67 69 6e 7b 66 75 6e 63 | 64 65 73 63 7d 7b 67 65 |gin{func|desc}{ge|
|00000e00| 74 66 69 6c 6c 61 62 6c | 65 7d 7b 7d 0a 52 65 74 |tfillabl|e}{}.Ret|
|00000e10| 75 72 6e 20 74 68 65 20 | 6e 75 6d 62 65 72 20 6f |urn the |number o|
|00000e20| 66 20 66 69 6c 6c 61 62 | 6c 65 20 73 61 6d 70 6c |f fillab|le sampl|
|00000e30| 65 73 2e 0a 5c 65 6e 64 | 7b 66 75 6e 63 64 65 73 |es..\end|{funcdes|
|00000e40| 63 7d 0a 0a 5c 62 65 67 | 69 6e 7b 66 75 6e 63 64 |c}..\beg|in{funcd|
|00000e50| 65 73 63 7d 7b 72 65 61 | 64 73 61 6d 70 73 7d 7b |esc}{rea|dsamps}{|
|00000e60| 6e 73 61 6d 70 6c 65 73 | 7d 0a 52 65 61 64 20 61 |nsamples|}.Read a|
|00000e70| 20 6e 75 6d 62 65 72 20 | 6f 66 20 73 61 6d 70 6c | number |of sampl|
|00000e80| 65 73 20 66 72 6f 6d 20 | 74 68 65 20 71 75 65 75 |es from |the queu|
|00000e90| 65 2c 20 62 6c 6f 63 6b | 69 6e 67 20 69 66 20 6e |e, block|ing if n|
|00000ea0| 65 63 65 73 73 61 72 79 | 2e 0a 52 65 74 75 72 6e |ecessary|..Return|
|00000eb0| 20 74 68 65 20 64 61 74 | 61 20 61 73 20 61 20 73 | the dat|a as a s|
|00000ec0| 74 72 69 6e 67 20 63 6f | 6e 74 61 69 6e 69 6e 67 |tring co|ntaining|
|00000ed0| 20 74 68 65 20 72 61 77 | 20 64 61 74 61 2c 20 28 | the raw| data, (|
|00000ee0| 65 2e 67 2e 2c 20 32 20 | 62 79 74 65 73 20 70 65 |e.g., 2 |bytes pe|
|00000ef0| 72 0a 73 61 6d 70 6c 65 | 20 69 6e 20 62 69 67 2d |r.sample| in big-|
|00000f00| 65 6e 64 69 61 6e 20 62 | 79 74 65 20 6f 72 64 65 |endian b|yte orde|
|00000f10| 72 20 28 68 69 67 68 20 | 62 79 74 65 2c 20 6c 6f |r (high |byte, lo|
|00000f20| 77 20 62 79 74 65 29 20 | 69 66 20 79 6f 75 20 68 |w byte) |if you h|
|00000f30| 61 76 65 20 73 65 74 0a | 74 68 65 20 73 61 6d 70 |ave set.|the samp|
|00000f40| 6c 65 20 77 69 64 74 68 | 20 74 6f 20 32 20 62 79 |le width| to 2 by|
|00000f50| 74 65 73 29 2e 0a 5c 65 | 6e 64 7b 66 75 6e 63 64 |tes)..\e|nd{funcd|
|00000f60| 65 73 63 7d 0a 0a 5c 62 | 65 67 69 6e 7b 66 75 6e |esc}..\b|egin{fun|
|00000f70| 63 64 65 73 63 7d 7b 77 | 72 69 74 65 73 61 6d 70 |cdesc}{w|ritesamp|
|00000f80| 73 7d 7b 73 61 6d 70 6c | 65 73 7d 0a 57 72 69 74 |s}{sampl|es}.Writ|
|00000f90| 65 20 73 61 6d 70 6c 65 | 73 20 69 6e 74 6f 20 74 |e sample|s into t|
|00000fa0| 68 65 20 71 75 65 75 65 | 2c 20 62 6c 6f 63 6b 69 |he queue|, blocki|
|00000fb0| 6e 67 20 69 66 20 6e 65 | 63 65 73 73 61 72 79 2e |ng if ne|cessary.|
|00000fc0| 20 20 54 68 65 20 73 61 | 6d 70 6c 65 73 20 61 72 | The sa|mples ar|
|00000fd0| 65 0a 65 6e 63 6f 64 65 | 64 20 61 73 20 64 65 73 |e.encode|d as des|
|00000fe0| 63 72 69 62 65 64 20 66 | 6f 72 20 74 68 65 20 5c |cribed f|or the \|
|00000ff0| 63 6f 64 65 7b 72 65 61 | 64 73 61 6d 70 73 7d 20 |code{rea|dsamps} |
|00001000| 72 65 74 75 72 6e 20 76 | 61 6c 75 65 2e 0a 5c 65 |return v|alue..\e|
|00001010| 6e 64 7b 66 75 6e 63 64 | 65 73 63 7d 0a 0a 5c 62 |nd{funcd|esc}..\b|
|00001020| 65 67 69 6e 7b 66 75 6e | 63 64 65 73 63 7d 7b 67 |egin{fun|cdesc}{g|
|00001030| 65 74 66 69 6c 6c 70 6f | 69 6e 74 7d 7b 7d 0a 52 |etfillpo|int}{}.R|
|00001040| 65 74 75 72 6e 20 74 68 | 65 20 60 66 69 6c 6c 20 |eturn th|e `fill |
|00001050| 70 6f 69 6e 74 27 2e 0a | 5c 65 6e 64 7b 66 75 6e |point'..|\end{fun|
|00001060| 63 64 65 73 63 7d 0a 0a | 5c 62 65 67 69 6e 7b 66 |cdesc}..|\begin{f|
|00001070| 75 6e 63 64 65 73 63 7d | 7b 73 65 74 66 69 6c 6c |uncdesc}|{setfill|
|00001080| 70 6f 69 6e 74 7d 7b 66 | 69 6c 6c 70 6f 69 6e 74 |point}{f|illpoint|
|00001090| 7d 0a 53 65 74 20 74 68 | 65 20 60 66 69 6c 6c 20 |}.Set th|e `fill |
|000010a0| 70 6f 69 6e 74 27 2e 0a | 5c 65 6e 64 7b 66 75 6e |point'..|\end{fun|
|000010b0| 63 64 65 73 63 7d 0a 0a | 5c 62 65 67 69 6e 7b 66 |cdesc}..|\begin{f|
|000010c0| 75 6e 63 64 65 73 63 7d | 7b 67 65 74 63 6f 6e 66 |uncdesc}|{getconf|
|000010d0| 69 67 7d 7b 7d 0a 52 65 | 74 75 72 6e 20 61 20 63 |ig}{}.Re|turn a c|
|000010e0| 6f 6e 66 69 67 75 72 61 | 74 69 6f 6e 20 6f 62 6a |onfigura|tion obj|
|000010f0| 65 63 74 20 63 6f 6e 74 | 61 69 6e 69 6e 67 20 74 |ect cont|aining t|
|00001100| 68 65 20 63 75 72 72 65 | 6e 74 20 63 6f 6e 66 69 |he curre|nt confi|
|00001110| 67 75 72 61 74 69 6f 6e | 20 6f 66 0a 74 68 65 20 |guration| of.the |
|00001120| 70 6f 72 74 2e 0a 5c 65 | 6e 64 7b 66 75 6e 63 64 |port..\e|nd{funcd|
|00001130| 65 73 63 7d 0a 0a 5c 62 | 65 67 69 6e 7b 66 75 6e |esc}..\b|egin{fun|
|00001140| 63 64 65 73 63 7d 7b 73 | 65 74 63 6f 6e 66 69 67 |cdesc}{s|etconfig|
|00001150| 7d 7b 63 6f 6e 66 69 67 | 7d 0a 53 65 74 20 74 68 |}{config|}.Set th|
|00001160| 65 20 63 6f 6e 66 69 67 | 75 72 61 74 69 6f 6e 20 |e config|uration |
|00001170| 66 72 6f 6d 20 74 68 65 | 20 61 72 67 75 6d 65 6e |from the| argumen|
|00001180| 74 2c 20 61 20 63 6f 6e | 66 69 67 75 72 61 74 69 |t, a con|figurati|
|00001190| 6f 6e 20 6f 62 6a 65 63 | 74 2e 0a 5c 65 6e 64 7b |on objec|t..\end{|
|000011a0| 66 75 6e 63 64 65 73 63 | 7d 0a 0a 5c 62 65 67 69 |funcdesc|}..\begi|
|000011b0| 6e 7b 66 75 6e 63 64 65 | 73 63 7d 7b 67 65 74 73 |n{funcde|sc}{gets|
|000011c0| 74 61 74 75 73 7d 7b 6c | 69 73 74 7d 0a 47 65 74 |tatus}{l|ist}.Get|
|000011d0| 20 73 74 61 74 75 73 20 | 69 6e 66 6f 72 6d 61 74 | status |informat|
|000011e0| 69 6f 6e 20 6f 6e 20 6c | 61 73 74 20 65 72 72 6f |ion on l|ast erro|
|000011f0| 72 2e 0a 5c 65 6e 64 7b | 66 75 6e 63 64 65 73 63 |r..\end{|funcdesc|
|00001200| 7d 0a 0a 5c 73 65 63 74 | 69 6f 6e 7b 53 74 61 6e |}..\sect|ion{Stan|
|00001210| 64 61 72 64 20 4d 6f 64 | 75 6c 65 20 5c 73 65 63 |dard Mod|ule \sec|
|00001220| 74 63 6f 64 65 7b 41 4c | 7d 7d 0a 5c 6e 6f 64 65 |tcode{AL|}}.\node|
|00001230| 6e 61 6d 65 7b 41 4c 20 | 28 75 70 70 65 72 63 61 |name{AL |(upperca|
|00001240| 73 65 29 7d 0a 5c 73 74 | 6d 6f 64 69 6e 64 65 78 |se)}.\st|modindex|
|00001250| 7b 41 4c 7d 0a 0a 54 68 | 69 73 20 6d 6f 64 75 6c |{AL}..Th|is modul|
|00001260| 65 20 64 65 66 69 6e 65 | 73 20 73 79 6d 62 6f 6c |e define|s symbol|
|00001270| 69 63 20 63 6f 6e 73 74 | 61 6e 74 73 20 6e 65 65 |ic const|ants nee|
|00001280| 64 65 64 20 74 6f 20 75 | 73 65 20 74 68 65 20 62 |ded to u|se the b|
|00001290| 75 69 6c 74 2d 69 6e 0a | 6d 6f 64 75 6c 65 20 5c |uilt-in.|module \|
|000012a0| 63 6f 64 65 7b 61 6c 7d | 20 28 73 65 65 20 61 62 |code{al}| (see ab|
|000012b0| 6f 76 65 29 3b 20 74 68 | 65 79 20 61 72 65 20 65 |ove); th|ey are e|
|000012c0| 71 75 69 76 61 6c 65 6e | 74 20 74 6f 20 74 68 6f |quivalen|t to tho|
|000012d0| 73 65 20 64 65 66 69 6e | 65 64 20 69 6e 0a 74 68 |se defin|ed in.th|
|000012e0| 65 20 43 20 68 65 61 64 | 65 72 20 66 69 6c 65 20 |e C head|er file |
|000012f0| 5c 66 69 6c 65 7b 3c 61 | 75 64 69 6f 2e 68 3e 7d |\file{<a|udio.h>}|
|00001300| 20 65 78 63 65 70 74 20 | 74 68 61 74 20 74 68 65 | except |that the|
|00001310| 20 6e 61 6d 65 20 70 72 | 65 66 69 78 0a 5c 73 61 | name pr|efix.\sa|
|00001320| 6d 70 7b 41 4c 5f 7d 20 | 69 73 20 6f 6d 69 74 74 |mp{AL_} |is omitt|
|00001330| 65 64 2e 20 20 52 65 61 | 64 20 74 68 65 20 6d 6f |ed. Rea|d the mo|
|00001340| 64 75 6c 65 20 73 6f 75 | 72 63 65 20 66 6f 72 20 |dule sou|rce for |
|00001350| 61 20 63 6f 6d 70 6c 65 | 74 65 20 6c 69 73 74 20 |a comple|te list |
|00001360| 6f 66 0a 74 68 65 20 64 | 65 66 69 6e 65 64 20 6e |of.the d|efined n|
|00001370| 61 6d 65 73 2e 20 20 53 | 75 67 67 65 73 74 65 64 |ames. S|uggested|
|00001380| 20 75 73 65 3a 0a 0a 5c | 62 63 6f 64 65 5c 62 65 | use:..\|bcode\be|
|00001390| 67 69 6e 7b 76 65 72 62 | 61 74 69 6d 7d 0a 69 6d |gin{verb|atim}.im|
|000013a0| 70 6f 72 74 20 61 6c 0a | 66 72 6f 6d 20 41 4c 20 |port al.|from AL |
|000013b0| 69 6d 70 6f 72 74 20 2a | 0a 5c 65 6e 64 7b 76 65 |import *|.\end{ve|
|000013c0| 72 62 61 74 69 6d 7d 5c | 65 63 6f 64 65 0a |rbatim}\|ecode. |
+--------+-------------------------+-------------------------+--------+--------+