home *** CD-ROM | disk | FTP | other *** search
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: libaifc.tex
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| LaTeX Document (document/latex)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| LaTeX document text
| default
| |
99%
| file
| LaTeX document, ASCII text, with CR line terminators
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/281 LaTeX (Subdocument)
| default
| |
100%
| detectItEasy
| Format: plain text[CR]
| default (weak)
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [R*ch] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 5c 73 65 63 74 69 6f 6e | 7b 53 74 61 6e 64 61 72 |\section|{Standar|
|00000010| 64 20 4d 6f 64 75 6c 65 | 20 5c 73 65 63 74 63 6f |d Module| \sectco|
|00000020| 64 65 7b 61 69 66 63 7d | 7d 0d 5c 73 74 6d 6f 64 |de{aifc}|}.\stmod|
|00000030| 69 6e 64 65 78 7b 61 69 | 66 63 7d 0d 0d 54 68 69 |index{ai|fc}..Thi|
|00000040| 73 20 6d 6f 64 75 6c 65 | 20 70 72 6f 76 69 64 65 |s module| provide|
|00000050| 73 20 73 75 70 70 6f 72 | 74 20 66 6f 72 20 72 65 |s suppor|t for re|
|00000060| 61 64 69 6e 67 20 61 6e | 64 20 77 72 69 74 69 6e |ading an|d writin|
|00000070| 67 20 41 49 46 46 20 61 | 6e 64 20 41 49 46 46 2d |g AIFF a|nd AIFF-|
|00000080| 43 0d 66 69 6c 65 73 2e | 20 20 41 49 46 46 20 69 |C.files.| AIFF i|
|00000090| 73 20 41 75 64 69 6f 20 | 49 6e 74 65 72 63 68 61 |s Audio |Intercha|
|000000a0| 6e 67 65 20 46 69 6c 65 | 20 46 6f 72 6d 61 74 2c |nge File| Format,|
|000000b0| 20 61 20 66 6f 72 6d 61 | 74 20 66 6f 72 20 73 74 | a forma|t for st|
|000000c0| 6f 72 69 6e 67 0d 64 69 | 67 69 74 61 6c 20 61 75 |oring.di|gital au|
|000000d0| 64 69 6f 20 73 61 6d 70 | 6c 65 73 20 69 6e 20 61 |dio samp|les in a|
|000000e0| 20 66 69 6c 65 2e 20 20 | 41 49 46 46 2d 43 20 69 | file. |AIFF-C i|
|000000f0| 73 20 61 20 6e 65 77 65 | 72 20 76 65 72 73 69 6f |s a newe|r versio|
|00000100| 6e 20 6f 66 20 74 68 65 | 0d 66 6f 72 6d 61 74 20 |n of the|.format |
|00000110| 74 68 61 74 20 69 6e 63 | 6c 75 64 65 73 20 74 68 |that inc|ludes th|
|00000120| 65 20 61 62 69 6c 69 74 | 79 20 74 6f 20 63 6f 6d |e abilit|y to com|
|00000130| 70 72 65 73 73 20 74 68 | 65 20 61 75 64 69 6f 20 |press th|e audio |
|00000140| 64 61 74 61 2e 0d 0d 41 | 75 64 69 6f 20 66 69 6c |data...A|udio fil|
|00000150| 65 73 20 68 61 76 65 20 | 61 20 6e 75 6d 62 65 72 |es have |a number|
|00000160| 20 6f 66 20 70 61 72 61 | 6d 65 74 65 72 73 20 74 | of para|meters t|
|00000170| 68 61 74 20 64 65 73 63 | 72 69 62 65 20 74 68 65 |hat desc|ribe the|
|00000180| 20 61 75 64 69 6f 20 64 | 61 74 61 2e 0d 54 68 65 | audio d|ata..The|
|00000190| 20 73 61 6d 70 6c 69 6e | 67 20 72 61 74 65 20 6f | samplin|g rate o|
|000001a0| 72 20 66 72 61 6d 65 20 | 72 61 74 65 20 69 73 20 |r frame |rate is |
|000001b0| 74 68 65 20 6e 75 6d 62 | 65 72 20 6f 66 20 74 69 |the numb|er of ti|
|000001c0| 6d 65 73 20 70 65 72 20 | 73 65 63 6f 6e 64 20 74 |mes per |second t|
|000001d0| 68 65 0d 73 6f 75 6e 64 | 20 69 73 20 73 61 6d 70 |he.sound| is samp|
|000001e0| 6c 65 64 2e 20 20 54 68 | 65 20 6e 75 6d 62 65 72 |led. Th|e number|
|000001f0| 20 6f 66 20 63 68 61 6e | 6e 65 6c 73 20 69 6e 64 | of chan|nels ind|
|00000200| 69 63 61 74 65 20 69 66 | 20 74 68 65 20 61 75 64 |icate if| the aud|
|00000210| 69 6f 20 69 73 0d 6d 6f | 6e 6f 2c 20 73 74 65 72 |io is.mo|no, ster|
|00000220| 65 6f 2c 20 6f 72 20 71 | 75 61 64 72 6f 2e 20 20 |eo, or q|uadro. |
|00000230| 45 61 63 68 20 66 72 61 | 6d 65 20 63 6f 6e 73 69 |Each fra|me consi|
|00000240| 73 74 73 20 6f 66 20 6f | 6e 65 20 73 61 6d 70 6c |sts of o|ne sampl|
|00000250| 65 20 70 65 72 0d 63 68 | 61 6e 6e 65 6c 2e 20 20 |e per.ch|annel. |
|00000260| 54 68 65 20 73 61 6d 70 | 6c 65 20 73 69 7a 65 20 |The samp|le size |
|00000270| 69 73 20 74 68 65 20 73 | 69 7a 65 20 69 6e 20 62 |is the s|ize in b|
|00000280| 79 74 65 73 20 6f 66 20 | 65 61 63 68 20 73 61 6d |ytes of |each sam|
|00000290| 70 6c 65 2e 20 20 54 68 | 75 73 20 61 0d 66 72 61 |ple. Th|us a.fra|
|000002a0| 6d 65 20 63 6f 6e 73 69 | 73 74 73 20 6f 66 20 6e |me consi|sts of n|
|000002b0| 63 68 61 6e 6e 65 6c 73 | 2a 66 72 61 6d 65 73 69 |channels|*framesi|
|000002c0| 7a 65 20 62 79 74 65 73 | 2c 20 61 6e 64 20 61 20 |ze bytes|, and a |
|000002d0| 73 65 63 6f 6e 64 27 73 | 20 77 6f 72 74 68 20 6f |second's| worth o|
|000002e0| 66 0d 61 75 64 69 6f 20 | 63 6f 6e 73 69 73 74 73 |f.audio |consists|
|000002f0| 20 6f 66 20 6e 63 68 61 | 6e 6e 65 6c 73 2a 66 72 | of ncha|nnels*fr|
|00000300| 61 6d 65 73 69 7a 65 2a | 66 72 61 6d 65 72 61 74 |amesize*|framerat|
|00000310| 65 20 62 79 74 65 73 2e | 0d 0d 4d 6f 64 75 6c 65 |e bytes.|..Module|
|00000320| 20 5c 63 6f 64 65 7b 61 | 69 66 63 7d 20 64 65 66 | \code{a|ifc} def|
|00000330| 69 6e 65 73 20 74 68 65 | 20 66 6f 6c 6c 6f 77 69 |ines the| followi|
|00000340| 6e 67 20 66 75 6e 63 74 | 69 6f 6e 3a 0d 0d 5c 72 |ng funct|ion:..\r|
|00000350| 65 6e 65 77 63 6f 6d 6d | 61 6e 64 7b 5c 69 6e 64 |enewcomm|and{\ind|
|00000360| 65 78 73 75 62 69 74 65 | 6d 7d 7b 28 69 6e 20 6d |exsubite|m}{(in m|
|00000370| 6f 64 75 6c 65 20 61 69 | 66 63 29 7d 0d 5c 62 65 |odule ai|fc)}.\be|
|00000380| 67 69 6e 7b 66 75 6e 63 | 64 65 73 63 7d 7b 6f 70 |gin{func|desc}{op|
|00000390| 65 6e 7d 7b 66 69 6c 65 | 5c 2c 20 6d 6f 64 65 7d |en}{file|\, mode}|
|000003a0| 0d 4f 70 65 6e 73 20 61 | 6e 20 41 49 46 46 20 6f |.Opens a|n AIFF o|
|000003b0| 72 20 41 49 46 46 2d 43 | 20 66 69 6c 65 20 61 6e |r AIFF-C| file an|
|000003c0| 64 20 72 65 74 75 72 6e | 73 20 61 6e 20 6f 62 6a |d return|s an obj|
|000003d0| 65 63 74 20 69 6e 73 74 | 61 6e 63 65 20 77 69 74 |ect inst|ance wit|
|000003e0| 68 0d 6d 65 74 68 6f 64 | 73 20 74 68 61 74 20 61 |h.method|s that a|
|000003f0| 72 65 20 64 65 73 63 72 | 69 62 65 64 20 62 65 6c |re descr|ibed bel|
|00000400| 6f 77 2e 20 20 54 68 65 | 20 61 72 67 75 6d 65 6e |ow. The| argumen|
|00000410| 74 20 66 69 6c 65 20 69 | 73 20 65 69 74 68 65 72 |t file i|s either|
|00000420| 20 61 0d 73 74 72 69 6e | 67 20 6e 61 6d 69 6e 67 | a.strin|g naming|
|00000430| 20 61 20 66 69 6c 65 20 | 6f 72 20 61 20 66 69 6c | a file |or a fil|
|00000440| 65 20 6f 62 6a 65 63 74 | 2e 20 20 54 68 65 20 6d |e object|. The m|
|00000450| 6f 64 65 20 69 73 20 65 | 69 74 68 65 72 20 74 68 |ode is e|ither th|
|00000460| 65 20 73 74 72 69 6e 67 | 0d 27 72 27 20 77 68 65 |e string|.'r' whe|
|00000470| 6e 20 74 68 65 20 66 69 | 6c 65 20 6d 75 73 74 20 |n the fi|le must |
|00000480| 62 65 20 6f 70 65 6e 65 | 64 20 66 6f 72 20 72 65 |be opene|d for re|
|00000490| 61 64 69 6e 67 2c 20 6f | 72 20 27 77 27 20 77 68 |ading, o|r 'w' wh|
|000004a0| 65 6e 20 74 68 65 20 66 | 69 6c 65 0d 6d 75 73 74 |en the f|ile.must|
|000004b0| 20 62 65 20 6f 70 65 6e | 65 64 20 66 6f 72 20 77 | be open|ed for w|
|000004c0| 72 69 74 69 6e 67 2e 0d | 5c 65 6e 64 7b 66 75 6e |riting..|\end{fun|
|000004d0| 63 64 65 73 63 7d 0d 0d | 4f 62 6a 65 63 74 73 20 |cdesc}..|Objects |
|000004e0| 72 65 74 75 72 6e 65 64 | 20 62 79 20 5c 63 6f 64 |returned| by \cod|
|000004f0| 65 7b 61 69 66 63 2e 6f | 70 65 6e 28 29 7d 20 77 |e{aifc.o|pen()} w|
|00000500| 68 65 6e 20 61 20 66 69 | 6c 65 20 69 73 20 6f 70 |hen a fi|le is op|
|00000510| 65 6e 65 64 20 66 6f 72 | 0d 72 65 61 64 69 6e 67 |ened for|.reading|
|00000520| 20 68 61 76 65 20 74 68 | 65 20 66 6f 6c 6c 6f 77 | have th|e follow|
|00000530| 69 6e 67 20 6d 65 74 68 | 6f 64 73 3a 0d 0d 5c 72 |ing meth|ods:..\r|
|00000540| 65 6e 65 77 63 6f 6d 6d | 61 6e 64 7b 5c 69 6e 64 |enewcomm|and{\ind|
|00000550| 65 78 73 75 62 69 74 65 | 6d 7d 7b 28 61 69 66 63 |exsubite|m}{(aifc|
|00000560| 20 6f 62 6a 65 63 74 20 | 6d 65 74 68 6f 64 29 7d | object |method)}|
|00000570| 0d 5c 62 65 67 69 6e 7b | 66 75 6e 63 64 65 73 63 |.\begin{|funcdesc|
|00000580| 7d 7b 67 65 74 6e 63 68 | 61 6e 6e 65 6c 73 7d 7b |}{getnch|annels}{|
|00000590| 7d 0d 52 65 74 75 72 6e | 20 74 68 65 20 6e 75 6d |}.Return| the num|
|000005a0| 62 65 72 20 6f 66 20 61 | 75 64 69 6f 20 63 68 61 |ber of a|udio cha|
|000005b0| 6e 6e 65 6c 73 20 28 31 | 20 66 6f 72 20 6d 6f 6e |nnels (1| for mon|
|000005c0| 6f 2c 20 32 20 66 6f 72 | 20 73 74 65 72 65 6f 29 |o, 2 for| stereo)|
|000005d0| 2e 0d 5c 65 6e 64 7b 66 | 75 6e 63 64 65 73 63 7d |..\end{f|uncdesc}|
|000005e0| 0d 0d 5c 62 65 67 69 6e | 7b 66 75 6e 63 64 65 73 |..\begin|{funcdes|
|000005f0| 63 7d 7b 67 65 74 73 61 | 6d 70 77 69 64 74 68 7d |c}{getsa|mpwidth}|
|00000600| 7b 7d 0d 52 65 74 75 72 | 6e 20 74 68 65 20 73 69 |{}.Retur|n the si|
|00000610| 7a 65 20 69 6e 20 62 79 | 74 65 73 20 6f 66 20 69 |ze in by|tes of i|
|00000620| 6e 64 69 76 69 64 75 61 | 6c 20 73 61 6d 70 6c 65 |ndividua|l sample|
|00000630| 73 2e 0d 5c 65 6e 64 7b | 66 75 6e 63 64 65 73 63 |s..\end{|funcdesc|
|00000640| 7d 0d 0d 5c 62 65 67 69 | 6e 7b 66 75 6e 63 64 65 |}..\begi|n{funcde|
|00000650| 73 63 7d 7b 67 65 74 66 | 72 61 6d 65 72 61 74 65 |sc}{getf|ramerate|
|00000660| 7d 7b 7d 0d 52 65 74 75 | 72 6e 20 74 68 65 20 73 |}{}.Retu|rn the s|
|00000670| 61 6d 70 6c 69 6e 67 20 | 72 61 74 65 20 28 6e 75 |ampling |rate (nu|
|00000680| 6d 62 65 72 20 6f 66 20 | 61 75 64 69 6f 20 66 72 |mber of |audio fr|
|00000690| 61 6d 65 73 20 70 65 72 | 20 73 65 63 6f 6e 64 29 |ames per| second)|
|000006a0| 2e 0d 5c 65 6e 64 7b 66 | 75 6e 63 64 65 73 63 7d |..\end{f|uncdesc}|
|000006b0| 0d 0d 5c 62 65 67 69 6e | 7b 66 75 6e 63 64 65 73 |..\begin|{funcdes|
|000006c0| 63 7d 7b 67 65 74 6e 66 | 72 61 6d 65 73 7d 7b 7d |c}{getnf|rames}{}|
|000006d0| 0d 52 65 74 75 72 6e 20 | 74 68 65 20 6e 75 6d 62 |.Return |the numb|
|000006e0| 65 72 20 6f 66 20 61 75 | 64 69 6f 20 66 72 61 6d |er of au|dio fram|
|000006f0| 65 73 20 69 6e 20 74 68 | 65 20 66 69 6c 65 2e 0d |es in th|e file..|
|00000700| 5c 65 6e 64 7b 66 75 6e | 63 64 65 73 63 7d 0d 0d |\end{fun|cdesc}..|
|00000710| 5c 62 65 67 69 6e 7b 66 | 75 6e 63 64 65 73 63 7d |\begin{f|uncdesc}|
|00000720| 7b 67 65 74 63 6f 6d 70 | 74 79 70 65 7d 7b 7d 0d |{getcomp|type}{}.|
|00000730| 52 65 74 75 72 6e 20 61 | 20 66 6f 75 72 2d 63 68 |Return a| four-ch|
|00000740| 61 72 61 63 74 65 72 20 | 73 74 72 69 6e 67 20 64 |aracter |string d|
|00000750| 65 73 63 72 69 62 69 6e | 67 20 74 68 65 20 74 79 |escribin|g the ty|
|00000760| 70 65 20 6f 66 20 63 6f | 6d 70 72 65 73 73 69 6f |pe of co|mpressio|
|00000770| 6e 20 75 73 65 64 0d 69 | 6e 20 74 68 65 20 61 75 |n used.i|n the au|
|00000780| 64 69 6f 20 66 69 6c 65 | 2e 20 20 46 6f 72 20 41 |dio file|. For A|
|00000790| 49 46 46 20 66 69 6c 65 | 73 2c 20 74 68 65 20 72 |IFF file|s, the r|
|000007a0| 65 74 75 72 6e 65 64 20 | 76 61 6c 75 65 20 69 73 |eturned |value is|
|000007b0| 0d 5c 63 6f 64 65 7b 27 | 4e 4f 4e 45 27 7d 2e 0d |.\code{'|NONE'}..|
|000007c0| 5c 65 6e 64 7b 66 75 6e | 63 64 65 73 63 7d 0d 0d |\end{fun|cdesc}..|
|000007d0| 5c 62 65 67 69 6e 7b 66 | 75 6e 63 64 65 73 63 7d |\begin{f|uncdesc}|
|000007e0| 7b 67 65 74 63 6f 6d 70 | 6e 61 6d 65 7d 7b 7d 0d |{getcomp|name}{}.|
|000007f0| 52 65 74 75 72 6e 20 61 | 20 68 75 6d 61 6e 2d 72 |Return a| human-r|
|00000800| 65 61 64 61 62 6c 65 20 | 64 65 73 63 72 69 70 74 |eadable |descript|
|00000810| 69 6f 6e 20 6f 66 20 74 | 68 65 20 74 79 70 65 20 |ion of t|he type |
|00000820| 6f 66 20 63 6f 6d 70 72 | 65 73 73 69 6f 6e 20 75 |of compr|ession u|
|00000830| 73 65 64 20 69 6e 0d 74 | 68 65 20 61 75 64 69 6f |sed in.t|he audio|
|00000840| 20 66 69 6c 65 2e 20 20 | 46 6f 72 20 41 49 46 46 | file. |For AIFF|
|00000850| 20 66 69 6c 65 73 2c 20 | 74 68 65 20 72 65 74 75 | files, |the retu|
|00000860| 72 6e 65 64 20 76 61 6c | 75 65 20 69 73 20 5c 63 |rned val|ue is \c|
|00000870| 6f 64 65 7b 27 6e 6f 74 | 0d 63 6f 6d 70 72 65 73 |ode{'not|.compres|
|00000880| 73 65 64 27 7d 2e 0d 5c | 65 6e 64 7b 66 75 6e 63 |sed'}..\|end{func|
|00000890| 64 65 73 63 7d 0d 0d 5c | 62 65 67 69 6e 7b 66 75 |desc}..\|begin{fu|
|000008a0| 6e 63 64 65 73 63 7d 7b | 67 65 74 70 61 72 61 6d |ncdesc}{|getparam|
|000008b0| 73 7d 7b 7d 0d 52 65 74 | 75 72 6e 20 61 20 74 75 |s}{}.Ret|urn a tu|
|000008c0| 70 6c 65 20 63 6f 6e 73 | 69 73 74 69 6e 67 20 6f |ple cons|isting o|
|000008d0| 66 20 61 6c 6c 20 6f 66 | 20 74 68 65 20 61 62 6f |f all of| the abo|
|000008e0| 76 65 20 76 61 6c 75 65 | 73 20 69 6e 20 74 68 65 |ve value|s in the|
|000008f0| 20 61 62 6f 76 65 0d 6f | 72 64 65 72 2e 0d 5c 65 | above.o|rder..\e|
|00000900| 6e 64 7b 66 75 6e 63 64 | 65 73 63 7d 0d 0d 5c 62 |nd{funcd|esc}..\b|
|00000910| 65 67 69 6e 7b 66 75 6e | 63 64 65 73 63 7d 7b 67 |egin{fun|cdesc}{g|
|00000920| 65 74 6d 61 72 6b 65 72 | 73 7d 7b 7d 0d 52 65 74 |etmarker|s}{}.Ret|
|00000930| 75 72 6e 20 61 20 6c 69 | 73 74 20 6f 66 20 6d 61 |urn a li|st of ma|
|00000940| 72 6b 65 72 73 20 69 6e | 20 74 68 65 20 61 75 64 |rkers in| the aud|
|00000950| 69 6f 20 66 69 6c 65 2e | 20 20 41 20 6d 61 72 6b |io file.| A mark|
|00000960| 65 72 20 63 6f 6e 73 69 | 73 74 73 20 6f 66 20 61 |er consi|sts of a|
|00000970| 0d 74 75 70 6c 65 20 6f | 66 20 74 68 72 65 65 20 |.tuple o|f three |
|00000980| 65 6c 65 6d 65 6e 74 73 | 2e 20 20 54 68 65 20 66 |elements|. The f|
|00000990| 69 72 73 74 20 69 73 20 | 74 68 65 20 6d 61 72 6b |irst is |the mark|
|000009a0| 20 49 44 20 28 61 6e 20 | 69 6e 74 65 67 65 72 29 | ID (an |integer)|
|000009b0| 2c 20 74 68 65 0d 73 65 | 63 6f 6e 64 20 69 73 20 |, the.se|cond is |
|000009c0| 74 68 65 20 6d 61 72 6b | 20 70 6f 73 69 74 69 6f |the mark| positio|
|000009d0| 6e 20 69 6e 20 66 72 61 | 6d 65 73 20 66 72 6f 6d |n in fra|mes from|
|000009e0| 20 74 68 65 20 62 65 67 | 69 6e 6e 69 6e 67 20 6f | the beg|inning o|
|000009f0| 66 20 74 68 65 20 64 61 | 74 61 0d 28 61 6e 20 69 |f the da|ta.(an i|
|00000a00| 6e 74 65 67 65 72 29 2c | 20 74 68 65 20 74 68 69 |nteger),| the thi|
|00000a10| 72 64 20 69 73 20 74 68 | 65 20 6e 61 6d 65 20 6f |rd is th|e name o|
|00000a20| 66 20 74 68 65 20 6d 61 | 72 6b 20 28 61 20 73 74 |f the ma|rk (a st|
|00000a30| 72 69 6e 67 29 2e 0d 5c | 65 6e 64 7b 66 75 6e 63 |ring)..\|end{func|
|00000a40| 64 65 73 63 7d 0d 0d 5c | 62 65 67 69 6e 7b 66 75 |desc}..\|begin{fu|
|00000a50| 6e 63 64 65 73 63 7d 7b | 67 65 74 6d 61 72 6b 7d |ncdesc}{|getmark}|
|00000a60| 7b 69 64 7d 0d 52 65 74 | 75 72 6e 20 74 68 65 20 |{id}.Ret|urn the |
|00000a70| 74 75 70 6c 65 20 61 73 | 20 64 65 73 63 72 69 62 |tuple as| describ|
|00000a80| 65 64 20 69 6e 20 5c 63 | 6f 64 65 7b 67 65 74 6d |ed in \c|ode{getm|
|00000a90| 61 72 6b 65 72 73 7d 20 | 66 6f 72 20 74 68 65 20 |arkers} |for the |
|00000aa0| 6d 61 72 6b 20 77 69 74 | 68 0d 74 68 65 20 67 69 |mark wit|h.the gi|
|00000ab0| 76 65 6e 20 69 64 2e 0d | 5c 65 6e 64 7b 66 75 6e |ven id..|\end{fun|
|00000ac0| 63 64 65 73 63 7d 0d 0d | 5c 62 65 67 69 6e 7b 66 |cdesc}..|\begin{f|
|00000ad0| 75 6e 63 64 65 73 63 7d | 7b 72 65 61 64 66 72 61 |uncdesc}|{readfra|
|00000ae0| 6d 65 73 7d 7b 6e 66 72 | 61 6d 65 73 7d 0d 52 65 |mes}{nfr|ames}.Re|
|00000af0| 61 64 20 61 6e 64 20 72 | 65 74 75 72 6e 20 74 68 |ad and r|eturn th|
|00000b00| 65 20 6e 65 78 74 20 6e | 66 72 61 6d 65 73 20 66 |e next n|frames f|
|00000b10| 72 61 6d 65 73 20 66 72 | 6f 6d 20 74 68 65 20 61 |rames fr|om the a|
|00000b20| 75 64 69 6f 20 66 69 6c | 65 2e 20 20 54 68 65 0d |udio fil|e. The.|
|00000b30| 72 65 74 75 72 6e 65 64 | 20 64 61 74 61 20 69 73 |returned| data is|
|00000b40| 20 61 20 73 74 72 69 6e | 67 20 63 6f 6e 74 61 69 | a strin|g contai|
|00000b50| 6e 69 6e 67 20 66 6f 72 | 20 65 61 63 68 20 66 72 |ning for| each fr|
|00000b60| 61 6d 65 20 74 68 65 20 | 75 6e 63 6f 6d 70 72 65 |ame the |uncompre|
|00000b70| 73 73 65 64 0d 73 61 6d | 70 6c 65 73 20 6f 66 20 |ssed.sam|ples of |
|00000b80| 61 6c 6c 20 63 68 61 6e | 6e 65 6c 73 2e 0d 5c 65 |all chan|nels..\e|
|00000b90| 6e 64 7b 66 75 6e 63 64 | 65 73 63 7d 0d 0d 5c 62 |nd{funcd|esc}..\b|
|00000ba0| 65 67 69 6e 7b 66 75 6e | 63 64 65 73 63 7d 7b 72 |egin{fun|cdesc}{r|
|00000bb0| 65 77 69 6e 64 7d 7b 7d | 0d 52 65 77 69 6e 64 20 |ewind}{}|.Rewind |
|00000bc0| 74 68 65 20 72 65 61 64 | 20 70 6f 69 6e 74 65 72 |the read| pointer|
|00000bd0| 2e 20 20 54 68 65 20 6e | 65 78 74 20 5c 63 6f 64 |. The n|ext \cod|
|00000be0| 65 7b 72 65 61 64 66 72 | 61 6d 65 73 7d 20 77 69 |e{readfr|ames} wi|
|00000bf0| 6c 6c 20 73 74 61 72 74 | 20 66 72 6f 6d 0d 74 68 |ll start| from.th|
|00000c00| 65 20 62 65 67 69 6e 6e | 69 6e 67 2e 0d 5c 65 6e |e beginn|ing..\en|
|00000c10| 64 7b 66 75 6e 63 64 65 | 73 63 7d 0d 0d 5c 62 65 |d{funcde|sc}..\be|
|00000c20| 67 69 6e 7b 66 75 6e 63 | 64 65 73 63 7d 7b 73 65 |gin{func|desc}{se|
|00000c30| 74 70 6f 73 7d 7b 70 6f | 73 7d 0d 53 65 65 6b 20 |tpos}{po|s}.Seek |
|00000c40| 74 6f 20 74 68 65 20 73 | 70 65 63 69 66 69 65 64 |to the s|pecified|
|00000c50| 20 66 72 61 6d 65 20 6e | 75 6d 62 65 72 2e 0d 5c | frame n|umber..\|
|00000c60| 65 6e 64 7b 66 75 6e 63 | 64 65 73 63 7d 0d 0d 5c |end{func|desc}..\|
|00000c70| 62 65 67 69 6e 7b 66 75 | 6e 63 64 65 73 63 7d 7b |begin{fu|ncdesc}{|
|00000c80| 74 65 6c 6c 7d 7b 7d 0d | 52 65 74 75 72 6e 20 74 |tell}{}.|Return t|
|00000c90| 68 65 20 63 75 72 72 65 | 6e 74 20 66 72 61 6d 65 |he curre|nt frame|
|00000ca0| 20 6e 75 6d 62 65 72 2e | 0d 5c 65 6e 64 7b 66 75 | number.|.\end{fu|
|00000cb0| 6e 63 64 65 73 63 7d 0d | 0d 5c 62 65 67 69 6e 7b |ncdesc}.|.\begin{|
|00000cc0| 66 75 6e 63 64 65 73 63 | 7d 7b 63 6c 6f 73 65 7d |funcdesc|}{close}|
|00000cd0| 7b 7d 0d 43 6c 6f 73 65 | 20 74 68 65 20 41 49 46 |{}.Close| the AIF|
|00000ce0| 46 20 66 69 6c 65 2e 20 | 20 41 66 74 65 72 20 63 |F file. | After c|
|00000cf0| 61 6c 6c 69 6e 67 20 74 | 68 69 73 20 6d 65 74 68 |alling t|his meth|
|00000d00| 6f 64 2c 20 74 68 65 20 | 6f 62 6a 65 63 74 20 63 |od, the |object c|
|00000d10| 61 6e 20 6e 6f 0d 6c 6f | 6e 67 65 72 20 62 65 20 |an no.lo|nger be |
|00000d20| 75 73 65 64 2e 0d 5c 65 | 6e 64 7b 66 75 6e 63 64 |used..\e|nd{funcd|
|00000d30| 65 73 63 7d 0d 0d 4f 62 | 6a 65 63 74 73 20 72 65 |esc}..Ob|jects re|
|00000d40| 74 75 72 6e 65 64 20 62 | 79 20 5c 63 6f 64 65 7b |turned b|y \code{|
|00000d50| 61 69 66 63 2e 6f 70 65 | 6e 28 29 7d 20 77 68 65 |aifc.ope|n()} whe|
|00000d60| 6e 20 61 20 66 69 6c 65 | 20 69 73 20 6f 70 65 6e |n a file| is open|
|00000d70| 65 64 20 66 6f 72 0d 77 | 72 69 74 69 6e 67 20 68 |ed for.w|riting h|
|00000d80| 61 76 65 20 61 6c 6c 20 | 74 68 65 20 61 62 6f 76 |ave all |the abov|
|00000d90| 65 20 6d 65 74 68 6f 64 | 73 2c 20 65 78 63 65 70 |e method|s, excep|
|00000da0| 74 20 66 6f 72 20 5c 63 | 6f 64 65 7b 72 65 61 64 |t for \c|ode{read|
|00000db0| 66 72 61 6d 65 73 7d 20 | 61 6e 64 0d 5c 63 6f 64 |frames} |and.\cod|
|00000dc0| 65 7b 73 65 74 70 6f 73 | 7d 2e 20 20 49 6e 20 61 |e{setpos|}. In a|
|00000dd0| 64 64 69 74 69 6f 6e 20 | 74 68 65 20 66 6f 6c 6c |ddition |the foll|
|00000de0| 6f 77 69 6e 67 20 6d 65 | 74 68 6f 64 73 20 65 78 |owing me|thods ex|
|00000df0| 69 73 74 2e 20 20 54 68 | 65 0d 5c 63 6f 64 65 7b |ist. Th|e.\code{|
|00000e00| 67 65 74 7d 20 6d 65 74 | 68 6f 64 73 20 63 61 6e |get} met|hods can|
|00000e10| 20 6f 6e 6c 79 20 62 65 | 20 63 61 6c 6c 65 64 20 | only be| called |
|00000e20| 61 66 74 65 72 20 74 68 | 65 20 63 6f 72 72 65 73 |after th|e corres|
|00000e30| 70 6f 6e 64 69 6e 67 0d | 5c 63 6f 64 65 7b 73 65 |ponding.|\code{se|
|00000e40| 74 7d 20 6d 65 74 68 6f | 64 73 20 68 61 76 65 20 |t} metho|ds have |
|00000e50| 62 65 65 6e 20 63 61 6c | 6c 65 64 2e 20 20 42 65 |been cal|led. Be|
|00000e60| 66 6f 72 65 20 74 68 65 | 20 66 69 72 73 74 0d 5c |fore the| first.\|
|00000e70| 63 6f 64 65 7b 77 72 69 | 74 65 66 72 61 6d 65 73 |code{wri|teframes|
|00000e80| 7d 20 6f 72 20 5c 63 6f | 64 65 7b 77 72 69 74 65 |} or \co|de{write|
|00000e90| 66 72 61 6d 65 73 72 61 | 77 7d 2c 20 61 6c 6c 20 |framesra|w}, all |
|00000ea0| 70 61 72 61 6d 65 74 65 | 72 73 20 65 78 63 65 70 |paramete|rs excep|
|00000eb0| 74 20 66 6f 72 0d 74 68 | 65 20 6e 75 6d 62 65 72 |t for.th|e number|
|00000ec0| 20 6f 66 20 66 72 61 6d | 65 73 20 6d 75 73 74 20 | of fram|es must |
|00000ed0| 62 65 20 66 69 6c 6c 65 | 64 20 69 6e 2e 0d 0d 5c |be fille|d in...\|
|00000ee0| 62 65 67 69 6e 7b 66 75 | 6e 63 64 65 73 63 7d 7b |begin{fu|ncdesc}{|
|00000ef0| 61 69 66 66 7d 7b 7d 0d | 43 72 65 61 74 65 20 61 |aiff}{}.|Create a|
|00000f00| 6e 20 41 49 46 46 20 66 | 69 6c 65 2e 20 20 54 68 |n AIFF f|ile. Th|
|00000f10| 65 20 64 65 66 61 75 6c | 74 20 69 73 20 74 68 61 |e defaul|t is tha|
|00000f20| 74 20 61 6e 20 41 49 46 | 46 2d 43 20 66 69 6c 65 |t an AIF|F-C file|
|00000f30| 20 69 73 20 63 72 65 61 | 74 65 64 2c 0d 75 6e 6c | is crea|ted,.unl|
|00000f40| 65 73 73 20 74 68 65 20 | 6e 61 6d 65 20 6f 66 20 |ess the |name of |
|00000f50| 74 68 65 20 66 69 6c 65 | 20 65 6e 64 73 20 69 6e |the file| ends in|
|00000f60| 20 27 2e 61 69 66 66 27 | 20 69 6e 20 77 68 69 63 | '.aiff'| in whic|
|00000f70| 68 20 63 61 73 65 20 74 | 68 65 20 64 65 66 61 75 |h case t|he defau|
|00000f80| 6c 74 0d 69 73 20 61 6e | 20 41 49 46 46 20 66 69 |lt.is an| AIFF fi|
|00000f90| 6c 65 2e 0d 5c 65 6e 64 | 7b 66 75 6e 63 64 65 73 |le..\end|{funcdes|
|00000fa0| 63 7d 0d 0d 5c 62 65 67 | 69 6e 7b 66 75 6e 63 64 |c}..\beg|in{funcd|
|00000fb0| 65 73 63 7d 7b 61 69 66 | 63 7d 7b 7d 0d 43 72 65 |esc}{aif|c}{}.Cre|
|00000fc0| 61 74 65 20 61 6e 20 41 | 49 46 46 2d 43 20 66 69 |ate an A|IFF-C fi|
|00000fd0| 6c 65 2e 20 20 54 68 65 | 20 64 65 66 61 75 6c 74 |le. The| default|
|00000fe0| 20 69 73 20 74 68 61 74 | 20 61 6e 20 41 49 46 46 | is that| an AIFF|
|00000ff0| 2d 43 20 66 69 6c 65 20 | 69 73 20 63 72 65 61 74 |-C file |is creat|
|00001000| 65 64 2c 0d 75 6e 6c 65 | 73 73 20 74 68 65 20 6e |ed,.unle|ss the n|
|00001010| 61 6d 65 20 6f 66 20 74 | 68 65 20 66 69 6c 65 20 |ame of t|he file |
|00001020| 65 6e 64 73 20 69 6e 20 | 27 2e 61 69 66 66 27 20 |ends in |'.aiff' |
|00001030| 69 6e 20 77 68 69 63 68 | 20 63 61 73 65 20 74 68 |in which| case th|
|00001040| 65 20 64 65 66 61 75 6c | 74 0d 69 73 20 61 6e 20 |e defaul|t.is an |
|00001050| 41 49 46 46 20 66 69 6c | 65 2e 0d 5c 65 6e 64 7b |AIFF fil|e..\end{|
|00001060| 66 75 6e 63 64 65 73 63 | 7d 0d 0d 5c 62 65 67 69 |funcdesc|}..\begi|
|00001070| 6e 7b 66 75 6e 63 64 65 | 73 63 7d 7b 73 65 74 6e |n{funcde|sc}{setn|
|00001080| 63 68 61 6e 6e 65 6c 73 | 7d 7b 6e 63 68 61 6e 6e |channels|}{nchann|
|00001090| 65 6c 73 7d 0d 53 70 65 | 63 69 66 79 20 74 68 65 |els}.Spe|cify the|
|000010a0| 20 6e 75 6d 62 65 72 20 | 6f 66 20 63 68 61 6e 6e | number |of chann|
|000010b0| 65 6c 73 20 69 6e 20 74 | 68 65 20 61 75 64 69 6f |els in t|he audio|
|000010c0| 20 66 69 6c 65 2e 0d 5c | 65 6e 64 7b 66 75 6e 63 | file..\|end{func|
|000010d0| 64 65 73 63 7d 0d 0d 5c | 62 65 67 69 6e 7b 66 75 |desc}..\|begin{fu|
|000010e0| 6e 63 64 65 73 63 7d 7b | 73 65 74 73 61 6d 70 77 |ncdesc}{|setsampw|
|000010f0| 69 64 74 68 7d 7b 77 69 | 64 74 68 7d 0d 53 70 65 |idth}{wi|dth}.Spe|
|00001100| 63 69 66 79 20 74 68 65 | 20 73 69 7a 65 20 69 6e |cify the| size in|
|00001110| 20 62 79 74 65 73 20 6f | 66 20 61 75 64 69 6f 20 | bytes o|f audio |
|00001120| 73 61 6d 70 6c 65 73 2e | 0d 5c 65 6e 64 7b 66 75 |samples.|.\end{fu|
|00001130| 6e 63 64 65 73 63 7d 0d | 0d 5c 62 65 67 69 6e 7b |ncdesc}.|.\begin{|
|00001140| 66 75 6e 63 64 65 73 63 | 7d 7b 73 65 74 66 72 61 |funcdesc|}{setfra|
|00001150| 6d 65 72 61 74 65 7d 7b | 72 61 74 65 7d 0d 53 70 |merate}{|rate}.Sp|
|00001160| 65 63 69 66 79 20 74 68 | 65 20 73 61 6d 70 6c 69 |ecify th|e sampli|
|00001170| 6e 67 20 66 72 65 71 75 | 65 6e 63 79 20 69 6e 20 |ng frequ|ency in |
|00001180| 66 72 61 6d 65 73 20 70 | 65 72 20 73 65 63 6f 6e |frames p|er secon|
|00001190| 64 2e 0d 5c 65 6e 64 7b | 66 75 6e 63 64 65 73 63 |d..\end{|funcdesc|
|000011a0| 7d 0d 0d 5c 62 65 67 69 | 6e 7b 66 75 6e 63 64 65 |}..\begi|n{funcde|
|000011b0| 73 63 7d 7b 73 65 74 6e | 66 72 61 6d 65 73 7d 7b |sc}{setn|frames}{|
|000011c0| 6e 66 72 61 6d 65 73 7d | 0d 53 70 65 63 69 66 79 |nframes}|.Specify|
|000011d0| 20 74 68 65 20 6e 75 6d | 62 65 72 20 6f 66 20 66 | the num|ber of f|
|000011e0| 72 61 6d 65 73 20 74 68 | 61 74 20 61 72 65 20 74 |rames th|at are t|
|000011f0| 6f 20 62 65 20 77 72 69 | 74 74 65 6e 20 74 6f 20 |o be wri|tten to |
|00001200| 74 68 65 20 61 75 64 69 | 6f 20 66 69 6c 65 2e 0d |the audi|o file..|
|00001210| 49 66 20 74 68 69 73 20 | 70 61 72 61 6d 65 74 65 |If this |paramete|
|00001220| 72 20 69 73 20 6e 6f 74 | 20 73 65 74 2c 20 6f 72 |r is not| set, or|
|00001230| 20 6e 6f 74 20 73 65 74 | 20 63 6f 72 72 65 63 74 | not set| correct|
|00001240| 6c 79 2c 20 74 68 65 20 | 66 69 6c 65 20 6e 65 65 |ly, the |file nee|
|00001250| 64 73 20 74 6f 0d 73 75 | 70 70 6f 72 74 20 73 65 |ds to.su|pport se|
|00001260| 65 6b 69 6e 67 2e 0d 5c | 65 6e 64 7b 66 75 6e 63 |eking..\|end{func|
|00001270| 64 65 73 63 7d 0d 0d 5c | 62 65 67 69 6e 7b 66 75 |desc}..\|begin{fu|
|00001280| 6e 63 64 65 73 63 7d 7b | 73 65 74 63 6f 6d 70 74 |ncdesc}{|setcompt|
|00001290| 79 70 65 7d 7b 74 79 70 | 65 5c 2c 20 6e 61 6d 65 |ype}{typ|e\, name|
|000012a0| 7d 0d 53 70 65 63 69 66 | 79 20 74 68 65 20 63 6f |}.Specif|y the co|
|000012b0| 6d 70 72 65 73 73 69 6f | 6e 20 74 79 70 65 2e 20 |mpressio|n type. |
|000012c0| 20 49 66 20 6e 6f 74 20 | 73 70 65 63 69 66 69 65 | If not |specifie|
|000012d0| 64 2c 20 74 68 65 20 61 | 75 64 69 6f 20 64 61 74 |d, the a|udio dat|
|000012e0| 61 20 77 69 6c 6c 0d 6e | 6f 74 20 62 65 20 63 6f |a will.n|ot be co|
|000012f0| 6d 70 72 65 73 73 65 64 | 2e 20 20 49 6e 20 41 49 |mpressed|. In AI|
|00001300| 46 46 20 66 69 6c 65 73 | 2c 20 63 6f 6d 70 72 65 |FF files|, compre|
|00001310| 73 73 69 6f 6e 20 69 73 | 20 6e 6f 74 20 70 6f 73 |ssion is| not pos|
|00001320| 73 69 62 6c 65 2e 20 20 | 54 68 65 0d 6e 61 6d 65 |sible. |The.name|
|00001330| 20 70 61 72 61 6d 65 74 | 65 72 20 73 68 6f 75 6c | paramet|er shoul|
|00001340| 64 20 62 65 20 61 20 68 | 75 6d 61 6e 2d 72 65 61 |d be a h|uman-rea|
|00001350| 64 61 62 6c 65 20 64 65 | 73 63 72 69 70 74 69 6f |dable de|scriptio|
|00001360| 6e 20 6f 66 20 74 68 65 | 0d 63 6f 6d 70 72 65 73 |n of the|.compres|
|00001370| 73 69 6f 6e 20 74 79 70 | 65 2c 20 74 68 65 20 74 |sion typ|e, the t|
|00001380| 79 70 65 20 70 61 72 61 | 6d 65 74 65 72 20 73 68 |ype para|meter sh|
|00001390| 6f 75 6c 64 20 62 65 20 | 61 20 66 6f 75 72 2d 63 |ould be |a four-c|
|000013a0| 68 61 72 61 63 74 65 72 | 0d 73 74 72 69 6e 67 2e |haracter|.string.|
|000013b0| 20 20 43 75 72 72 65 6e | 74 6c 79 20 74 68 65 20 | Curren|tly the |
|000013c0| 66 6f 6c 6c 6f 77 69 6e | 67 20 63 6f 6d 70 72 65 |followin|g compre|
|000013d0| 73 73 69 6f 6e 20 74 79 | 70 65 73 20 61 72 65 20 |ssion ty|pes are |
|000013e0| 73 75 70 70 6f 72 74 65 | 64 3a 0d 4e 4f 4e 45 2c |supporte|d:.NONE,|
|000013f0| 20 55 4c 41 57 2c 20 41 | 4c 41 57 2c 20 47 37 32 | ULAW, A|LAW, G72|
|00001400| 32 2e 0d 5c 65 6e 64 7b | 66 75 6e 63 64 65 73 63 |2..\end{|funcdesc|
|00001410| 7d 0d 0d 5c 62 65 67 69 | 6e 7b 66 75 6e 63 64 65 |}..\begi|n{funcde|
|00001420| 73 63 7d 7b 73 65 74 70 | 61 72 61 6d 73 7d 7b 28 |sc}{setp|arams}{(|
|00001430| 6e 63 68 61 6e 6e 65 6c | 73 5c 2c 20 73 61 6d 70 |nchannel|s\, samp|
|00001440| 77 69 64 74 68 5c 2c 20 | 66 72 61 6d 65 72 61 74 |width\, |framerat|
|00001450| 65 5c 2c 20 63 6f 6d 70 | 74 79 70 65 5c 2c 20 63 |e\, comp|type\, c|
|00001460| 6f 6d 70 6e 61 6d 65 29 | 7d 0d 53 65 74 20 61 6c |ompname)|}.Set al|
|00001470| 6c 20 74 68 65 20 61 62 | 6f 76 65 20 70 61 72 61 |l the ab|ove para|
|00001480| 6d 65 74 65 72 73 20 61 | 74 20 6f 6e 63 65 2e 20 |meters a|t once. |
|00001490| 20 54 68 65 20 61 72 67 | 75 6d 65 6e 74 20 69 73 | The arg|ument is|
|000014a0| 20 61 20 74 75 70 6c 65 | 0d 63 6f 6e 73 69 73 74 | a tuple|.consist|
|000014b0| 69 6e 67 20 6f 66 20 74 | 68 65 20 76 61 72 69 6f |ing of t|he vario|
|000014c0| 75 73 20 70 61 72 61 6d | 65 74 65 72 73 2e 20 20 |us param|eters. |
|000014d0| 54 68 69 73 20 6d 65 61 | 6e 73 20 74 68 61 74 20 |This mea|ns that |
|000014e0| 69 74 20 69 73 20 70 6f | 73 73 69 62 6c 65 0d 74 |it is po|ssible.t|
|000014f0| 6f 20 75 73 65 20 74 68 | 65 20 72 65 73 75 6c 74 |o use th|e result|
|00001500| 20 6f 66 20 61 20 5c 63 | 6f 64 65 7b 67 65 74 70 | of a \c|ode{getp|
|00001510| 61 72 61 6d 73 7d 20 63 | 61 6c 6c 20 61 73 20 61 |arams} c|all as a|
|00001520| 72 67 75 6d 65 6e 74 20 | 74 6f 0d 5c 63 6f 64 65 |rgument |to.\code|
|00001530| 7b 73 65 74 70 61 72 61 | 6d 73 7d 2e 0d 5c 65 6e |{setpara|ms}..\en|
|00001540| 64 7b 66 75 6e 63 64 65 | 73 63 7d 0d 0d 5c 62 65 |d{funcde|sc}..\be|
|00001550| 67 69 6e 7b 66 75 6e 63 | 64 65 73 63 7d 7b 73 65 |gin{func|desc}{se|
|00001560| 74 6d 61 72 6b 7d 7b 69 | 64 5c 2c 20 70 6f 73 5c |tmark}{i|d\, pos\|
|00001570| 2c 20 6e 61 6d 65 7d 0d | 41 64 64 20 61 20 6d 61 |, name}.|Add a ma|
|00001580| 72 6b 20 77 69 74 68 20 | 74 68 65 20 67 69 76 65 |rk with |the give|
|00001590| 6e 20 69 64 20 28 6c 61 | 72 67 65 72 20 74 68 61 |n id (la|rger tha|
|000015a0| 6e 20 30 29 2c 20 61 6e | 64 20 74 68 65 20 67 69 |n 0), an|d the gi|
|000015b0| 76 65 6e 20 6e 61 6d 65 | 20 61 74 0d 74 68 65 20 |ven name| at.the |
|000015c0| 67 69 76 65 6e 20 70 6f | 73 69 74 69 6f 6e 2e 20 |given po|sition. |
|000015d0| 20 54 68 69 73 20 6d 65 | 74 68 6f 64 20 63 61 6e | This me|thod can|
|000015e0| 20 62 65 20 63 61 6c 6c | 65 64 20 61 74 20 61 6e | be call|ed at an|
|000015f0| 79 20 74 69 6d 65 20 62 | 65 66 6f 72 65 0d 5c 63 |y time b|efore.\c|
|00001600| 6f 64 65 7b 63 6c 6f 73 | 65 7d 2e 0d 5c 65 6e 64 |ode{clos|e}..\end|
|00001610| 7b 66 75 6e 63 64 65 73 | 63 7d 0d 0d 5c 62 65 67 |{funcdes|c}..\beg|
|00001620| 69 6e 7b 66 75 6e 63 64 | 65 73 63 7d 7b 74 65 6c |in{funcd|esc}{tel|
|00001630| 6c 7d 7b 7d 0d 52 65 74 | 75 72 6e 20 74 68 65 20 |l}{}.Ret|urn the |
|00001640| 63 75 72 72 65 6e 74 20 | 77 72 69 74 65 20 70 6f |current |write po|
|00001650| 73 69 74 69 6f 6e 20 69 | 6e 20 74 68 65 20 6f 75 |sition i|n the ou|
|00001660| 74 70 75 74 20 66 69 6c | 65 2e 20 20 55 73 65 66 |tput fil|e. Usef|
|00001670| 75 6c 20 69 6e 0d 63 6f | 6d 62 69 6e 61 74 69 6f |ul in.co|mbinatio|
|00001680| 6e 20 77 69 74 68 20 5c | 63 6f 64 65 7b 73 65 74 |n with \|code{set|
|00001690| 6d 61 72 6b 7d 2e 0d 5c | 65 6e 64 7b 66 75 6e 63 |mark}..\|end{func|
|000016a0| 64 65 73 63 7d 0d 0d 5c | 62 65 67 69 6e 7b 66 75 |desc}..\|begin{fu|
|000016b0| 6e 63 64 65 73 63 7d 7b | 77 72 69 74 65 66 72 61 |ncdesc}{|writefra|
|000016c0| 6d 65 73 7d 7b 64 61 74 | 61 7d 0d 57 72 69 74 65 |mes}{dat|a}.Write|
|000016d0| 20 64 61 74 61 20 74 6f | 20 74 68 65 20 6f 75 74 | data to| the out|
|000016e0| 70 75 74 20 66 69 6c 65 | 2e 20 20 54 68 69 73 20 |put file|. This |
|000016f0| 6d 65 74 68 6f 64 20 63 | 61 6e 20 6f 6e 6c 79 20 |method c|an only |
|00001700| 62 65 20 63 61 6c 6c 65 | 64 20 61 66 74 65 72 0d |be calle|d after.|
|00001710| 74 68 65 20 61 75 64 69 | 6f 20 66 69 6c 65 20 70 |the audi|o file p|
|00001720| 61 72 61 6d 65 74 65 72 | 73 20 68 61 76 65 20 62 |arameter|s have b|
|00001730| 65 65 6e 20 73 65 74 2e | 0d 5c 65 6e 64 7b 66 75 |een set.|.\end{fu|
|00001740| 6e 63 64 65 73 63 7d 0d | 0d 5c 62 65 67 69 6e 7b |ncdesc}.|.\begin{|
|00001750| 66 75 6e 63 64 65 73 63 | 7d 7b 77 72 69 74 65 66 |funcdesc|}{writef|
|00001760| 72 61 6d 65 73 72 61 77 | 7d 7b 64 61 74 61 7d 0d |ramesraw|}{data}.|
|00001770| 4c 69 6b 65 20 5c 63 6f | 64 65 7b 77 72 69 74 65 |Like \co|de{write|
|00001780| 66 72 61 6d 65 73 7d 2c | 20 65 78 63 65 70 74 20 |frames},| except |
|00001790| 74 68 61 74 20 74 68 65 | 20 68 65 61 64 65 72 20 |that the| header |
|000017a0| 6f 66 20 74 68 65 20 61 | 75 64 69 6f 20 66 69 6c |of the a|udio fil|
|000017b0| 65 20 69 73 0d 6e 6f 74 | 20 75 70 64 61 74 65 64 |e is.not| updated|
|000017c0| 2e 0d 5c 65 6e 64 7b 66 | 75 6e 63 64 65 73 63 7d |..\end{f|uncdesc}|
|000017d0| 0d 0d 5c 62 65 67 69 6e | 7b 66 75 6e 63 64 65 73 |..\begin|{funcdes|
|000017e0| 63 7d 7b 63 6c 6f 73 65 | 7d 7b 7d 0d 43 6c 6f 73 |c}{close|}{}.Clos|
|000017f0| 65 20 74 68 65 20 41 49 | 46 46 20 66 69 6c 65 2e |e the AI|FF file.|
|00001800| 20 20 54 68 65 20 68 65 | 61 64 65 72 20 6f 66 20 | The he|ader of |
|00001810| 74 68 65 20 66 69 6c 65 | 20 69 73 20 75 70 64 61 |the file| is upda|
|00001820| 74 65 64 20 74 6f 20 72 | 65 66 6c 65 63 74 20 74 |ted to r|eflect t|
|00001830| 68 65 0d 61 63 74 75 61 | 6c 20 73 69 7a 65 20 6f |he.actua|l size o|
|00001840| 66 20 74 68 65 20 61 75 | 64 69 6f 20 64 61 74 61 |f the au|dio data|
|00001850| 20 41 66 74 65 72 20 63 | 61 6c 6c 69 6e 67 20 74 | After c|alling t|
|00001860| 68 69 73 20 6d 65 74 68 | 6f 64 2c 20 74 68 65 20 |his meth|od, the |
|00001870| 6f 62 6a 65 63 74 0d 63 | 61 6e 20 6e 6f 20 6c 6f |object.c|an no lo|
|00001880| 6e 67 65 72 20 62 65 20 | 75 73 65 64 2e 0d 5c 65 |nger be |used..\e|
|00001890| 6e 64 7b 66 75 6e 63 64 | 65 73 63 7d 0d |nd{funcd|esc}. |
+--------+-------------------------+-------------------------+--------+--------+