home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: SHell self-extracting ARchive
(archive/shar).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| SHell self-extracting ARchive (archive/shar)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| ASCII text
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/329 Shell Archive Format
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 4e 65 77 73 67 72 6f 75 | 70 73 3a 20 63 6f 6d 70 |Newsgrou|ps: comp|
|00000010| 2e 73 6f 75 72 63 65 73 | 2e 6d 69 73 63 0a 46 72 |.sources|.misc.Fr|
|00000020| 6f 6d 3a 20 70 77 6f 6c | 66 65 40 62 6c 69 7a 7a |om: pwol|fe@blizz|
|00000030| 61 72 64 2e 6b 61 69 2e | 63 6f 6d 20 28 50 61 74 |ard.kai.|com (Pat|
|00000040| 72 69 63 6b 20 57 6f 6c | 66 65 29 0a 53 75 62 6a |rick Wol|fe).Subj|
|00000050| 65 63 74 3a 20 20 76 32 | 38 69 30 38 32 3a 20 20 |ect: v2|8i082: |
|00000060| 63 64 72 65 61 64 65 72 | 20 2d 20 41 75 64 69 6f |cdreader| - Audio|
|00000070| 20 43 44 20 70 6c 61 79 | 65 72 20 66 6f 72 20 53 | CD play|er for S|
|00000080| 47 49 27 73 2c 20 50 61 | 72 74 30 31 2f 30 31 0a |GI's, Pa|rt01/01.|
|00000090| 4d 65 73 73 61 67 65 2d | 49 44 3a 20 3c 31 39 39 |Message-|ID: <199|
|000000a0| 32 4d 61 72 37 2e 31 38 | 33 31 35 39 2e 32 32 30 |2Mar7.18|3159.220|
|000000b0| 39 36 40 73 70 61 72 6b | 79 2e 69 6d 64 2e 73 74 |96@spark|y.imd.st|
|000000c0| 65 72 6c 69 6e 67 2e 63 | 6f 6d 3e 0a 58 2d 4d 64 |erling.c|om>.X-Md|
|000000d0| 34 2d 53 69 67 6e 61 74 | 75 72 65 3a 20 30 65 35 |4-Signat|ure: 0e5|
|000000e0| 37 35 31 61 34 62 34 66 | 33 63 30 36 34 65 61 31 |751a4b4f|3c064ea1|
|000000f0| 39 66 37 61 65 62 37 30 | 33 65 39 30 65 0a 44 61 |9f7aeb70|3e90e.Da|
|00000100| 74 65 3a 20 53 61 74 2c | 20 37 20 4d 61 72 20 31 |te: Sat,| 7 Mar 1|
|00000110| 39 39 32 20 31 38 3a 33 | 31 3a 35 39 20 47 4d 54 |992 18:3|1:59 GMT|
|00000120| 0a 41 70 70 72 6f 76 65 | 64 3a 20 6b 65 6e 74 40 |.Approve|d: kent@|
|00000130| 73 70 61 72 6b 79 2e 69 | 6d 64 2e 73 74 65 72 6c |sparky.i|md.sterl|
|00000140| 69 6e 67 2e 63 6f 6d 0a | 0a 53 75 62 6d 69 74 74 |ing.com.|.Submitt|
|00000150| 65 64 2d 62 79 3a 20 70 | 77 6f 6c 66 65 40 62 6c |ed-by: p|wolfe@bl|
|00000160| 69 7a 7a 61 72 64 2e 6b | 61 69 2e 63 6f 6d 20 28 |izzard.k|ai.com (|
|00000170| 50 61 74 72 69 63 6b 20 | 57 6f 6c 66 65 29 0a 50 |Patrick |Wolfe).P|
|00000180| 6f 73 74 69 6e 67 2d 6e | 75 6d 62 65 72 3a 20 56 |osting-n|umber: V|
|00000190| 6f 6c 75 6d 65 20 32 38 | 2c 20 49 73 73 75 65 20 |olume 28|, Issue |
|000001a0| 38 32 0a 41 72 63 68 69 | 76 65 2d 6e 61 6d 65 3a |82.Archi|ve-name:|
|000001b0| 20 63 64 72 65 61 64 65 | 72 2f 70 61 72 74 30 31 | cdreade|r/part01|
|000001c0| 0a 45 6e 76 69 72 6f 6e | 6d 65 6e 74 3a 20 53 47 |.Environ|ment: SG|
|000001d0| 49 0a 0a 43 64 72 65 61 | 64 65 72 20 70 6c 61 79 |I..Cdrea|der play|
|000001e0| 73 20 61 6e 20 61 75 64 | 69 6f 20 63 6f 6d 70 61 |s an aud|io compa|
|000001f0| 63 74 20 64 69 73 63 20 | 6f 6e 20 53 69 6c 69 63 |ct disc |on Silic|
|00000200| 6f 6e 20 47 72 61 70 68 | 69 63 73 20 77 6f 72 6b |on Graph|ics work|
|00000210| 73 74 61 74 69 6f 6e 73 | 20 77 69 74 68 20 61 6e |stations| with an|
|00000220| 0a 41 75 64 69 6f 20 50 | 72 6f 63 65 73 73 6f 72 |.Audio P|rocessor|
|00000230| 20 28 74 68 65 20 53 47 | 49 20 49 6e 64 69 67 6f | (the SG|I Indigo|
|00000240| 2c 20 66 6f 72 20 65 78 | 61 6d 70 6c 65 29 2e 20 |, for ex|ample). |
|00000250| 20 43 64 72 65 61 64 65 | 72 20 63 6f 6d 70 69 6c | Cdreade|r compil|
|00000260| 65 73 20 6f 6e 6c 79 20 | 75 6e 64 65 72 0a 72 65 |es only |under.re|
|00000270| 6c 65 61 73 65 20 34 2e | 30 2e 31 20 28 6f 72 20 |lease 4.|0.1 (or |
|00000280| 6c 61 74 65 72 29 20 6f | 66 20 74 68 65 20 49 72 |later) o|f the Ir|
|00000290| 69 78 20 6f 70 65 72 61 | 74 69 6e 67 20 73 79 73 |ix opera|ting sys|
|000002a0| 74 65 6d 2e 0a 0a 56 65 | 72 73 69 6f 6e 20 31 2e |tem...Ve|rsion 1.|
|000002b0| 34 20 73 70 6f 72 74 73 | 20 61 6e 20 58 31 31 2f |4 sports| an X11/|
|000002c0| 4d 6f 74 69 66 20 69 6e | 74 65 72 66 61 63 65 2c |Motif in|terface,|
|000002d0| 20 61 6e 64 20 61 20 6e | 65 77 20 22 73 68 75 66 | and a n|ew "shuf|
|000002e0| 66 6c 65 22 20 66 75 6e | 63 74 69 6f 6e 2e 0a 0a |fle" fun|ction...|
|000002f0| 54 68 69 73 20 69 73 20 | 4e 4f 54 20 6a 75 73 74 |This is |NOT just|
|00000300| 20 6c 69 6b 65 20 53 47 | 49 27 73 20 22 63 64 70 | like SG|I's "cdp|
|00000310| 6c 61 79 65 72 22 20 70 | 72 6f 67 72 61 6d 2c 20 |layer" p|rogram, |
|00000320| 77 68 69 63 68 20 73 69 | 6d 70 6c 79 20 63 6f 6d |which si|mply com|
|00000330| 6d 61 6e 64 73 20 74 68 | 65 20 43 44 0a 64 72 69 |mands th|e CD.dri|
|00000340| 76 65 20 74 6f 20 70 6c | 61 79 20 61 6e 20 61 75 |ve to pl|ay an au|
|00000350| 64 69 6f 20 43 44 2c 20 | 61 6e 64 20 73 69 74 73 |dio CD, |and sits|
|00000360| 20 62 61 63 6b 20 74 6f | 20 77 61 74 63 68 2e 20 | back to| watch. |
|00000370| 20 49 6e 20 74 68 61 74 | 20 63 61 73 65 2c 20 74 | In that| case, t|
|00000380| 68 65 20 64 69 67 69 74 | 61 6c 0a 43 44 20 64 61 |he digit|al.CD da|
|00000390| 74 61 20 69 73 20 63 6f | 6e 76 65 72 74 65 64 20 |ta is co|nverted |
|000003a0| 74 6f 20 61 6e 61 6c 6f | 67 20 69 6e 73 69 64 65 |to analo|g inside|
|000003b0| 20 74 68 65 20 43 44 72 | 6f 6d 20 64 72 69 76 65 | the CDr|om drive|
|000003c0| 2c 20 61 6e 64 20 74 68 | 65 20 61 6e 61 6c 6f 67 |, and th|e analog|
|000003d0| 20 61 75 64 69 6f 0a 6f | 75 74 70 75 74 20 69 73 | audio.o|utput is|
|000003e0| 20 73 65 6e 74 20 74 6f | 20 74 68 65 20 68 65 61 | sent to| the hea|
|000003f0| 64 70 68 6f 6e 65 20 6a | 61 63 6b 20 6f 6e 20 74 |dphone j|ack on t|
|00000400| 68 65 20 66 72 6f 6e 74 | 20 61 6e 64 20 74 68 65 |he front| and the|
|00000410| 20 61 75 64 69 6f 20 6f | 75 74 20 6a 61 63 6b 73 | audio o|ut jacks|
|00000420| 20 6f 6e 0a 74 68 65 20 | 62 61 63 6b 20 6f 66 20 | on.the |back of |
|00000430| 74 68 65 20 64 72 69 76 | 65 2e 20 20 57 69 74 68 |the driv|e. With|
|00000440| 6f 75 74 20 68 65 61 64 | 70 68 6f 6e 65 73 20 6f |out head|phones o|
|00000450| 72 20 61 20 73 74 65 72 | 65 6f 2c 20 79 6f 75 20 |r a ster|eo, you |
|00000460| 63 61 6e 27 74 20 68 65 | 61 72 20 61 6e 79 74 68 |can't he|ar anyth|
|00000470| 69 6e 67 2e 0a 45 76 65 | 6e 20 77 69 74 68 20 74 |ing..Eve|n with t|
|00000480| 68 65 6d 2c 20 74 68 65 | 20 73 6f 75 6e 64 20 69 |hem, the| sound i|
|00000490| 73 20 76 65 72 79 20 71 | 75 69 65 74 2c 20 61 6e |s very q|uiet, an|
|000004a0| 64 20 73 6f 6d 65 77 68 | 61 74 20 64 69 73 74 6f |d somewh|at disto|
|000004b0| 72 74 65 64 2e 0a 0a 43 | 64 72 65 61 64 65 72 20 |rted...C|dreader |
|000004c0| 75 73 65 73 20 53 47 49 | 27 73 20 6c 69 62 63 64 |uses SGI|'s libcd|
|000004d0| 61 75 64 69 6f 20 72 6f | 75 74 69 6e 65 73 20 74 |audio ro|utines t|
|000004e0| 6f 20 72 65 61 64 20 74 | 68 65 20 64 69 67 69 74 |o read t|he digit|
|000004f0| 61 6c 20 64 61 74 61 20 | 64 69 72 65 63 74 6c 79 |al data |directly|
|00000500| 20 66 72 6f 6d 0a 74 68 | 65 20 43 44 2c 20 61 6e | from.th|e CD, an|
|00000510| 64 20 73 65 6e 64 73 20 | 69 74 20 74 6f 20 74 68 |d sends |it to th|
|00000520| 65 20 41 75 64 69 6f 20 | 50 72 6f 63 65 73 73 6f |e Audio |Processo|
|00000530| 72 20 66 6f 72 20 63 6f | 6e 76 65 72 73 69 6f 6e |r for co|nversion|
|00000540| 20 74 6f 20 61 6e 61 6c | 6f 67 20 61 75 64 69 6f | to anal|og audio|
|00000550| 0a 64 61 74 61 2e 20 20 | 59 6f 75 20 63 61 6e 20 |.data. |You can |
|00000560| 6c 69 73 74 65 6e 20 6f | 6e 20 74 68 65 20 49 6e |listen o|n the In|
|00000570| 64 69 67 6f 27 73 20 6d | 6f 6e 6f 70 68 6f 6e 69 |digo's m|onophoni|
|00000580| 63 20 73 70 65 61 6b 65 | 72 2c 20 6f 72 20 65 76 |c speake|r, or ev|
|00000590| 65 6e 20 62 65 74 74 65 | 72 2c 20 62 75 79 20 61 |en bette|r, buy a|
|000005a0| 0a 63 61 62 6c 65 20 77 | 69 74 68 20 61 20 73 74 |.cable w|ith a st|
|000005b0| 65 72 65 6f 20 6d 69 6e | 69 2d 70 6c 75 67 20 6f |ereo min|i-plug o|
|000005c0| 6e 20 6f 6e 65 20 65 6e | 64 2c 20 61 6e 64 20 74 |n one en|d, and t|
|000005d0| 77 6f 20 70 68 6f 6e 6f | 20 70 6c 75 67 73 20 6f |wo phono| plugs o|
|000005e0| 6e 20 74 68 65 20 6f 74 | 68 65 72 2c 20 61 6e 64 |n the ot|her, and|
|000005f0| 0a 63 6f 6e 6e 65 63 74 | 20 66 72 6f 6d 20 79 6f |.connect| from yo|
|00000600| 75 72 20 49 6e 64 69 67 | 6f 27 73 20 6c 69 6e 65 |ur Indig|o's line|
|00000610| 6f 75 74 20 6a 61 63 6b | 20 74 6f 20 79 6f 75 72 |out jack| to your|
|00000620| 20 73 74 65 72 65 6f 20 | 61 6d 70 6c 69 66 69 65 | stereo |amplifie|
|00000630| 72 27 73 20 63 64 2d 69 | 6e 20 28 6f 72 0a 74 61 |r's cd-i|n (or.ta|
|00000640| 70 65 2d 69 6e 29 20 6a | 61 63 6b 73 2e 20 20 45 |pe-in) j|acks. E|
|00000650| 6e 6a 6f 79 21 0a 0a 20 | 20 20 20 20 20 20 20 50 |njoy!.. | P|
|00000660| 61 74 72 69 63 6b 20 57 | 6f 6c 66 65 20 20 28 70 |atrick W|olfe (p|
|00000670| 77 6f 6c 66 65 40 6b 61 | 69 2e 63 6f 6d 2c 20 75 |wolfe@ka|i.com, u|
|00000680| 75 6e 65 74 21 6b 61 69 | 6c 61 6e 64 21 70 77 6f |unet!kai|land!pwo|
|00000690| 6c 66 65 29 0a 0a 2d 2d | 2d 20 63 75 74 20 68 65 |lfe)..--|- cut he|
|000006a0| 72 65 20 2d 2d 2d 20 63 | 75 74 20 68 65 72 65 20 |re --- c|ut here |
|000006b0| 2d 2d 2d 20 63 75 74 20 | 68 65 72 65 20 2d 2d 2d |--- cut |here ---|
|000006c0| 20 63 75 74 20 68 65 72 | 65 20 2d 2d 2d 20 63 75 | cut her|e --- cu|
|000006d0| 74 20 68 65 72 65 20 2d | 2d 2d 0a 23 21 20 2f 62 |t here -|--.#! /b|
|000006e0| 69 6e 2f 73 68 0a 23 20 | 54 68 69 73 20 69 73 20 |in/sh.# |This is |
|000006f0| 61 20 73 68 65 6c 6c 20 | 61 72 63 68 69 76 65 2e |a shell |archive.|
|00000700| 20 20 52 65 6d 6f 76 65 | 20 61 6e 79 74 68 69 6e | Remove| anythin|
|00000710| 67 20 62 65 66 6f 72 65 | 20 74 68 69 73 20 6c 69 |g before| this li|
|00000720| 6e 65 2c 20 74 68 65 6e | 20 66 65 65 64 20 69 74 |ne, then| feed it|
|00000730| 0a 23 20 69 6e 74 6f 20 | 61 20 73 68 65 6c 6c 20 |.# into |a shell |
|00000740| 76 69 61 20 22 73 68 20 | 66 69 6c 65 22 20 6f 72 |via "sh |file" or|
|00000750| 20 73 69 6d 69 6c 61 72 | 2e 20 20 54 6f 20 6f 76 | similar|. To ov|
|00000760| 65 72 77 72 69 74 65 20 | 65 78 69 73 74 69 6e 67 |erwrite |existing|
|00000770| 20 66 69 6c 65 73 2c 0a | 23 20 74 79 70 65 20 22 | files,.|# type "|
|00000780| 73 68 20 66 69 6c 65 20 | 2d 63 22 2e 0a 23 20 54 |sh file |-c"..# T|
|00000790| 68 65 20 74 6f 6f 6c 20 | 74 68 61 74 20 67 65 6e |he tool |that gen|
|000007a0| 65 72 61 74 65 64 20 74 | 68 69 73 20 61 70 70 65 |erated t|his appe|
|000007b0| 61 72 65 64 20 69 6e 20 | 74 68 65 20 63 6f 6d 70 |ared in |the comp|
|000007c0| 2e 73 6f 75 72 63 65 73 | 2e 75 6e 69 78 20 6e 65 |.sources|.unix ne|
|000007d0| 77 73 67 72 6f 75 70 3b | 0a 23 20 73 65 6e 64 20 |wsgroup;|.# send |
|000007e0| 6d 61 69 6c 20 74 6f 20 | 63 6f 6d 70 2d 73 6f 75 |mail to |comp-sou|
|000007f0| 72 63 65 73 2d 75 6e 69 | 78 40 75 75 6e 65 74 2e |rces-uni|x@uunet.|
|00000800| 75 75 2e 6e 65 74 20 69 | 66 20 79 6f 75 20 77 61 |uu.net i|f you wa|
|00000810| 6e 74 20 74 68 61 74 20 | 74 6f 6f 6c 2e 0a 23 20 |nt that |tool..# |
|00000820| 43 6f 6e 74 65 6e 74 73 | 3a 20 20 4d 61 6b 65 66 |Contents|: Makef|
|00000830| 69 6c 65 20 52 65 61 64 | 6d 65 20 63 64 72 65 61 |ile Read|me cdrea|
|00000840| 64 65 72 2e 31 20 63 64 | 72 65 61 64 65 72 2e 63 |der.1 cd|reader.c|
|00000850| 20 63 64 72 65 61 64 65 | 72 2e 69 63 6f 6e 0a 23 | cdreade|r.icon.#|
|00000860| 20 57 72 61 70 70 65 64 | 20 62 79 20 6b 65 6e 74 | Wrapped| by kent|
|00000870| 40 73 70 61 72 6b 79 20 | 6f 6e 20 53 61 74 20 4d |@sparky |on Sat M|
|00000880| 61 72 20 20 37 20 31 32 | 3a 32 37 3a 34 31 20 31 |ar 7 12|:27:41 1|
|00000890| 39 39 32 0a 50 41 54 48 | 3d 2f 62 69 6e 3a 2f 75 |992.PATH|=/bin:/u|
|000008a0| 73 72 2f 62 69 6e 3a 2f | 75 73 72 2f 75 63 62 20 |sr/bin:/|usr/ucb |
|000008b0| 3b 20 65 78 70 6f 72 74 | 20 50 41 54 48 0a 65 63 |; export| PATH.ec|
|000008c0| 68 6f 20 49 66 20 74 68 | 69 73 20 61 72 63 68 69 |ho If th|is archi|
|000008d0| 76 65 20 69 73 20 63 6f | 6d 70 6c 65 74 65 2c 20 |ve is co|mplete, |
|000008e0| 79 6f 75 20 77 69 6c 6c | 20 73 65 65 20 74 68 65 |you will| see the|
|000008f0| 20 66 6f 6c 6c 6f 77 69 | 6e 67 20 6d 65 73 73 61 | followi|ng messa|
|00000900| 67 65 3a 0a 65 63 68 6f | 20 27 20 20 20 20 20 20 |ge:.echo| ' |
|00000910| 20 20 20 20 22 73 68 61 | 72 3a 20 45 6e 64 20 6f | "sha|r: End o|
|00000920| 66 20 61 72 63 68 69 76 | 65 20 31 20 28 6f 66 20 |f archiv|e 1 (of |
|00000930| 31 29 2e 22 27 0a 69 66 | 20 74 65 73 74 20 2d 66 |1)."'.if| test -f|
|00000940| 20 27 4d 61 6b 65 66 69 | 6c 65 27 20 2d 61 20 22 | 'Makefi|le' -a "|
|00000950| 24 7b 31 7d 22 20 21 3d | 20 22 2d 63 22 20 3b 20 |${1}" !=| "-c" ; |
|00000960| 74 68 65 6e 20 0a 20 20 | 65 63 68 6f 20 73 68 61 |then . |echo sha|
|00000970| 72 3a 20 57 69 6c 6c 20 | 6e 6f 74 20 63 6c 6f 62 |r: Will |not clob|
|00000980| 62 65 72 20 65 78 69 73 | 74 69 6e 67 20 66 69 6c |ber exis|ting fil|
|00000990| 65 20 5c 22 27 4d 61 6b | 65 66 69 6c 65 27 5c 22 |e \"'Mak|efile'\"|
|000009a0| 0a 65 6c 73 65 0a 20 20 | 65 63 68 6f 20 73 68 61 |.else. |echo sha|
|000009b0| 72 3a 20 45 78 74 72 61 | 63 74 69 6e 67 20 5c 22 |r: Extra|cting \"|
|000009c0| 27 4d 61 6b 65 66 69 6c | 65 27 5c 22 20 5c 28 33 |'Makefil|e'\" \(3|
|000009d0| 30 37 38 20 63 68 61 72 | 61 63 74 65 72 73 5c 29 |078 char|acters\)|
|000009e0| 0a 20 20 73 65 64 20 22 | 73 2f 5e 58 2f 2f 22 20 |. sed "|s/^X//" |
|000009f0| 3e 27 4d 61 6b 65 66 69 | 6c 65 27 20 3c 3c 27 45 |>'Makefi|le' <<'E|
|00000a00| 4e 44 5f 4f 46 5f 46 49 | 4c 45 27 0a 58 23 09 4d |ND_OF_FI|LE'.X#.M|
|00000a10| 61 6b 65 66 69 6c 65 20 | 66 6f 72 20 63 64 72 65 |akefile |for cdre|
|00000a20| 61 64 65 72 0a 58 0a 58 | 23 09 49 52 49 58 34 30 |ader.X.X|#.IRIX40|
|00000a30| 31 5f 43 44 52 45 41 44 | 44 41 5f 42 55 47 20 2d |1_CDREAD|DA_BUG -|
|00000a40| 20 77 6f 72 6b 61 72 6f | 75 6e 64 20 66 6f 72 20 | workaro|und for |
|00000a50| 62 75 67 20 69 6e 20 43 | 44 72 65 61 64 64 61 28 |bug in C|Dreadda(|
|00000a60| 29 20 72 6f 75 74 69 6e | 65 0a 58 23 09 09 61 73 |) routin|e.X#..as|
|00000a70| 20 64 69 73 74 72 69 62 | 75 74 65 64 20 69 6e 20 | distrib|uted in |
|00000a80| 49 72 69 78 20 34 2e 30 | 2e 31 2c 20 61 6e 64 20 |Irix 4.0|.1, and |
|00000a90| 73 75 70 70 6f 73 65 64 | 20 74 6f 20 62 65 20 66 |supposed| to be f|
|00000aa0| 69 78 65 64 20 69 6e 0a | 58 23 09 09 74 68 65 20 |ixed in.|X#..the |
|00000ab0| 6e 65 78 74 20 49 72 69 | 78 20 72 65 6c 65 61 73 |next Iri|x releas|
|00000ac0| 65 2e 20 20 53 65 65 20 | 63 64 72 65 61 64 65 72 |e. See |cdreader|
|00000ad0| 2e 63 20 66 6f 72 20 64 | 65 74 61 69 6c 73 2e 0a |.c for d|etails..|
|00000ae0| 58 23 09 09 41 46 54 45 | 52 20 74 68 69 73 20 62 |X#..AFTE|R this b|
|00000af0| 75 67 20 69 73 20 66 69 | 78 65 64 2c 20 72 65 6d |ug is fi|xed, rem|
|00000b00| 6f 76 65 20 74 68 69 73 | 20 6f 70 74 69 6f 6e 20 |ove this| option |
|00000b10| 61 6e 64 20 72 65 63 6f | 6d 70 69 6c 65 21 0a 58 |and reco|mpile!.X|
|00000b20| 44 45 46 53 20 3d 20 2d | 44 49 52 49 58 34 30 31 |DEFS = -|DIRIX401|
|00000b30| 5f 43 44 52 45 41 44 44 | 41 5f 42 55 47 0a 58 0a |_CDREADD|A_BUG.X.|
|00000b40| 58 43 46 4c 41 47 53 20 | 3d 20 2d 4f 20 2d 73 20 |XCFLAGS |= -O -s |
|00000b50| 24 28 44 45 46 53 29 0a | 58 23 43 46 4c 41 47 53 |$(DEFS).|X#CFLAGS|
|00000b60| 20 3d 20 2d 67 20 2d 44 | 54 45 53 54 49 4e 47 20 | = -g -D|TESTING |
|00000b70| 24 28 44 45 46 53 29 0a | 58 0a 58 23 20 53 47 49 |$(DEFS).|X.X# SGI|
|00000b80| 20 43 44 20 41 75 64 69 | 6f 20 6c 69 62 72 61 72 | CD Audi|o librar|
|00000b90| 79 20 72 6f 75 74 69 6e | 65 73 0a 58 43 44 4c 49 |y routin|es.XCDLI|
|00000ba0| 42 53 20 3d 20 2d 6c 63 | 64 61 75 64 69 6f 20 2d |BS = -lc|daudio -|
|00000bb0| 6c 64 73 0a 58 0a 58 23 | 20 53 47 49 20 41 75 64 |lds.X.X#| SGI Aud|
|00000bc0| 69 6f 20 50 72 6f 63 65 | 73 73 6f 72 20 6c 69 62 |io Proce|ssor lib|
|00000bd0| 72 61 72 79 20 72 6f 75 | 74 69 6e 65 73 0a 58 41 |rary rou|tines.XA|
|00000be0| 55 44 49 4f 4c 49 42 53 | 20 3d 20 2d 6c 61 75 64 |UDIOLIBS| = -laud|
|00000bf0| 69 6f 0a 58 0a 58 23 20 | 58 31 31 2f 4d 6f 74 69 |io.X.X# |X11/Moti|
|00000c00| 66 20 77 69 6e 64 6f 77 | 20 6c 69 62 72 61 72 69 |f window| librari|
|00000c10| 65 73 0a 58 23 09 54 68 | 65 20 73 68 61 72 65 64 |es.X#.Th|e shared|
|00000c20| 20 6c 69 62 72 61 72 69 | 65 73 20 6d 61 6b 65 20 | librari|es make |
|00000c30| 66 6f 72 20 61 20 73 6d | 61 6c 6c 65 72 20 65 78 |for a sm|aller ex|
|00000c40| 65 63 75 74 61 62 6c 65 | 2c 20 61 6e 64 20 61 72 |ecutable|, and ar|
|00000c50| 65 20 50 52 45 46 45 52 | 52 45 44 2c 0a 58 23 09 |e PREFER|RED,.X#.|
|00000c60| 62 75 74 20 74 68 65 6e | 20 74 68 65 20 70 72 6f |but then| the pro|
|00000c70| 67 72 61 6d 20 77 69 6c | 6c 20 6f 6e 6c 79 20 72 |gram wil|l only r|
|00000c80| 75 6e 20 6f 6e 20 73 79 | 73 74 65 6d 73 20 74 68 |un on sy|stems th|
|00000c90| 61 74 20 68 61 76 65 20 | 74 68 65 6d 20 69 6e 73 |at have |them ins|
|00000ca0| 74 61 6c 6c 65 64 0a 58 | 0a 58 23 20 73 68 61 72 |talled.X|.X# shar|
|00000cb0| 65 64 20 6c 69 62 72 61 | 72 69 65 73 20 6d 61 6b |ed libra|ries mak|
|00000cc0| 65 20 61 6e 20 65 78 65 | 63 75 74 61 62 6c 65 20 |e an exe|cutable |
|00000cd0| 74 68 61 74 27 73 20 6f | 6e 6c 79 20 31 36 38 20 |that's o|nly 168 |
|00000ce0| 4b 62 21 0a 58 58 4c 49 | 42 53 20 3d 20 2d 6c 58 |Kb!.XXLI|BS = -lX|
|00000cf0| 6d 5f 73 20 2d 6c 58 74 | 5f 73 20 2d 6c 58 31 31 |m_s -lXt|_s -lX11|
|00000d00| 5f 73 20 2d 6c 50 57 0a | 58 0a 58 23 20 6e 6f 6e |_s -lPW.|X.X# non|
|00000d10| 20 73 68 61 72 65 64 20 | 6c 69 62 72 61 72 69 65 | shared |librarie|
|00000d20| 73 20 6d 61 6b 65 20 61 | 6e 20 65 78 65 63 75 74 |s make a|n execut|
|00000d30| 61 62 6c 65 20 74 68 61 | 74 27 73 20 6f 76 65 72 |able tha|t's over|
|00000d40| 20 31 20 4d 62 20 74 61 | 6c 6c 21 0a 58 23 58 4c | 1 Mb ta|ll!.X#XL|
|00000d50| 49 42 53 20 3d 20 2d 6c | 58 6d 20 2d 6c 58 74 20 |IBS = -l|Xm -lXt |
|00000d60| 2d 6c 58 31 31 20 2d 6c | 50 57 0a 58 0a 58 4c 49 |-lX11 -l|PW.X.XLI|
|00000d70| 42 53 20 3d 20 24 28 58 | 4c 49 42 53 29 20 24 28 |BS = $(X|LIBS) $(|
|00000d80| 43 44 4c 49 42 53 29 20 | 24 28 41 55 44 49 4f 4c |CDLIBS) |$(AUDIOL|
|00000d90| 49 42 53 29 20 2d 6c 63 | 5f 73 0a 58 46 49 4c 45 |IBS) -lc|_s.XFILE|
|00000da0| 53 20 3d 20 52 65 61 64 | 6d 65 20 63 64 72 65 61 |S = Read|me cdrea|
|00000db0| 64 65 72 2e 63 20 4d 61 | 6b 65 66 69 6c 65 20 63 |der.c Ma|kefile c|
|00000dc0| 64 72 65 61 64 65 72 2e | 69 63 6f 6e 20 63 64 72 |dreader.|icon cdr|
|00000dd0| 65 61 64 65 72 2e 31 0a | 58 42 49 4e 20 3d 20 2f |eader.1.|XBIN = /|
|00000de0| 75 73 72 2f 6c 6f 63 61 | 6c 2f 62 69 6e 0a 58 49 |usr/loca|l/bin.XI|
|00000df0| 43 4f 4e 44 49 52 20 3d | 20 2f 75 73 72 2f 6c 69 |CONDIR =| /usr/li|
|00000e00| 62 2f 69 6d 61 67 65 73 | 0a 58 4d 41 4e 44 49 52 |b/images|.XMANDIR|
|00000e10| 20 3d 20 2f 75 73 72 2f | 63 61 74 6d 61 6e 2f 6c | = /usr/|catman/l|
|00000e20| 6f 63 61 6c 2f 6d 61 6e | 31 0a 58 0a 58 61 6c 6c |ocal/man|1.X.Xall|
|00000e30| 3a 20 63 64 72 65 61 64 | 65 72 0a 58 0a 58 63 64 |: cdread|er.X.Xcd|
|00000e40| 72 65 61 64 65 72 3a 20 | 63 64 72 65 61 64 65 72 |reader: |cdreader|
|00000e50| 2e 6f 0a 58 09 72 6d 20 | 2d 66 20 63 64 72 65 61 |.o.X.rm |-f cdrea|
|00000e60| 64 65 72 0a 58 09 24 28 | 43 43 29 20 2d 6f 20 63 |der.X.$(|CC) -o c|
|00000e70| 64 72 65 61 64 65 72 20 | 24 28 43 46 4c 41 47 53 |dreader |$(CFLAGS|
|00000e80| 29 20 63 64 72 65 61 64 | 65 72 2e 6f 20 24 28 4c |) cdread|er.o $(L|
|00000e90| 49 42 53 29 0a 58 0a 58 | 63 64 72 65 61 64 65 72 |IBS).X.X|cdreader|
|00000ea0| 2e 31 6e 72 3a 20 63 64 | 72 65 61 64 65 72 2e 31 |.1nr: cd|reader.1|
|00000eb0| 0a 58 09 6e 72 6f 66 66 | 20 2d 6d 61 6e 20 63 64 |.X.nroff| -man cd|
|00000ec0| 72 65 61 64 65 72 2e 31 | 20 3e 20 63 64 72 65 61 |reader.1| > cdrea|
|00000ed0| 64 65 72 2e 31 6e 72 0a | 58 0a 58 69 6e 73 74 61 |der.1nr.|X.Xinsta|
|00000ee0| 6c 6c 3a 20 24 28 42 49 | 4e 29 2f 63 64 72 65 61 |ll: $(BI|N)/cdrea|
|00000ef0| 64 65 72 20 24 28 4d 41 | 4e 44 49 52 29 2f 63 64 |der $(MA|NDIR)/cd|
|00000f00| 72 65 61 64 65 72 2e 31 | 20 24 28 49 43 4f 4e 44 |reader.1| $(ICOND|
|00000f10| 49 52 29 2f 63 64 72 65 | 61 64 65 72 2e 69 63 6f |IR)/cdre|ader.ico|
|00000f20| 6e 0a 58 0a 58 24 28 42 | 49 4e 29 2f 63 64 72 65 |n.X.X$(B|IN)/cdre|
|00000f30| 61 64 65 72 3a 20 63 64 | 72 65 61 64 65 72 0a 58 |ader: cd|reader.X|
|00000f40| 09 72 6d 20 2d 66 20 24 | 28 42 49 4e 29 2f 63 64 |.rm -f $|(BIN)/cd|
|00000f50| 72 65 61 64 65 72 0a 58 | 09 63 70 20 63 64 72 65 |reader.X|.cp cdre|
|00000f60| 61 64 65 72 20 24 28 42 | 49 4e 29 0a 58 09 63 68 |ader $(B|IN).X.ch|
|00000f70| 6d 6f 64 20 37 35 35 20 | 24 28 42 49 4e 29 2f 63 |mod 755 |$(BIN)/c|
|00000f80| 64 72 65 61 64 65 72 0a | 58 09 6c 73 20 2d 6c 20 |dreader.|X.ls -l |
|00000f90| 24 28 42 49 4e 29 2f 63 | 64 72 65 61 64 65 72 0a |$(BIN)/c|dreader.|
|00000fa0| 58 0a 58 24 28 4d 41 4e | 44 49 52 29 2f 63 64 72 |X.X$(MAN|DIR)/cdr|
|00000fb0| 65 61 64 65 72 2e 31 3a | 20 63 64 72 65 61 64 65 |eader.1:| cdreade|
|00000fc0| 72 2e 31 0a 58 09 72 6d | 20 2d 66 20 24 28 4d 41 |r.1.X.rm| -f $(MA|
|00000fd0| 4e 44 49 52 29 2f 63 64 | 72 65 61 64 65 72 2e 31 |NDIR)/cd|reader.1|
|00000fe0| 0a 58 09 63 70 20 63 64 | 72 65 61 64 65 72 2e 31 |.X.cp cd|reader.1|
|00000ff0| 20 24 28 4d 41 4e 44 49 | 52 29 2f 63 64 72 65 61 | $(MANDI|R)/cdrea|
|00001000| 64 65 72 2e 31 0a 58 09 | 63 68 6d 6f 64 20 36 34 |der.1.X.|chmod 64|
|00001010| 34 20 24 28 4d 41 4e 44 | 49 52 29 2f 63 64 72 65 |4 $(MAND|IR)/cdre|
|00001020| 61 64 65 72 2e 31 0a 58 | 09 6c 73 20 2d 6c 20 24 |ader.1.X|.ls -l $|
|00001030| 28 4d 41 4e 44 49 52 29 | 2f 63 64 72 65 61 64 65 |(MANDIR)|/cdreade|
|00001040| 72 2e 31 0a 58 0a 58 24 | 28 49 43 4f 4e 44 49 52 |r.1.X.X$|(ICONDIR|
|00001050| 29 2f 63 64 72 65 61 64 | 65 72 2e 69 63 6f 6e 3a |)/cdread|er.icon:|
|00001060| 20 63 64 72 65 61 64 65 | 72 2e 69 63 6f 6e 0a 58 | cdreade|r.icon.X|
|00001070| 09 72 6d 20 2d 66 20 24 | 28 49 43 4f 4e 44 49 52 |.rm -f $|(ICONDIR|
|00001080| 29 2f 63 64 72 65 61 64 | 65 72 2e 69 63 6f 6e 0a |)/cdread|er.icon.|
|00001090| 58 09 63 70 20 63 64 72 | 65 61 64 65 72 2e 69 63 |X.cp cdr|eader.ic|
|000010a0| 6f 6e 20 24 28 49 43 4f | 4e 44 49 52 29 2f 63 64 |on $(ICO|NDIR)/cd|
|000010b0| 72 65 61 64 65 72 2e 69 | 63 6f 6e 0a 58 09 63 68 |reader.i|con.X.ch|
|000010c0| 6d 6f 64 20 36 34 34 20 | 24 28 49 43 4f 4e 44 49 |mod 644 |$(ICONDI|
|000010d0| 52 29 2f 63 64 72 65 61 | 64 65 72 2e 69 63 6f 6e |R)/cdrea|der.icon|
|000010e0| 0a 58 09 6c 73 20 2d 6c | 20 24 28 49 43 4f 4e 44 |.X.ls -l| $(ICOND|
|000010f0| 49 52 29 2f 63 64 72 65 | 61 64 65 72 2e 69 63 6f |IR)/cdre|ader.ico|
|00001100| 6e 0a 58 0a 58 64 65 69 | 6e 73 74 61 6c 6c 3a 0a |n.X.Xdei|nstall:.|
|00001110| 58 09 72 6d 20 2d 66 20 | 24 28 42 49 4e 29 2f 63 |X.rm -f |$(BIN)/c|
|00001120| 64 72 65 61 64 65 72 0a | 58 0a 58 6c 69 6e 74 3a |dreader.|X.Xlint:|
|00001130| 0a 58 09 6c 69 6e 74 20 | 2d 75 76 78 7a 20 63 64 |.X.lint |-uvxz cd|
|00001140| 72 65 61 64 65 72 2e 63 | 0a 58 0a 58 73 68 61 72 |reader.c|.X.Xshar|
|00001150| 3a 20 24 28 46 49 4c 45 | 53 29 0a 58 09 72 6d 20 |: $(FILE|S).X.rm |
|00001160| 2d 66 20 63 64 72 65 61 | 64 65 72 2e 73 68 61 72 |-f cdrea|der.shar|
|00001170| 0a 58 09 73 68 61 72 20 | 24 28 46 49 4c 45 53 29 |.X.shar |$(FILES)|
|00001180| 20 3e 20 63 64 72 65 61 | 64 65 72 2e 73 68 61 72 | > cdrea|der.shar|
|00001190| 0a 58 09 6c 73 20 2d 6c | 20 63 64 72 65 61 64 65 |.X.ls -l| cdreade|
|000011a0| 72 2e 73 68 61 72 0a 58 | 0a 58 63 6c 65 61 6e 3a |r.shar.X|.Xclean:|
|000011b0| 0a 58 09 72 6d 20 2d 66 | 20 61 2e 6f 75 74 20 63 |.X.rm -f| a.out c|
|000011c0| 6f 72 65 20 6d 6b 6c 6f | 67 20 63 64 72 65 61 64 |ore mklo|g cdread|
|000011d0| 65 72 20 63 64 72 65 61 | 64 65 72 2e 73 68 61 72 |er cdrea|der.shar|
|000011e0| 20 2a 2e 6f 0a 58 0a 58 | 23 0a 58 23 20 4f 72 69 | *.o.X.X|#.X# Ori|
|000011f0| 67 69 6e 61 6c 20 41 75 | 74 68 6f 72 3a 20 20 50 |ginal Au|thor: P|
|00001200| 61 74 72 69 63 6b 20 57 | 6f 6c 66 65 20 20 28 70 |atrick W|olfe (p|
|00001210| 77 6f 6c 66 65 40 6b 61 | 69 2e 63 6f 6d 2c 20 75 |wolfe@ka|i.com, u|
|00001220| 75 6e 65 74 21 6b 61 69 | 6c 61 6e 64 21 70 77 6f |unet!kai|land!pwo|
|00001230| 6c 66 65 29 0a 58 23 0a | 58 23 20 54 68 69 73 20 |lfe).X#.|X# This |
|00001240| 73 6f 66 74 77 61 72 65 | 20 69 73 20 43 6f 70 79 |software| is Copy|
|00001250| 72 69 67 68 74 20 28 63 | 29 20 31 39 39 32 20 62 |right (c|) 1992 b|
|00001260| 79 20 50 61 74 72 69 63 | 6b 20 4a 2e 20 57 6f 6c |y Patric|k J. Wol|
|00001270| 66 65 2e 0a 58 23 0a 58 | 23 20 50 65 72 6d 69 73 |fe..X#.X|# Permis|
|00001280| 73 69 6f 6e 20 69 73 20 | 68 65 72 65 62 79 20 67 |sion is |hereby g|
|00001290| 72 61 6e 74 65 64 20 74 | 6f 20 63 6f 70 79 2c 20 |ranted t|o copy, |
|000012a0| 64 69 73 74 72 69 62 75 | 74 65 20 6f 72 20 6f 74 |distribu|te or ot|
|000012b0| 68 65 72 77 69 73 65 20 | 0a 58 23 20 75 73 65 20 |herwise |.X# use |
|000012c0| 61 6e 79 20 70 61 72 74 | 20 6f 66 20 74 68 69 73 |any part| of this|
|000012d0| 20 70 61 63 6b 61 67 65 | 20 61 73 20 6c 6f 6e 67 | package| as long|
|000012e0| 20 61 73 20 79 6f 75 20 | 64 6f 20 6e 6f 74 20 74 | as you |do not t|
|000012f0| 72 79 20 74 6f 20 6d 61 | 6b 65 20 0a 58 23 20 6d |ry to ma|ke .X# m|
|00001300| 6f 6e 65 79 20 66 72 6f | 6d 20 69 74 20 6f 72 20 |oney fro|m it or |
|00001310| 70 72 65 74 65 6e 64 20 | 74 68 61 74 20 79 6f 75 |pretend |that you|
|00001320| 20 77 72 6f 74 65 20 69 | 74 2e 20 20 54 68 69 73 | wrote i|t. This|
|00001330| 20 63 6f 70 79 72 69 67 | 68 74 20 0a 58 23 20 6e | copyrig|ht .X# n|
|00001340| 6f 74 69 63 65 20 6d 75 | 73 74 20 62 65 20 6d 61 |otice mu|st be ma|
|00001350| 69 6e 74 61 69 6e 65 64 | 20 69 6e 20 61 6e 79 20 |intained| in any |
|00001360| 63 6f 70 79 20 6d 61 64 | 65 2e 0a 58 23 0a 58 23 |copy mad|e..X#.X#|
|00001370| 20 55 73 65 20 6f 66 20 | 74 68 69 73 20 73 6f 66 | Use of |this sof|
|00001380| 74 77 61 72 65 20 63 6f | 6e 73 74 69 74 75 74 65 |tware co|nstitute|
|00001390| 73 20 61 63 63 65 70 74 | 61 6e 63 65 20 66 6f 72 |s accept|ance for|
|000013a0| 20 75 73 65 20 69 6e 20 | 61 6e 20 41 53 20 49 53 | use in |an AS IS|
|000013b0| 20 0a 58 23 20 63 6f 6e | 64 69 74 69 6f 6e 2e 20 | .X# con|dition. |
|000013c0| 54 68 65 72 65 20 61 72 | 65 20 4e 4f 20 77 61 72 |There ar|e NO war|
|000013d0| 72 61 6e 74 69 65 73 20 | 77 69 74 68 20 72 65 67 |ranties |with reg|
|000013e0| 61 72 64 20 74 6f 20 74 | 68 69 73 20 73 6f 66 74 |ard to t|his soft|
|000013f0| 77 61 72 65 2e 20 20 0a | 58 23 20 49 6e 20 6e 6f |ware. .|X# In no|
|00001400| 20 65 76 65 6e 74 20 73 | 68 61 6c 6c 20 74 68 65 | event s|hall the|
|00001410| 20 61 75 74 68 6f 72 20 | 62 65 20 6c 69 61 62 6c | author |be liabl|
|00001420| 65 20 66 6f 72 20 61 6e | 79 20 64 61 6d 61 67 65 |e for an|y damage|
|00001430| 73 20 77 68 61 74 73 6f | 65 76 65 72 20 0a 58 23 |s whatso|ever .X#|
|00001440| 20 61 72 69 73 69 6e 67 | 20 6f 75 74 20 6f 66 20 | arising| out of |
|00001450| 6f 72 20 69 6e 20 63 6f | 6e 6e 65 63 74 69 6f 6e |or in co|nnection|
|00001460| 20 77 69 74 68 20 74 68 | 65 20 75 73 65 20 6f 72 | with th|e use or|
|00001470| 20 70 65 72 66 6f 72 6d | 61 6e 63 65 20 6f 66 20 | perform|ance of |
|00001480| 74 68 69 73 20 0a 58 23 | 20 73 6f 66 74 77 61 72 |this .X#| softwar|
|00001490| 65 2e 20 20 41 6e 79 20 | 75 73 65 20 6f 66 20 74 |e. Any |use of t|
|000014a0| 68 69 73 20 73 6f 66 74 | 77 61 72 65 20 69 73 20 |his soft|ware is |
|000014b0| 61 74 20 74 68 65 20 75 | 73 65 72 27 73 20 6f 77 |at the u|ser's ow|
|000014c0| 6e 20 72 69 73 6b 2e 0a | 58 23 0a 58 23 20 49 66 |n risk..|X#.X# If|
|000014d0| 20 79 6f 75 20 6d 61 6b | 65 20 6d 6f 64 69 66 69 | you mak|e modifi|
|000014e0| 63 61 74 69 6f 6e 73 20 | 74 6f 20 74 68 69 73 20 |cations |to this |
|000014f0| 73 6f 66 74 77 61 72 65 | 20 74 68 61 74 20 79 6f |software| that yo|
|00001500| 75 20 66 65 65 6c 20 0a | 58 23 20 69 6e 63 72 65 |u feel .|X# incre|
|00001510| 61 73 65 73 20 69 74 20 | 75 73 65 66 75 6c 6e 65 |ases it |usefulne|
|00001520| 73 73 20 66 6f 72 20 74 | 68 65 20 72 65 73 74 20 |ss for t|he rest |
|00001530| 6f 66 20 74 68 65 20 63 | 6f 6d 6d 75 6e 69 74 79 |of the c|ommunity|
|00001540| 2c 20 70 6c 65 61 73 65 | 20 0a 58 23 20 65 6d 61 |, please| .X# ema|
|00001550| 69 6c 20 74 68 65 20 63 | 68 61 6e 67 65 73 2c 20 |il the c|hanges, |
|00001560| 65 6e 68 61 6e 63 65 6d | 65 6e 74 73 2c 20 62 75 |enhancem|ents, bu|
|00001570| 67 20 66 69 78 65 73 20 | 61 73 20 77 65 6c 6c 20 |g fixes |as well |
|00001580| 61 73 20 61 6e 79 20 61 | 6e 64 20 0a 58 23 20 61 |as any a|nd .X# a|
|00001590| 6c 6c 20 69 64 65 61 73 | 20 74 6f 20 6d 65 2e 20 |ll ideas| to me. |
|000015a0| 54 68 69 73 20 73 6f 66 | 74 77 61 72 65 20 69 73 |This sof|tware is|
|000015b0| 20 67 6f 69 6e 67 20 74 | 6f 20 62 65 20 6d 61 69 | going t|o be mai|
|000015c0| 6e 74 61 69 6e 65 64 20 | 61 6e 64 20 0a 58 23 20 |ntained |and .X# |
|000015d0| 65 6e 68 61 6e 63 65 64 | 20 61 73 20 64 65 65 6d |enhanced| as deem|
|000015e0| 65 64 20 6e 65 63 65 73 | 73 61 72 79 20 62 79 20 |ed neces|sary by |
|000015f0| 74 68 65 20 63 6f 6d 6d | 75 6e 69 74 79 2e 0a 58 |the comm|unity..X|
|00001600| 23 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 0a |# | .|
|00001610| 58 23 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |X# | |
|00001620| 50 61 74 72 69 63 6b 20 | 4a 2e 20 57 6f 6c 66 65 |Patrick |J. Wolfe|
|00001630| 0a 58 23 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.X# | |
|00001640| 20 75 75 6e 65 74 21 6b | 61 69 6c 61 6e 64 21 70 | uunet!k|ailand!p|
|00001650| 77 6f 6c 66 65 0a 58 23 | 20 20 20 20 20 20 20 20 |wolfe.X#| |
|00001660| 20 20 20 20 20 20 70 77 | 6f 6c 66 65 40 6b 61 69 | pw|olfe@kai|
|00001670| 2e 63 6f 6d 0a 58 23 0a | 45 4e 44 5f 4f 46 5f 46 |.com.X#.|END_OF_F|
|00001680| 49 4c 45 0a 20 20 69 66 | 20 74 65 73 74 20 33 30 |ILE. if| test 30|
|00001690| 37 38 20 2d 6e 65 20 60 | 77 63 20 2d 63 20 3c 27 |78 -ne `|wc -c <'|
|000016a0| 4d 61 6b 65 66 69 6c 65 | 27 60 3b 20 74 68 65 6e |Makefile|'`; then|
|000016b0| 0a 20 20 20 20 65 63 68 | 6f 20 73 68 61 72 3a 20 |. ech|o shar: |
|000016c0| 5c 22 27 4d 61 6b 65 66 | 69 6c 65 27 5c 22 20 75 |\"'Makef|ile'\" u|
|000016d0| 6e 70 61 63 6b 65 64 20 | 77 69 74 68 20 77 72 6f |npacked |with wro|
|000016e0| 6e 67 20 73 69 7a 65 21 | 0a 20 20 66 69 0a 20 20 |ng size!|. fi. |
|000016f0| 23 20 65 6e 64 20 6f 66 | 20 27 4d 61 6b 65 66 69 |# end of| 'Makefi|
|00001700| 6c 65 27 0a 66 69 0a 69 | 66 20 74 65 73 74 20 2d |le'.fi.i|f test -|
|00001710| 66 20 27 52 65 61 64 6d | 65 27 20 2d 61 20 22 24 |f 'Readm|e' -a "$|
|00001720| 7b 31 7d 22 20 21 3d 20 | 22 2d 63 22 20 3b 20 74 |{1}" != |"-c" ; t|
|00001730| 68 65 6e 20 0a 20 20 65 | 63 68 6f 20 73 68 61 72 |hen . e|cho shar|
|00001740| 3a 20 57 69 6c 6c 20 6e | 6f 74 20 63 6c 6f 62 62 |: Will n|ot clobb|
|00001750| 65 72 20 65 78 69 73 74 | 69 6e 67 20 66 69 6c 65 |er exist|ing file|
|00001760| 20 5c 22 27 52 65 61 64 | 6d 65 27 5c 22 0a 65 6c | \"'Read|me'\".el|
|00001770| 73 65 0a 20 20 65 63 68 | 6f 20 73 68 61 72 3a 20 |se. ech|o shar: |
|00001780| 45 78 74 72 61 63 74 69 | 6e 67 20 5c 22 27 52 65 |Extracti|ng \"'Re|
|00001790| 61 64 6d 65 27 5c 22 20 | 5c 28 38 30 37 30 20 63 |adme'\" |\(8070 c|
|000017a0| 68 61 72 61 63 74 65 72 | 73 5c 29 0a 20 20 73 65 |haracter|s\). se|
|000017b0| 64 20 22 73 2f 5e 58 2f | 2f 22 20 3e 27 52 65 61 |d "s/^X/|/" >'Rea|
|000017c0| 64 6d 65 27 20 3c 3c 27 | 45 4e 44 5f 4f 46 5f 46 |dme' <<'|END_OF_F|
|000017d0| 49 4c 45 27 0a 58 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |ILE'.X--|--------|
|000017e0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000017f0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001800| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001810| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001820| 2d 2d 2d 2d 0a 58 09 09 | 09 57 48 41 54 20 49 53 |----.X..|.WHAT IS|
|00001830| 20 43 44 52 45 41 44 45 | 52 3f 0a 58 0a 58 43 64 | CDREADE|R?.X.XCd|
|00001840| 72 65 61 64 65 72 20 70 | 6c 61 79 73 20 61 6e 20 |reader p|lays an |
|00001850| 61 75 64 69 6f 20 63 6f | 6d 70 61 63 74 20 64 69 |audio co|mpact di|
|00001860| 73 63 20 6f 6e 20 53 69 | 6c 69 63 6f 6e 20 47 72 |sc on Si|licon Gr|
|00001870| 61 70 68 69 63 73 20 77 | 6f 72 6b 73 74 61 74 69 |aphics w|orkstati|
|00001880| 6f 6e 73 20 77 69 74 68 | 20 61 6e 0a 58 41 75 64 |ons with| an.XAud|
|00001890| 69 6f 20 50 72 6f 63 65 | 73 73 6f 72 20 28 74 68 |io Proce|ssor (th|
|000018a0| 65 20 53 47 49 20 49 6e | 64 69 67 6f 2c 20 66 6f |e SGI In|digo, fo|
|000018b0| 72 20 65 78 61 6d 70 6c | 65 29 2e 20 20 43 64 72 |r exampl|e). Cdr|
|000018c0| 65 61 64 65 72 20 63 6f | 6d 70 69 6c 65 73 20 6f |eader co|mpiles o|
|000018d0| 6e 6c 79 20 75 6e 64 65 | 72 0a 58 72 65 6c 65 61 |nly unde|r.Xrelea|
|000018e0| 73 65 20 34 2e 30 2e 31 | 20 28 6f 72 20 6c 61 74 |se 4.0.1| (or lat|
|000018f0| 65 72 29 20 6f 66 20 74 | 68 65 20 49 72 69 78 20 |er) of t|he Irix |
|00001900| 6f 70 65 72 61 74 69 6e | 67 20 73 79 73 74 65 6d |operatin|g system|
|00001910| 2e 0a 58 0a 58 56 65 72 | 73 69 6f 6e 20 31 2e 34 |..X.XVer|sion 1.4|
|00001920| 20 73 70 6f 72 74 73 20 | 61 6e 20 58 31 31 2f 4d | sports |an X11/M|
|00001930| 6f 74 69 66 20 69 6e 74 | 65 72 66 61 63 65 2c 20 |otif int|erface, |
|00001940| 61 6e 64 20 61 20 6e 65 | 77 20 22 73 68 75 66 66 |and a ne|w "shuff|
|00001950| 6c 65 22 20 66 75 6e 63 | 74 69 6f 6e 2e 0a 58 0a |le" func|tion..X.|
|00001960| 58 54 68 69 73 20 69 73 | 20 4e 4f 54 20 6a 75 73 |XThis is| NOT jus|
|00001970| 74 20 6c 69 6b 65 20 53 | 47 49 27 73 20 22 63 64 |t like S|GI's "cd|
|00001980| 70 6c 61 79 65 72 22 20 | 70 72 6f 67 72 61 6d 2c |player" |program,|
|00001990| 20 77 68 69 63 68 20 73 | 69 6d 70 6c 79 20 63 6f | which s|imply co|
|000019a0| 6d 6d 61 6e 64 73 20 74 | 68 65 20 43 44 0a 58 64 |mmands t|he CD.Xd|
|000019b0| 72 69 76 65 20 74 6f 20 | 70 6c 61 79 20 61 6e 20 |rive to |play an |
|000019c0| 61 75 64 69 6f 20 43 44 | 2c 20 61 6e 64 20 73 69 |audio CD|, and si|
|000019d0| 74 73 20 62 61 63 6b 20 | 74 6f 20 77 61 74 63 68 |ts back |to watch|
|000019e0| 2e 20 20 49 6e 20 74 68 | 61 74 20 63 61 73 65 2c |. In th|at case,|
|000019f0| 20 74 68 65 20 64 69 67 | 69 74 61 6c 0a 58 43 44 | the dig|ital.XCD|
|00001a00| 20 64 61 74 61 20 69 73 | 20 63 6f 6e 76 65 72 74 | data is| convert|
|00001a10| 65 64 20 74 6f 20 61 6e | 61 6c 6f 67 20 69 6e 73 |ed to an|alog ins|
|00001a20| 69 64 65 20 74 68 65 20 | 43 44 72 6f 6d 20 64 72 |ide the |CDrom dr|
|00001a30| 69 76 65 2c 20 61 6e 64 | 20 74 68 65 20 61 6e 61 |ive, and| the ana|
|00001a40| 6c 6f 67 20 61 75 64 69 | 6f 0a 58 6f 75 74 70 75 |log audi|o.Xoutpu|
|00001a50| 74 20 69 73 20 73 65 6e | 74 20 74 6f 20 74 68 65 |t is sen|t to the|
|00001a60| 20 68 65 61 64 70 68 6f | 6e 65 20 6a 61 63 6b 20 | headpho|ne jack |
|00001a70| 6f 6e 20 74 68 65 20 66 | 72 6f 6e 74 20 61 6e 64 |on the f|ront and|
|00001a80| 20 74 68 65 20 61 75 64 | 69 6f 20 6f 75 74 20 6a | the aud|io out j|
|00001a90| 61 63 6b 73 20 6f 6e 0a | 58 74 68 65 20 62 61 63 |acks on.|Xthe bac|
|00001aa0| 6b 20 6f 66 20 74 68 65 | 20 64 72 69 76 65 2e 20 |k of the| drive. |
|00001ab0| 20 57 69 74 68 6f 75 74 | 20 68 65 61 64 70 68 6f | Without| headpho|
|00001ac0| 6e 65 73 20 6f 72 20 61 | 20 73 74 65 72 65 6f 2c |nes or a| stereo,|
|00001ad0| 20 79 6f 75 20 63 61 6e | 27 74 20 68 65 61 72 20 | you can|'t hear |
|00001ae0| 61 6e 79 74 68 69 6e 67 | 2e 0a 58 45 76 65 6e 20 |anything|..XEven |
|00001af0| 77 69 74 68 20 74 68 65 | 6d 2c 20 74 68 65 20 73 |with the|m, the s|
|00001b00| 6f 75 6e 64 20 69 73 20 | 76 65 72 79 20 71 75 69 |ound is |very qui|
|00001b10| 65 74 2c 20 61 6e 64 20 | 73 6f 6d 65 77 68 61 74 |et, and |somewhat|
|00001b20| 20 64 69 73 74 6f 72 74 | 65 64 2e 0a 58 0a 58 43 | distort|ed..X.XC|
|00001b30| 64 72 65 61 64 65 72 20 | 75 73 65 73 20 53 47 49 |dreader |uses SGI|
|00001b40| 27 73 20 6c 69 62 63 64 | 61 75 64 69 6f 20 72 6f |'s libcd|audio ro|
|00001b50| 75 74 69 6e 65 73 20 74 | 6f 20 72 65 61 64 20 74 |utines t|o read t|
|00001b60| 68 65 20 64 69 67 69 74 | 61 6c 20 64 61 74 61 20 |he digit|al data |
|00001b70| 64 69 72 65 63 74 6c 79 | 20 66 72 6f 6d 0a 58 74 |directly| from.Xt|
|00001b80| 68 65 20 43 44 2c 20 61 | 6e 64 20 73 65 6e 64 73 |he CD, a|nd sends|
|00001b90| 20 69 74 20 74 6f 20 74 | 68 65 20 41 75 64 69 6f | it to t|he Audio|
|00001ba0| 20 50 72 6f 63 65 73 73 | 6f 72 20 66 6f 72 20 63 | Process|or for c|
|00001bb0| 6f 6e 76 65 72 73 69 6f | 6e 20 74 6f 20 61 6e 61 |onversio|n to ana|
|00001bc0| 6c 6f 67 20 61 75 64 69 | 6f 0a 58 64 61 74 61 2e |log audi|o.Xdata.|
|00001bd0| 20 20 59 6f 75 20 63 61 | 6e 20 6c 69 73 74 65 6e | You ca|n listen|
|00001be0| 20 6f 6e 20 74 68 65 20 | 49 6e 64 69 67 6f 27 73 | on the |Indigo's|
|00001bf0| 20 6d 6f 6e 6f 70 68 6f | 6e 69 63 20 73 70 65 61 | monopho|nic spea|
|00001c00| 6b 65 72 2c 20 6f 72 20 | 65 76 65 6e 20 62 65 74 |ker, or |even bet|
|00001c10| 74 65 72 2c 20 62 75 79 | 20 61 0a 58 63 61 62 6c |ter, buy| a.Xcabl|
|00001c20| 65 20 77 69 74 68 20 61 | 20 73 74 65 72 65 6f 20 |e with a| stereo |
|00001c30| 6d 69 6e 69 2d 70 6c 75 | 67 20 6f 6e 20 6f 6e 65 |mini-plu|g on one|
|00001c40| 20 65 6e 64 2c 20 61 6e | 64 20 74 77 6f 20 70 68 | end, an|d two ph|
|00001c50| 6f 6e 6f 20 70 6c 75 67 | 73 20 6f 6e 20 74 68 65 |ono plug|s on the|
|00001c60| 20 6f 74 68 65 72 2c 20 | 61 6e 64 0a 58 63 6f 6e | other, |and.Xcon|
|00001c70| 6e 65 63 74 20 66 72 6f | 6d 20 79 6f 75 72 20 49 |nect fro|m your I|
|00001c80| 6e 64 69 67 6f 27 73 20 | 6c 69 6e 65 6f 75 74 20 |ndigo's |lineout |
|00001c90| 6a 61 63 6b 20 74 6f 20 | 79 6f 75 72 20 73 74 65 |jack to |your ste|
|00001ca0| 72 65 6f 20 61 6d 70 6c | 69 66 69 65 72 27 73 20 |reo ampl|ifier's |
|00001cb0| 63 64 2d 69 6e 20 28 6f | 72 0a 58 74 61 70 65 2d |cd-in (o|r.Xtape-|
|00001cc0| 69 6e 29 20 6a 61 63 6b | 73 2e 20 20 45 6e 6a 6f |in) jack|s. Enjo|
|00001cd0| 79 21 0a 58 0a 58 57 41 | 52 4e 49 4e 47 21 20 20 |y!.X.XWA|RNING! |
|00001ce0| 49 66 20 79 6f 75 20 77 | 65 72 65 20 6a 75 73 74 |If you w|ere just|
|00001cf0| 20 75 73 69 6e 67 20 53 | 47 49 27 73 20 22 63 64 | using S|GI's "cd|
|00001d00| 70 6c 61 79 65 72 22 20 | 70 72 6f 67 72 61 6d 2c |player" |program,|
|00001d10| 20 74 75 72 6e 20 64 6f | 77 6e 20 74 68 65 20 76 | turn do|wn the v|
|00001d20| 6f 6c 75 6d 65 0a 58 62 | 65 66 6f 72 65 20 73 74 |olume.Xb|efore st|
|00001d30| 61 72 74 69 6e 67 20 22 | 63 64 72 65 61 64 65 72 |arting "|cdreader|
|00001d40| 22 20 6f 72 20 79 6f 75 | 27 6c 6c 20 72 69 73 6b |" or you|'ll risk|
|00001d50| 20 64 61 6d 61 67 69 6e | 67 20 79 6f 75 72 20 65 | damagin|g your e|
|00001d60| 71 75 69 70 6d 65 6e 74 | 20 28 61 6e 64 20 65 61 |quipment| (and ea|
|00001d70| 72 73 29 21 0a 58 0a 58 | 43 64 72 65 61 64 65 72 |rs)!.X.X|Cdreader|
|00001d80| 20 77 69 6c 6c 20 70 72 | 6f 62 61 62 6c 79 20 6f | will pr|obably o|
|00001d90| 6e 6c 79 20 77 6f 72 6b | 20 77 69 74 68 20 61 6e |nly work| with an|
|00001da0| 20 53 47 49 27 73 20 63 | 64 72 6f 6d 20 64 72 69 | SGI's c|drom dri|
|00001db0| 76 65 2e 20 20 54 68 65 | 20 70 72 6f 67 72 61 6d |ve. The| program|
|00001dc0| 20 77 69 6c 6c 0a 58 74 | 65 6c 6c 20 79 6f 75 20 | will.Xt|ell you |
|00001dd0| 69 66 20 79 6f 75 72 20 | 63 64 72 6f 6d 20 64 72 |if your |cdrom dr|
|00001de0| 69 76 65 20 64 6f 65 73 | 6e 27 74 20 73 75 70 70 |ive does|n't supp|
|00001df0| 6f 72 74 20 72 65 61 64 | 69 6e 67 20 61 75 64 69 |ort read|ing audi|
|00001e00| 6f 20 6f 76 65 72 20 74 | 68 65 20 53 43 53 49 20 |o over t|he SCSI |
|00001e10| 62 75 73 2e 0a 58 49 74 | 20 75 73 65 73 20 61 62 |bus..XIt| uses ab|
|00001e20| 6f 75 74 20 35 2d 36 25 | 20 6f 66 20 74 68 65 20 |out 5-6%| of the |
|00001e30| 63 70 75 2c 20 61 6e 64 | 20 34 25 20 6f 66 20 74 |cpu, and| 4% of t|
|00001e40| 68 65 20 53 43 53 49 20 | 62 75 73 20 62 61 6e 64 |he SCSI |bus band|
|00001e50| 77 69 64 74 68 2e 20 20 | 55 73 65 20 6f 66 20 6f |width. |Use of o|
|00001e60| 74 68 65 72 0a 58 70 72 | 6f 67 72 61 6d 73 20 77 |ther.Xpr|ograms w|
|00001e70| 68 69 63 68 20 63 68 61 | 6e 67 65 20 74 68 65 20 |hich cha|nge the |
|00001e80| 61 75 64 69 6f 20 70 72 | 6f 63 65 73 73 6f 72 27 |audio pr|ocessor'|
|00001e90| 73 20 70 61 72 61 6d 65 | 74 65 72 73 20 69 73 20 |s parame|ters is |
|00001ea0| 64 69 73 63 6f 75 72 61 | 67 65 64 20 28 62 75 74 |discoura|ged (but|
|00001eb0| 20 73 75 72 65 0a 58 63 | 61 6e 20 6d 61 6b 65 20 | sure.Xc|an make |
|00001ec0| 79 6f 75 20 6c 61 75 67 | 68 29 2e 0a 58 0a 58 54 |you laug|h)..X.XT|
|00001ed0| 68 65 20 73 63 68 65 64 | 63 74 6c 28 29 20 73 79 |he sched|ctl() sy|
|00001ee0| 73 74 65 6d 20 63 61 6c | 6c 20 69 6e 20 63 64 72 |stem cal|l in cdr|
|00001ef0| 65 61 64 65 72 20 77 69 | 6c 6c 20 28 73 69 6c 65 |eader wi|ll (sile|
|00001f00| 6e 74 6c 79 29 20 66 61 | 69 6c 20 75 6e 6c 65 73 |ntly) fa|il unles|
|00001f10| 73 20 74 68 65 20 70 72 | 6f 67 72 61 6d 0a 58 69 |s the pr|ogram.Xi|
|00001f20| 73 20 69 6e 73 74 61 6c | 6c 65 64 20 73 65 74 75 |s instal|led setu|
|00001f30| 69 64 20 72 6f 6f 74 2c | 20 6f 72 20 79 6f 75 72 |id root,| or your|
|00001f40| 20 6b 65 72 6e 65 6c 20 | 63 6f 6e 66 69 67 75 72 | kernel |configur|
|00001f50| 61 74 69 6f 6e 20 69 73 | 20 6d 6f 64 69 66 69 65 |ation is| modifie|
|00001f60| 64 20 74 6f 20 61 6c 6c | 6f 77 0a 58 6e 6f 6e 2d |d to all|ow.Xnon-|
|00001f70| 72 6f 6f 74 20 75 73 65 | 72 73 20 74 6f 20 75 73 |root use|rs to us|
|00001f80| 65 20 6e 6f 6e 2d 64 65 | 67 72 61 64 69 6e 67 20 |e non-de|grading |
|00001f90| 70 72 69 6f 72 69 74 69 | 65 73 2e 20 20 53 65 65 |prioriti|es. See|
|00001fa0| 20 74 68 65 20 53 43 48 | 45 44 43 54 4c 28 32 29 | the SCH|EDCTL(2)|
|00001fb0| 20 61 6e 64 0a 58 41 55 | 54 4f 43 4f 4e 46 49 47 | and.XAU|TOCONFIG|
|00001fc0| 28 31 4d 29 20 6d 61 6e | 70 61 67 65 73 2c 20 61 |(1M) man|pages, a|
|00001fd0| 6e 64 20 74 68 65 20 49 | 72 69 78 20 50 72 6f 67 |nd the I|rix Prog|
|00001fe0| 72 61 6d 6d 69 6e 67 20 | 47 75 69 64 65 20 56 6f |ramming |Guide Vo|
|00001ff0| 6c 20 32 2c 20 73 65 63 | 74 69 6f 6e 20 31 34 2e |l 2, sec|tion 14.|
|00002000| 32 2e 33 0a 58 66 6f 72 | 20 63 6f 6d 70 6c 65 74 |2.3.Xfor| complet|
|00002010| 65 20 64 65 74 61 69 6c | 73 2e 20 20 54 68 61 74 |e detail|s. That|
|00002020| 27 73 20 77 68 61 74 20 | 49 20 64 69 64 2c 20 61 |'s what |I did, a|
|00002030| 6e 64 20 69 74 27 73 20 | 70 72 65 74 74 79 20 65 |nd it's |pretty e|
|00002040| 61 73 79 21 20 20 42 61 | 73 69 63 61 6c 6c 79 2c |asy! Ba|sically,|
|00002050| 0a 58 62 65 63 6f 6d 65 | 20 73 75 70 65 72 75 73 |.Xbecome| superus|
|00002060| 65 72 2c 20 65 64 69 74 | 20 2f 75 73 72 2f 73 79 |er, edit| /usr/sy|
|00002070| 73 67 65 6e 2f 6d 61 73 | 74 65 72 2e 64 2f 64 69 |sgen/mas|ter.d/di|
|00002080| 73 70 2c 20 66 69 6e 64 | 20 74 68 65 20 76 61 72 |sp, find| the var|
|00002090| 69 61 62 6c 65 0a 58 22 | 6e 64 70 72 69 5f 68 69 |iable.X"|ndpri_hi|
|000020a0| 6c 69 6d 22 2c 20 63 68 | 61 6e 67 65 20 69 74 27 |lim", ch|ange it'|
|000020b0| 73 20 76 61 6c 75 65 20 | 74 6f 20 22 4e 44 50 48 |s value |to "NDPH|
|000020c0| 49 4d 41 58 22 2c 20 72 | 75 6e 20 22 61 75 74 6f |IMAX", r|un "auto|
|000020d0| 63 6f 6e 66 69 67 22 20 | 61 6e 64 20 72 65 62 6f |config" |and rebo|
|000020e0| 6f 74 2e 0a 58 0a 58 53 | 6f 6d 65 20 70 65 6f 70 |ot..X.XS|ome peop|
|000020f0| 6c 65 20 74 68 69 6e 6b | 20 74 68 65 20 64 65 6c |le think| the del|
|00002100| 61 79 20 69 73 20 63 61 | 75 73 65 64 20 62 79 20 |ay is ca|used by |
|00002110| 64 69 73 6b 20 49 2f 4f | 2c 20 62 75 74 20 62 65 |disk I/O|, but be|
|00002120| 6c 69 65 76 65 20 6d 65 | 20 69 74 27 73 20 6e 6f |lieve me| it's no|
|00002130| 74 2e 0a 58 54 68 61 74 | 27 73 20 77 68 61 74 20 |t..XThat|'s what |
|00002140| 49 20 74 68 6f 75 67 68 | 74 2c 20 6f 72 69 67 69 |I though|t, origi|
|00002150| 6e 61 6c 6c 79 2c 20 62 | 75 74 20 4d 61 72 6b 20 |nally, b|ut Mark |
|00002160| 43 61 6c 6c 6f 77 20 6f | 66 20 53 47 49 20 63 6f |Callow o|f SGI co|
|00002170| 72 72 65 63 74 65 64 20 | 6d 65 2c 20 61 6e 64 0a |rrected |me, and.|
|00002180| 58 70 75 74 20 6d 65 20 | 6f 6e 74 6f 20 74 68 65 |Xput me |onto the|
|00002190| 20 66 69 78 65 73 2e 0a | 58 0a 58 49 20 77 72 6f | fixes..|X.XI wro|
|000021a0| 74 65 20 63 64 72 65 61 | 64 65 72 20 6f 6e 20 61 |te cdrea|der on a|
|000021b0| 20 31 36 20 4d 62 20 53 | 47 49 20 49 6e 64 69 67 | 16 Mb S|GI Indig|
|000021c0| 6f 20 72 75 6e 6e 69 6e | 67 20 49 72 69 78 20 34 |o runnin|g Irix 4|
|000021d0| 2e 30 2e 31 2e 0a 58 0a | 58 20 20 20 20 20 20 20 |.0.1..X.|X |
|000021e0| 20 50 61 74 72 69 63 6b | 20 57 6f 6c 66 65 20 20 | Patrick| Wolfe |
|000021f0| 28 70 77 6f 6c 66 65 40 | 6b 61 69 2e 63 6f 6d 2c |(pwolfe@|kai.com,|
|00002200| 20 75 75 6e 65 74 21 6b | 61 69 6c 61 6e 64 21 70 | uunet!k|ailand!p|
|00002210| 77 6f 6c 66 65 29 0a 58 | 0a 58 2d 2d 2d 2d 2d 2d |wolfe).X|.X------|
|00002220| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002230| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002240| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002250| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002260| 2d 2d 2d 2d 2d 2d 2d 2d | 0a 58 09 09 09 52 45 4c |--------|.X...REL|
|00002270| 45 41 53 45 20 4e 4f 54 | 45 53 3a 0a 58 0a 58 56 |EASE NOT|ES:.X.XV|
|00002280| 45 52 53 49 4f 4e 20 31 | 2e 34 3a 0a 58 0a 58 44 |ERSION 1|.4:.X.XD|
|00002290| 69 73 74 72 69 62 75 74 | 65 64 20 74 6f 20 63 6f |istribut|ed to co|
|000022a0| 6d 70 2e 73 6f 75 72 63 | 65 73 2e 6d 69 73 63 2e |mp.sourc|es.misc.|
|000022b0| 0a 58 0a 58 41 64 64 65 | 64 20 73 68 75 66 66 6c |.X.XAdde|d shuffl|
|000022c0| 65 2c 20 74 72 61 63 6b | 73 20 61 6e 64 20 69 6e |e, track|s and in|
|000022d0| 66 6f 20 62 75 74 74 6f | 6e 73 2e 20 20 53 68 75 |fo butto|ns. Shu|
|000022e0| 66 66 6c 65 20 70 6c 61 | 79 73 20 74 68 65 20 77 |ffle pla|ys the w|
|000022f0| 68 6f 6c 65 20 64 69 73 | 63 2c 20 62 75 74 20 69 |hole dis|c, but i|
|00002300| 6e 0a 58 72 61 6e 64 6f | 6d 20 6f 72 64 65 72 2e |n.Xrando|m order.|
|00002310| 20 20 54 72 61 63 6b 73 | 20 64 69 73 70 6c 61 79 | Tracks| display|
|00002320| 73 20 74 68 65 20 6c 69 | 73 74 20 61 6e 64 20 6c |s the li|st and l|
|00002330| 65 6e 67 74 68 20 6f 66 | 20 74 72 61 63 6b 73 2c |ength of| tracks,|
|00002340| 20 6c 69 6b 65 20 22 63 | 64 69 6e 66 6f 22 0a 58 | like "c|dinfo".X|
|00002350| 64 69 64 2e 20 20 49 6e | 66 6f 20 64 69 73 70 6c |did. In|fo displ|
|00002360| 61 79 73 20 73 6f 6d 65 | 20 69 6e 66 6f 72 6d 61 |ays some| informa|
|00002370| 74 69 6f 6e 20 61 62 6f | 75 74 20 74 68 65 20 70 |tion abo|ut the p|
|00002380| 72 6f 67 72 61 6d 20 61 | 6e 64 20 70 72 6f 67 72 |rogram a|nd progr|
|00002390| 61 6d 6d 65 72 2e 20 20 | 41 6c 73 6f 2c 0a 58 75 |ammer. |Also,.Xu|
|000023a0| 70 64 61 74 65 64 20 74 | 68 65 20 6f 6e 6c 69 6e |pdated t|he onlin|
|000023b0| 65 20 68 65 6c 70 20 73 | 63 72 65 65 6e 20 74 6f |e help s|creen to|
|000023c0| 20 62 65 20 6d 6f 72 65 | 20 75 73 65 66 75 6c 2e | be more| useful.|
|000023d0| 0a 58 0a 58 41 6c 73 6f | 2c 20 72 65 6f 72 67 61 |.X.XAlso|, reorga|
|000023e0| 6e 69 7a 65 64 20 63 6f | 64 65 20 73 6f 20 74 68 |nized co|de so th|
|000023f0| 61 74 20 74 68 65 20 70 | 72 6f 67 72 61 6d 20 22 |at the p|rogram "|
|00002400| 73 68 6f 75 6c 64 22 20 | 72 75 6e 20 6f 6e 20 61 |should" |run on a|
|00002410| 6e 79 20 73 67 69 20 69 | 72 69 78 20 34 2e 30 2e |ny sgi i|rix 4.0.|
|00002420| 31 0a 58 73 79 73 74 65 | 6d 2c 20 77 68 65 74 68 |1.Xsyste|m, wheth|
|00002430| 65 72 20 79 6f 75 20 68 | 61 76 65 20 61 20 63 64 |er you h|ave a cd|
|00002440| 20 64 72 69 76 65 20 61 | 6e 64 20 61 75 64 69 6f | drive a|nd audio|
|00002450| 20 70 72 6f 63 65 73 73 | 6f 72 20 6f 72 20 6e 6f | process|or or no|
|00002460| 74 2e 20 20 4f 66 20 63 | 6f 75 72 73 65 2c 20 69 |t. Of c|ourse, i|
|00002470| 74 0a 58 77 6f 6e 27 74 | 20 64 6f 20 79 6f 75 20 |t.Xwon't| do you |
|00002480| 61 6e 79 20 67 6f 6f 64 | 2c 20 62 75 74 20 74 68 |any good|, but th|
|00002490| 6f 73 65 20 66 6f 6c 6b | 73 20 69 6e 74 65 72 65 |ose folk|s intere|
|000024a0| 73 74 65 64 20 69 6e 20 | 75 73 69 6e 67 20 74 68 |sted in |using th|
|000024b0| 69 73 20 70 72 6f 67 72 | 61 6d 20 61 73 20 61 6e |is progr|am as an|
|000024c0| 0a 58 65 78 61 6d 70 6c | 65 20 66 6f 72 20 58 31 |.Xexampl|e for X1|
|000024d0| 31 2f 4d 6f 74 69 66 20 | 70 72 6f 67 72 61 6d 6d |1/Motif |programm|
|000024e0| 69 6e 67 20 77 6f 6e 27 | 74 20 6d 69 6e 64 20 74 |ing won'|t mind t|
|000024f0| 6f 6f 20 6d 75 63 68 2e | 0a 58 0a 58 50 75 74 20 |oo much.|.X.XPut |
|00002500| 61 6c 6c 20 6f 66 20 74 | 68 65 20 63 6f 6d 6d 6f |all of t|he commo|
|00002510| 6e 6c 79 20 75 73 65 64 | 20 6d 65 73 73 61 67 65 |nly used| message|
|00002520| 73 20 61 6e 64 20 77 6f | 72 64 73 20 69 6e 20 64 |s and wo|rds in d|
|00002530| 65 66 69 6e 65 73 2c 20 | 66 6f 72 20 65 61 73 79 |efines, |for easy|
|00002540| 0a 58 63 75 73 74 6f 6d | 69 7a 61 74 69 6f 6e 20 |.Xcustom|ization |
|00002550| 61 6e 64 20 74 72 61 6e | 73 6c 61 74 69 6f 6e 20 |and tran|slation |
|00002560| 74 6f 20 66 6f 72 65 69 | 67 6e 20 6c 61 6e 67 75 |to forei|gn langu|
|00002570| 61 67 65 73 2e 0a 58 0a | 58 46 69 78 65 64 20 6e |ages..X.|XFixed n|
|00002580| 65 78 74 20 61 6e 64 20 | 70 72 65 76 20 62 75 74 |ext and |prev but|
|00002590| 74 6f 6e 73 20 74 6f 20 | 77 6f 72 6b 20 69 6e 20 |tons to |work in |
|000025a0| 73 74 6f 70 70 65 64 20 | 6d 6f 64 65 2c 20 66 6f |stopped |mode, fo|
|000025b0| 72 20 73 65 6c 65 63 74 | 69 6e 67 20 77 68 69 63 |r select|ing whic|
|000025c0| 68 20 74 72 61 63 6b 0a | 58 74 6f 20 73 74 61 72 |h track.|Xto star|
|000025d0| 74 20 70 6c 61 79 69 6e | 67 20 6f 6e 2e 0a 58 0a |t playin|g on..X.|
|000025e0| 58 44 69 73 63 6f 76 65 | 72 65 64 20 77 68 61 74 |XDiscove|red what|
|000025f0| 20 68 61 70 70 65 6e 73 | 20 77 68 65 6e 20 79 6f | happens| when yo|
|00002600| 75 20 68 61 76 65 20 74 | 68 65 20 68 69 67 68 65 |u have t|he highe|
|00002610| 73 74 20 70 72 69 6f 72 | 69 74 79 20 74 61 73 6b |st prior|ity task|
|00002620| 20 6f 6e 20 79 6f 75 72 | 20 73 79 73 74 65 6d 0a | on your| system.|
|00002630| 58 67 6f 20 69 6e 74 6f | 20 61 20 63 70 75 20 6c |Xgo into| a cpu l|
|00002640| 6f 6f 70 2e 20 20 49 20 | 6b 6e 6f 77 2c 20 49 20 |oop. I |know, I |
|00002650| 6b 6e 6f 77 2c 20 49 20 | 73 68 6f 75 6c 64 6e 27 |know, I |shouldn'|
|00002660| 74 20 70 75 74 20 62 75 | 67 73 20 69 6e 20 6d 79 |t put bu|gs in my|
|00002670| 20 70 72 6f 67 72 61 6d | 73 2e 20 20 49 74 27 73 | program|s. It's|
|00002680| 0a 58 75 6e 70 72 6f 64 | 75 63 74 69 76 65 2e 0a |.Xunprod|uctive..|
|00002690| 58 0a 58 56 45 52 53 49 | 4f 4e 20 31 2e 33 3a 0a |X.XVERSI|ON 1.3:.|
|000026a0| 58 0a 58 53 70 6f 72 74 | 73 20 61 6e 20 58 31 31 |X.XSport|s an X11|
|000026b0| 2f 4d 6f 74 69 66 20 75 | 73 65 72 20 69 6e 74 65 |/Motif u|ser inte|
|000026c0| 72 66 61 63 65 2e 20 20 | 4d 75 63 68 20 6e 69 63 |rface. |Much nic|
|000026d0| 65 72 2e 20 20 41 6c 73 | 6f 20 64 69 73 70 6c 61 |er. Als|o displa|
|000026e0| 79 73 20 70 72 6f 67 72 | 61 6d 20 73 74 61 74 75 |ys progr|am statu|
|000026f0| 73 0a 58 69 6e 20 61 20 | 77 69 6e 64 6f 77 20 61 |s.Xin a |window a|
|00002700| 62 6f 76 65 20 74 68 65 | 20 62 75 74 74 6f 6e 73 |bove the| buttons|
|00002710| 2e 20 20 4e 6f 74 20 64 | 69 73 74 72 69 62 75 74 |. Not d|istribut|
|00002720| 65 64 2e 0a 58 0a 58 56 | 45 52 53 49 4f 4e 20 31 |ed..X.XV|ERSION 1|
|00002730| 2e 32 3a 0a 58 0a 58 53 | 70 6f 72 74 73 20 61 6e |.2:.X.XS|ports an|
|00002740| 20 58 31 31 20 75 73 65 | 72 20 69 6e 74 65 72 66 | X11 use|r interf|
|00002750| 61 63 65 20 28 75 73 69 | 6e 67 20 41 74 68 65 6e |ace (usi|ng Athen|
|00002760| 61 20 57 69 64 67 65 74 | 73 29 2e 20 20 4d 75 63 |a Widget|s). Muc|
|00002770| 68 20 6e 69 63 65 72 2c | 20 62 75 74 20 6e 6f 74 |h nicer,| but not|
|00002780| 0a 58 70 65 72 66 65 63 | 74 2e 20 20 49 20 6c 69 |.Xperfec|t. I li|
|00002790| 6b 65 20 62 65 69 6e 67 | 20 74 6f 20 70 61 75 73 |ke being| to paus|
|000027a0| 65 20 69 74 20 77 69 74 | 68 6f 75 74 20 6b 69 6c |e it wit|hout kil|
|000027b0| 6c 69 6e 67 20 69 74 2e | 20 20 4e 6f 74 20 64 69 |ling it.| Not di|
|000027c0| 73 74 72 69 62 75 74 65 | 64 2e 0a 58 0a 58 43 64 |stribute|d..X.XCd|
|000027d0| 72 65 61 64 65 72 20 6e | 6f 77 20 68 61 73 20 61 |reader n|ow has a|
|000027e0| 20 6e 69 63 65 20 4d 6f | 74 69 66 20 73 74 79 6c | nice Mo|tif styl|
|000027f0| 65 20 75 73 65 72 20 69 | 6e 74 65 72 66 61 63 65 |e user i|nterface|
|00002800| 2e 20 20 49 20 72 65 6d | 6f 76 65 64 20 61 6c 6c |. I rem|oved all|
|00002810| 20 6f 66 20 74 68 65 20 | 64 65 62 75 67 0a 58 63 | of the |debug.Xc|
|00002820| 6f 64 65 20 61 6e 64 20 | 63 6f 6d 6d 61 6e 64 20 |ode and |command |
|00002830| 6c 69 6e 65 20 6f 70 74 | 69 6f 6e 73 2c 20 73 69 |line opt|ions, si|
|00002840| 6e 63 65 20 6d 6f 73 74 | 6c 79 20 70 65 6f 70 6c |nce most|ly peopl|
|00002850| 65 20 6a 75 73 74 20 77 | 61 6e 74 20 74 6f 20 70 |e just w|ant to p|
|00002860| 6c 61 79 20 63 64 27 73 | 20 66 72 6f 6d 0a 58 73 |lay cd's| from.Xs|
|00002870| 74 61 72 74 20 74 6f 20 | 65 6e 64 2c 20 70 6f 73 |tart to |end, pos|
|00002880| 73 69 62 6c 79 20 70 61 | 75 73 69 6e 67 20 61 74 |sibly pa|using at|
|00002890| 20 72 61 6e 64 6f 6d 20 | 70 6f 69 6e 74 73 2e 20 | random |points. |
|000028a0| 20 41 74 20 6c 65 61 73 | 74 2c 20 74 68 61 74 27 | At leas|t, that'|
|000028b0| 73 20 61 6c 6c 20 49 20 | 64 6f 2e 0a 58 53 6f 72 |s all I |do..XSor|
|000028c0| 72 79 2c 20 6e 6f 20 22 | 73 63 61 6e 22 20 62 75 |ry, no "|scan" bu|
|000028d0| 74 74 6f 6e 73 2e 20 20 | 48 6f 77 20 6d 75 63 68 |ttons. |How much|
|000028e0| 20 64 69 64 20 79 6f 75 | 20 70 61 79 20 66 6f 72 | did you| pay for|
|000028f0| 20 74 68 69 73 20 70 72 | 6f 67 72 61 6d 20 61 6e | this pr|ogram an|
|00002900| 79 77 61 79 3f 0a 58 0a | 58 56 45 52 53 49 4f 4e |yway?.X.|XVERSION|
|00002910| 20 31 2e 31 3a 0a 58 0a | 58 54 68 69 73 20 76 65 | 1.1:.X.|XThis ve|
|00002920| 72 73 69 6f 6e 20 77 61 | 73 20 70 6f 73 74 65 64 |rsion wa|s posted|
|00002930| 20 74 6f 20 63 6f 6d 70 | 2e 73 79 73 2e 73 67 69 | to comp|.sys.sgi|
|00002940| 2e 0a 58 0a 58 43 64 72 | 65 61 64 65 72 20 68 61 |..X.XCdr|eader ha|
|00002950| 73 20 62 65 65 6e 20 69 | 6d 70 72 6f 76 65 64 20 |s been i|mproved |
|00002960| 69 6e 20 74 68 61 74 20 | 69 74 20 62 75 66 66 65 |in that |it buffe|
|00002970| 72 73 20 75 70 20 65 6e | 6f 75 67 68 20 61 75 64 |rs up en|ough aud|
|00002980| 69 6f 20 64 61 74 61 20 | 74 6f 20 65 6c 69 6d 69 |io data |to elimi|
|00002990| 6e 61 74 65 0a 58 70 72 | 61 63 74 69 63 61 6c 6c |nate.Xpr|acticall|
|000029a0| 79 20 61 6c 6c 20 70 61 | 75 73 65 73 20 69 6e 20 |y all pa|uses in |
|000029b0| 74 68 65 20 6d 75 73 69 | 63 20 74 68 61 74 20 6f |the musi|c that o|
|000029c0| 63 63 75 72 72 65 64 20 | 70 72 65 76 69 6f 75 73 |ccurred |previous|
|000029d0| 6c 79 2e 20 20 49 20 77 | 61 73 20 69 6e 66 6f 72 |ly. I w|as infor|
|000029e0| 6d 65 64 0a 58 74 68 61 | 74 20 74 68 65 73 65 20 |med.Xtha|t these |
|000029f0| 77 65 72 65 20 61 70 70 | 61 72 65 6e 74 6c 79 20 |were app|arently |
|00002a00| 64 75 65 20 74 6f 20 63 | 70 75 20 63 6f 6e 66 6c |due to c|pu confl|
|00002a10| 69 63 74 73 20 64 75 72 | 69 6e 67 20 6c 61 72 67 |icts dur|ing larg|
|00002a20| 65 20 61 6d 6f 75 6e 74 | 73 20 6f 66 0a 58 67 72 |e amount|s of.Xgr|
|00002a30| 61 70 68 69 63 73 20 73 | 63 72 6f 6c 6c 69 6e 67 |aphics s|crolling|
|00002a40| 2e 0a 58 0a 58 56 45 52 | 53 49 4f 4e 20 31 2e 30 |..X.XVER|SION 1.0|
|00002a50| 3a 0a 58 0a 58 54 68 69 | 73 20 76 65 72 73 69 6f |:.X.XThi|s versio|
|00002a60| 6e 20 77 61 73 20 75 70 | 6c 6f 61 64 65 64 20 74 |n was up|loaded t|
|00002a70| 6f 20 75 75 6e 65 74 27 | 73 20 7e 66 74 70 2f 74 |o uunet'|s ~ftp/t|
|00002a80| 6d 70 20 64 69 72 65 63 | 74 6f 72 79 20 76 69 61 |mp direc|tory via|
|00002a90| 20 61 6e 6f 6e 79 6d 6f | 75 73 20 66 74 70 0a 58 | anonymo|us ftp.X|
|00002aa0| 28 64 6f 6e 27 74 20 62 | 6f 74 68 65 72 20 63 68 |(don't b|other ch|
|00002ab0| 65 63 6b 69 6e 67 2c 20 | 69 74 27 73 20 6e 6f 74 |ecking, |it's not|
|00002ac0| 20 74 68 65 72 65 20 61 | 6e 79 6d 6f 72 65 29 20 | there a|nymore) |
|00002ad0| 61 6e 64 20 61 6e 6e 6f | 75 6e 63 65 64 20 69 6e |and anno|unced in|
|00002ae0| 20 63 6f 6d 70 2e 73 79 | 73 2e 73 67 69 2e 0a 58 | comp.sy|s.sgi..X|
|00002af0| 0a 58 49 74 20 77 61 73 | 20 6d 79 20 66 69 72 73 |.XIt was| my firs|
|00002b00| 74 20 28 62 61 72 65 6c | 79 29 20 77 6f 72 6b 69 |t (barel|y) worki|
|00002b10| 6e 67 20 76 65 72 73 69 | 6f 6e 20 6f 66 20 74 68 |ng versi|on of th|
|00002b20| 69 73 20 70 72 6f 67 72 | 61 6d 2e 0a 58 0a 58 2d |is progr|am..X.X-|
|00002b30| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002b40| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002b50| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002b60| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002b70| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 0a 58 09 |--------|-----.X.|
|00002b80| 09 09 4d 49 53 43 20 4e | 4f 54 45 53 3a 0a 58 0a |..MISC N|OTES:.X.|
|00002b90| 58 54 68 65 72 65 20 69 | 73 20 61 20 6d 69 6e 6f |XThere i|s a mino|
|00002ba0| 72 20 65 72 72 6f 72 20 | 69 6e 20 49 72 69 78 20 |r error |in Irix |
|00002bb0| 34 2e 30 2e 31 27 73 20 | 63 64 61 75 64 69 6f 2e |4.0.1's |cdaudio.|
|00002bc0| 68 20 69 6e 63 6c 75 64 | 65 20 66 69 6c 65 20 77 |h includ|e file w|
|00002bd0| 68 69 63 68 20 63 61 75 | 73 65 73 0a 58 77 61 72 |hich cau|ses.Xwar|
|00002be0| 6e 69 6e 67 20 6d 65 73 | 73 61 67 65 73 20 63 6f |ning mes|sages co|
|00002bf0| 6d 70 6c 61 69 6e 69 6e | 67 20 61 62 6f 75 74 20 |mplainin|g about |
|00002c00| 61 6e 20 65 78 74 72 61 | 20 63 6f 6d 6d 61 2e 20 |an extra| comma. |
|00002c10| 20 49 67 6e 6f 72 65 20 | 74 68 65 6d 2c 20 6f 72 | Ignore |them, or|
|00002c20| 20 66 69 78 20 74 68 65 | 0a 58 69 6e 63 6c 75 64 | fix the|.Xinclud|
|00002c30| 65 20 66 69 6c 65 2e 20 | 20 41 6c 73 6f 2c 20 73 |e file. | Also, s|
|00002c40| 6f 6d 65 20 6d 61 6e 70 | 61 67 65 73 20 66 6f 72 |ome manp|ages for|
|00002c50| 20 43 44 20 72 6f 75 74 | 69 6e 65 73 20 61 72 65 | CD rout|ines are|
|00002c60| 20 69 6e 63 6f 72 72 65 | 63 74 2c 20 6f 72 20 63 | incorre|ct, or c|
|00002c70| 6f 6e 74 61 69 6e 0a 58 | 74 79 70 6f 73 2e 20 20 |ontain.X|typos. |
|00002c80| 54 68 65 73 65 20 61 72 | 65 20 61 6c 6c 20 73 75 |These ar|e all su|
|00002c90| 70 70 6f 73 65 64 20 74 | 6f 20 62 65 20 66 69 78 |pposed t|o be fix|
|00002ca0| 65 64 20 69 6e 20 74 68 | 65 20 6e 65 78 74 20 49 |ed in th|e next I|
|00002cb0| 72 69 78 20 72 65 6c 65 | 61 73 65 2e 0a 58 0a 58 |rix rele|ase..X.X|
|00002cc0| 57 68 69 6c 65 20 77 6f | 72 6b 69 6e 67 20 6f 6e |While wo|rking on|
|00002cd0| 20 63 64 72 65 61 64 65 | 72 2c 20 49 20 64 69 73 | cdreade|r, I dis|
|00002ce0| 63 6f 76 65 72 65 64 20 | 61 20 70 72 6f 62 6c 65 |covered |a proble|
|00002cf0| 6d 20 69 6e 20 74 68 65 | 20 53 47 49 20 43 44 20 |m in the| SGI CD |
|00002d00| 61 75 64 69 6f 20 6c 69 | 62 72 61 72 79 0a 58 72 |audio li|brary.Xr|
|00002d10| 6f 75 74 69 6e 65 20 43 | 44 72 65 61 64 64 61 28 |outine C|Dreadda(|
|00002d20| 29 2e 20 20 53 65 65 20 | 63 6f 6d 6d 65 6e 74 73 |). See |comments|
|00002d30| 20 69 6e 20 74 68 65 20 | 73 6f 75 72 63 65 20 63 | in the |source c|
|00002d40| 6f 64 65 2e 20 20 49 27 | 76 65 20 62 65 65 6e 20 |ode. I'|ve been |
|00002d50| 74 6f 6c 64 20 74 68 61 | 74 20 74 68 69 73 0a 58 |told tha|t this.X|
|00002d60| 69 73 20 66 69 78 65 64 | 20 69 6e 20 74 68 65 20 |is fixed| in the |
|00002d70| 6e 65 78 74 20 49 72 69 | 78 20 72 65 6c 65 61 73 |next Iri|x releas|
|00002d80| 65 2c 20 73 6f 20 61 66 | 74 65 72 20 79 6f 75 20 |e, so af|ter you |
|00002d90| 75 70 67 72 61 64 65 2c | 20 62 65 20 73 75 72 65 |upgrade,| be sure|
|00002da0| 20 74 6f 20 72 65 6d 6f | 76 65 20 74 68 65 0a 58 | to remo|ve the.X|
|00002db0| 2d 44 49 52 49 58 34 30 | 31 5f 43 44 52 45 41 44 |-DIRIX40|1_CDREAD|
|00002dc0| 44 41 5f 42 55 47 20 66 | 72 6f 6d 20 74 68 65 20 |DA_BUG f|rom the |
|00002dd0| 4d 61 6b 65 66 69 6c 65 | 20 61 6e 64 20 72 65 63 |Makefile| and rec|
|00002de0| 6f 6d 70 69 6c 65 2e 0a | 58 0a 58 54 68 65 72 65 |ompile..|X.XThere|
|00002df0| 20 69 73 20 61 20 32 2d | 34 20 73 65 63 6f 6e 64 | is a 2-|4 second|
|00002e00| 20 64 65 6c 61 79 20 66 | 6f 72 20 61 6e 79 74 68 | delay f|or anyth|
|00002e10| 69 6e 67 20 74 6f 20 68 | 61 70 70 65 6e 20 28 70 |ing to h|appen (p|
|00002e20| 6c 61 79 2c 20 70 61 75 | 73 65 2c 20 73 74 6f 70 |lay, pau|se, stop|
|00002e30| 29 2e 0a 58 54 68 61 74 | 27 73 20 62 65 63 61 75 |)..XThat|'s becau|
|00002e40| 73 65 20 6f 66 20 74 68 | 65 20 68 75 67 65 20 61 |se of th|e huge a|
|00002e50| 75 64 69 6f 20 62 75 66 | 66 65 72 20 62 65 69 6e |udio buf|fer bein|
|00002e60| 67 20 75 73 65 64 2e 0a | 58 0a 58 41 20 63 6f 75 |g used..|X.XA cou|
|00002e70| 70 6c 65 20 61 64 76 61 | 6e 74 61 67 65 73 20 6f |ple adva|ntages o|
|00002e80| 66 20 6d 79 20 63 64 72 | 65 61 64 65 72 20 6f 76 |f my cdr|eader ov|
|00002e90| 65 72 20 53 47 49 27 73 | 20 63 64 70 6c 61 79 65 |er SGI's| cdplaye|
|00002ea0| 72 20 70 72 6f 67 72 61 | 6d 3a 0a 58 0a 58 2d 20 |r progra|m:.X.X- |
|00002eb0| 54 68 65 72 65 20 69 73 | 20 61 20 6e 6f 74 69 63 |There is| a notic|
|00002ec0| 69 62 6c 65 20 63 6c 69 | 63 6b 69 6e 67 20 6e 6f |ible cli|cking no|
|00002ed0| 69 73 65 20 63 6f 6d 69 | 6e 67 20 6f 75 74 20 6f |ise comi|ng out o|
|00002ee0| 66 20 6d 79 20 63 64 72 | 6f 6d 20 64 72 69 76 65 |f my cdr|om drive|
|00002ef0| 27 73 20 61 75 64 69 6f | 0a 58 20 20 6a 61 63 6b |'s audio|.X jack|
|00002f00| 73 20 28 77 68 65 72 65 | 20 74 68 65 20 61 75 64 |s (where| the aud|
|00002f10| 69 6f 20 6f 75 74 70 75 | 74 20 63 6f 6d 65 73 20 |io outpu|t comes |
|00002f20| 77 68 65 6e 20 72 75 6e | 6e 69 6e 67 20 53 47 49 |when run|ning SGI|
|00002f30| 27 73 20 63 64 70 6c 61 | 79 65 72 29 2e 20 20 54 |'s cdpla|yer). T|
|00002f40| 68 69 73 20 69 73 0a 58 | 20 20 6e 6f 74 20 74 68 |his is.X| not th|
|00002f50| 65 20 63 6c 69 63 6b 69 | 6e 67 20 74 68 61 74 20 |e clicki|ng that |
|00002f60| 73 6f 6d 65 20 70 65 6f | 70 6c 65 20 64 65 73 63 |some peo|ple desc|
|00002f70| 72 69 62 65 20 77 68 65 | 6e 20 74 68 65 20 61 75 |ribe whe|n the au|
|00002f80| 64 69 6f 20 70 61 75 73 | 65 73 20 64 75 65 20 74 |dio paus|es due t|
|00002f90| 6f 20 63 70 75 0a 58 20 | 20 73 63 68 65 64 75 6c |o cpu.X | schedul|
|00002fa0| 69 6e 67 20 63 6f 6e 66 | 6c 69 63 74 73 2c 20 69 |ing conf|licts, i|
|00002fb0| 74 27 73 20 73 6f 6d 65 | 20 64 69 73 74 6f 72 74 |t's some| distort|
|00002fc0| 69 6f 6e 2c 20 61 70 70 | 61 72 65 6e 74 6c 79 20 |ion, app|arently |
|00002fd0| 66 72 6f 6d 20 74 68 65 | 20 63 64 72 6f 6d 20 64 |from the| cdrom d|
|00002fe0| 72 69 76 65 0a 58 20 20 | 6d 6f 74 6f 72 2e 20 20 |rive.X |motor. |
|00002ff0| 49 20 64 6f 6e 27 74 20 | 6b 6e 6f 77 20 69 66 20 |I don't |know if |
|00003000| 74 68 69 73 20 70 72 6f | 62 6c 65 6d 20 69 73 20 |this pro|blem is |
|00003010| 63 6f 6d 6d 6f 6e 20 74 | 6f 20 61 6c 6c 20 63 64 |common t|o all cd|
|00003020| 72 6f 6d 20 64 72 69 76 | 65 73 2c 20 62 75 74 20 |rom driv|es, but |
|00003030| 69 74 0a 58 20 20 73 75 | 72 65 20 69 73 20 61 6e |it.X su|re is an|
|00003040| 6e 6f 79 69 6e 67 2e 20 | 20 43 64 72 65 61 64 65 |noying. | Cdreade|
|00003050| 72 27 73 20 6f 75 74 70 | 75 74 20 69 73 20 74 68 |r's outp|ut is th|
|00003060| 65 20 44 41 43 20 6a 61 | 63 6b 73 20 6f 6e 20 74 |e DAC ja|cks on t|
|00003070| 68 65 20 62 61 63 6b 20 | 6f 66 20 74 68 65 0a 58 |he back |of the.X|
|00003080| 20 20 49 6e 64 69 67 6f | 2c 20 61 6e 64 20 64 6f | Indigo|, and do|
|00003090| 65 73 6e 27 74 20 68 61 | 76 65 20 74 68 69 73 20 |esn't ha|ve this |
|000030a0| 70 72 6f 62 6c 65 6d 2e | 0a 58 0a 58 2d 20 57 68 |problem.|.X.X- Wh|
|000030b0| 65 6e 20 75 73 69 6e 67 | 20 53 47 49 27 73 20 63 |en using| SGI's c|
|000030c0| 64 70 6c 61 79 65 72 2c | 20 74 68 65 20 76 6f 6c |dplayer,| the vol|
|000030d0| 75 6d 65 20 63 6f 6d 69 | 6e 67 20 6f 75 74 20 6f |ume comi|ng out o|
|000030e0| 66 20 74 68 65 20 61 75 | 64 69 6f 20 6a 61 63 6b |f the au|dio jack|
|000030f0| 73 20 6f 6e 20 74 68 65 | 0a 58 20 20 62 61 63 6b |s on the|.X back|
|00003100| 20 6f 66 20 74 68 65 20 | 53 47 49 20 43 44 72 6f | of the |SGI CDro|
|00003110| 6d 20 64 72 69 76 65 20 | 69 73 20 76 65 72 79 20 |m drive |is very |
|00003120| 6c 6f 77 2e 20 20 59 6f | 75 20 72 65 61 6c 6c 79 |low. Yo|u really|
|00003130| 20 68 61 76 65 20 74 6f | 20 6a 61 63 6b 20 75 70 | have to| jack up|
|00003140| 20 74 68 65 0a 58 20 20 | 76 6f 6c 75 6d 65 20 6f | the.X |volume o|
|00003150| 6e 20 79 6f 75 72 20 61 | 6d 70 20 68 69 67 68 65 |n your a|mp highe|
|00003160| 72 20 74 68 61 6e 20 6e | 6f 72 6d 61 6c 2e 0a 58 |r than n|ormal..X|
|00003170| 0a 58 2d 20 54 68 65 20 | 43 44 20 64 6f 65 73 6e |.X- The |CD doesn|
|00003180| 27 74 20 73 70 69 6e 20 | 77 68 69 6c 65 20 69 6e |'t spin |while in|
|00003190| 20 22 73 74 6f 70 70 65 | 64 22 20 6f 72 20 22 70 | "stoppe|d" or "p|
|000031a0| 61 75 73 65 64 22 20 6d | 6f 64 65 73 2e 0a 58 0a |aused" m|odes..X.|
|000031b0| 58 54 48 41 4e 4b 20 59 | 4f 55 20 53 47 49 2c 20 |XTHANK Y|OU SGI, |
|000031c0| 66 6f 72 20 6d 61 6b 69 | 6e 67 20 73 75 63 68 20 |for maki|ng such |
|000031d0| 77 6f 6e 64 65 72 66 75 | 6c 20 6c 69 62 72 61 72 |wonderfu|l librar|
|000031e0| 69 65 73 20 61 76 61 69 | 6c 61 62 6c 65 2e 20 20 |ies avai|lable. |
|000031f0| 54 68 65 79 20 6d 61 6b | 65 0a 58 6d 79 20 49 6e |They mak|e.Xmy In|
|00003200| 64 69 67 6f 20 61 6e 20 | 65 78 74 72 65 6d 65 6c |digo an |extremel|
|00003210| 79 20 66 75 6e 20 6d 61 | 63 68 69 6e 65 20 74 6f |y fun ma|chine to|
|00003220| 20 75 73 65 2e 0a 58 0a | 58 20 20 20 20 20 20 20 | use..X.|X |
|00003230| 20 50 61 74 72 69 63 6b | 20 57 6f 6c 66 65 20 20 | Patrick| Wolfe |
|00003240| 28 70 77 6f 6c 66 65 40 | 6b 61 69 2e 63 6f 6d 2c |(pwolfe@|kai.com,|
|00003250| 20 75 75 6e 65 74 21 6b | 61 69 6c 61 6e 64 21 70 | uunet!k|ailand!p|
|00003260| 77 6f 6c 66 65 29 0a 58 | 20 20 20 20 20 20 20 20 |wolfe).X| |
|00003270| 53 79 73 74 65 6d 20 50 | 72 6f 67 72 61 6d 6d 65 |System P|rogramme|
|00003280| 72 2f 4f 70 65 72 61 74 | 69 6f 6e 73 20 4d 61 6e |r/Operat|ions Man|
|00003290| 61 67 65 72 2c 20 4b 75 | 63 6b 20 26 20 41 73 73 |ager, Ku|ck & Ass|
|000032a0| 6f 63 69 61 74 65 73 0a | 58 0a 58 0a 58 2d 2d 2d |ociates.|X.X.X---|
|000032b0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000032c0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000032d0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000032e0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000032f0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 0a 58 09 09 09 |--------|---.X...|
|00003300| 4c 45 47 41 4c 20 4a 55 | 4e 4b 3a 0a 58 0a 58 2f |LEGAL JU|NK:.X.X/|
|00003310| 2a 0a 58 20 2a 20 4f 72 | 69 67 69 6e 61 6c 20 41 |*.X * Or|iginal A|
|00003320| 75 74 68 6f 72 3a 20 20 | 50 61 74 72 69 63 6b 20 |uthor: |Patrick |
|00003330| 57 6f 6c 66 65 20 20 28 | 70 77 6f 6c 66 65 40 6b |Wolfe (|pwolfe@k|
|00003340| 61 69 2e 63 6f 6d 2c 20 | 75 75 6e 65 74 21 6b 61 |ai.com, |uunet!ka|
|00003350| 69 6c 61 6e 64 21 70 77 | 6f 6c 66 65 29 0a 58 20 |iland!pw|olfe).X |
|00003360| 2a 0a 58 20 2a 20 54 68 | 69 73 20 73 6f 66 74 77 |*.X * Th|is softw|
|00003370| 61 72 65 20 69 73 20 43 | 6f 70 79 72 69 67 68 74 |are is C|opyright|
|00003380| 20 28 63 29 20 31 39 39 | 32 20 62 79 20 50 61 74 | (c) 199|2 by Pat|
|00003390| 72 69 63 6b 20 4a 2e 20 | 57 6f 6c 66 65 2e 0a 58 |rick J. |Wolfe..X|
|000033a0| 20 2a 0a 58 20 2a 20 50 | 65 72 6d 69 73 73 69 6f | *.X * P|ermissio|
|000033b0| 6e 20 69 73 20 68 65 72 | 65 62 79 20 67 72 61 6e |n is her|eby gran|
|000033c0| 74 65 64 20 74 6f 20 63 | 6f 70 79 2c 20 64 69 73 |ted to c|opy, dis|
|000033d0| 74 72 69 62 75 74 65 20 | 6f 72 20 6f 74 68 65 72 |tribute |or other|
|000033e0| 77 69 73 65 20 0a 58 20 | 2a 20 75 73 65 20 61 6e |wise .X |* use an|
|000033f0| 79 20 70 61 72 74 20 6f | 66 20 74 68 69 73 20 70 |y part o|f this p|
|00003400| 61 63 6b 61 67 65 20 61 | 73 20 6c 6f 6e 67 20 61 |ackage a|s long a|
|00003410| 73 20 79 6f 75 20 64 6f | 20 6e 6f 74 20 74 72 79 |s you do| not try|
|00003420| 20 74 6f 20 6d 61 6b 65 | 20 0a 58 20 2a 20 6d 6f | to make| .X * mo|
|00003430| 6e 65 79 20 66 72 6f 6d | 20 69 74 20 6f 72 20 70 |ney from| it or p|
|00003440| 72 65 74 65 6e 64 20 74 | 68 61 74 20 79 6f 75 20 |retend t|hat you |
|00003450| 77 72 6f 74 65 20 69 74 | 2e 20 20 54 68 69 73 20 |wrote it|. This |
|00003460| 63 6f 70 79 72 69 67 68 | 74 20 0a 58 20 2a 20 6e |copyrigh|t .X * n|
|00003470| 6f 74 69 63 65 20 6d 75 | 73 74 20 62 65 20 6d 61 |otice mu|st be ma|
|00003480| 69 6e 74 61 69 6e 65 64 | 20 69 6e 20 61 6e 79 20 |intained| in any |
|00003490| 63 6f 70 79 20 6d 61 64 | 65 2e 0a 58 20 2a 0a 58 |copy mad|e..X *.X|
|000034a0| 20 2a 20 55 73 65 20 6f | 66 20 74 68 69 73 20 73 | * Use o|f this s|
|000034b0| 6f 66 74 77 61 72 65 20 | 63 6f 6e 73 74 69 74 75 |oftware |constitu|
|000034c0| 74 65 73 20 61 63 63 65 | 70 74 61 6e 63 65 20 66 |tes acce|ptance f|
|000034d0| 6f 72 20 75 73 65 20 69 | 6e 20 61 6e 20 41 53 20 |or use i|n an AS |
|000034e0| 49 53 20 0a 58 20 2a 20 | 63 6f 6e 64 69 74 69 6f |IS .X * |conditio|
|000034f0| 6e 2e 20 54 68 65 72 65 | 20 61 72 65 20 4e 4f 20 |n. There| are NO |
|00003500| 77 61 72 72 61 6e 74 69 | 65 73 20 77 69 74 68 20 |warranti|es with |
|00003510| 72 65 67 61 72 64 20 74 | 6f 20 74 68 69 73 20 73 |regard t|o this s|
|00003520| 6f 66 74 77 61 72 65 2e | 20 20 0a 58 20 2a 20 49 |oftware.| .X * I|
|00003530| 6e 20 6e 6f 20 65 76 65 | 6e 74 20 73 68 61 6c 6c |n no eve|nt shall|
|00003540| 20 74 68 65 20 61 75 74 | 68 6f 72 20 62 65 20 6c | the aut|hor be l|
|00003550| 69 61 62 6c 65 20 66 6f | 72 20 61 6e 79 20 64 61 |iable fo|r any da|
|00003560| 6d 61 67 65 73 20 77 68 | 61 74 73 6f 65 76 65 72 |mages wh|atsoever|
|00003570| 20 0a 58 20 2a 20 61 72 | 69 73 69 6e 67 20 6f 75 | .X * ar|ising ou|
|00003580| 74 20 6f 66 20 6f 72 20 | 69 6e 20 63 6f 6e 6e 65 |t of or |in conne|
|00003590| 63 74 69 6f 6e 20 77 69 | 74 68 20 74 68 65 20 75 |ction wi|th the u|
|000035a0| 73 65 20 6f 72 20 70 65 | 72 66 6f 72 6d 61 6e 63 |se or pe|rformanc|
|000035b0| 65 20 6f 66 20 74 68 69 | 73 20 0a 58 20 2a 20 73 |e of thi|s .X * s|
|000035c0| 6f 66 74 77 61 72 65 2e | 20 20 41 6e 79 20 75 73 |oftware.| Any us|
|000035d0| 65 20 6f 66 20 74 68 69 | 73 20 73 6f 66 74 77 61 |e of thi|s softwa|
|000035e0| 72 65 20 69 73 20 61 74 | 20 74 68 65 20 75 73 65 |re is at| the use|
|000035f0| 72 27 73 20 6f 77 6e 20 | 72 69 73 6b 2e 0a 58 20 |r's own |risk..X |
|00003600| 2a 0a 58 20 2a 20 49 66 | 20 79 6f 75 20 6d 61 6b |*.X * If| you mak|
|00003610| 65 20 6d 6f 64 69 66 69 | 63 61 74 69 6f 6e 73 20 |e modifi|cations |
|00003620| 74 6f 20 74 68 69 73 20 | 73 6f 66 74 77 61 72 65 |to this |software|
|00003630| 20 74 68 61 74 20 79 6f | 75 20 66 65 65 6c 20 0a | that yo|u feel .|
|00003640| 58 20 2a 20 69 6e 63 72 | 65 61 73 65 73 20 69 74 |X * incr|eases it|
|00003650| 20 75 73 65 66 75 6c 6e | 65 73 73 20 66 6f 72 20 | usefuln|ess for |
|00003660| 74 68 65 20 72 65 73 74 | 20 6f 66 20 74 68 65 20 |the rest| of the |
|00003670| 63 6f 6d 6d 75 6e 69 74 | 79 2c 20 70 6c 65 61 73 |communit|y, pleas|
|00003680| 65 20 0a 58 20 2a 20 65 | 6d 61 69 6c 20 74 68 65 |e .X * e|mail the|
|00003690| 20 63 68 61 6e 67 65 73 | 2c 20 65 6e 68 61 6e 63 | changes|, enhanc|
|000036a0| 65 6d 65 6e 74 73 2c 20 | 62 75 67 20 66 69 78 65 |ements, |bug fixe|
|000036b0| 73 20 61 73 20 77 65 6c | 6c 20 61 73 20 61 6e 79 |s as wel|l as any|
|000036c0| 20 61 6e 64 20 0a 58 20 | 2a 20 61 6c 6c 20 69 64 | and .X |* all id|
|000036d0| 65 61 73 20 74 6f 20 6d | 65 2e 20 54 68 69 73 20 |eas to m|e. This |
|000036e0| 73 6f 66 74 77 61 72 65 | 20 69 73 20 67 6f 69 6e |software| is goin|
|000036f0| 67 20 74 6f 20 62 65 20 | 6d 61 69 6e 74 61 69 6e |g to be |maintain|
|00003700| 65 64 20 61 6e 64 20 0a | 58 20 2a 20 65 6e 68 61 |ed and .|X * enha|
|00003710| 6e 63 65 64 20 61 73 20 | 64 65 65 6d 65 64 20 6e |nced as |deemed n|
|00003720| 65 63 65 73 73 61 72 79 | 20 62 79 20 74 68 65 20 |ecessary| by the |
|00003730| 63 6f 6d 6d 75 6e 69 74 | 79 2e 0a 58 20 2a 20 20 |communit|y..X * |
|00003740| 20 20 20 20 20 20 20 20 | 20 20 20 20 0a 58 20 2a | | .X *|
|00003750| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 50 61 | | Pa|
|00003760| 74 72 69 63 6b 20 4a 2e | 20 57 6f 6c 66 65 0a 58 |trick J.| Wolfe.X|
|00003770| 20 2a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | * | |
|00003780| 75 75 6e 65 74 21 6b 61 | 69 6c 61 6e 64 21 70 77 |uunet!ka|iland!pw|
|00003790| 6f 6c 66 65 0a 58 20 2a | 20 20 20 20 20 20 20 20 |olfe.X *| |
|000037a0| 20 20 20 20 20 20 70 77 | 6f 6c 66 65 40 6b 61 69 | pw|olfe@kai|
|000037b0| 2e 63 6f 6d 0a 58 20 2a | 2f 0a 58 2d 2d 2d 2d 2d |.com.X *|/.X-----|
|000037c0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000037d0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000037e0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000037f0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003800| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 0a 45 4e 44 5f 4f 46 |--------|-.END_OF|
|00003810| 5f 46 49 4c 45 0a 20 20 | 69 66 20 74 65 73 74 20 |_FILE. |if test |
|00003820| 38 30 37 30 20 2d 6e 65 | 20 60 77 63 20 2d 63 20 |8070 -ne| `wc -c |
|00003830| 3c 27 52 65 61 64 6d 65 | 27 60 3b 20 74 68 65 6e |<'Readme|'`; then|
|00003840| 0a 20 20 20 20 65 63 68 | 6f 20 73 68 61 72 3a 20 |. ech|o shar: |
|00003850| 5c 22 27 52 65 61 64 6d | 65 27 5c 22 20 75 6e 70 |\"'Readm|e'\" unp|
|00003860| 61 63 6b 65 64 20 77 69 | 74 68 20 77 72 6f 6e 67 |acked wi|th wrong|
|00003870| 20 73 69 7a 65 21 0a 20 | 20 66 69 0a 20 20 23 20 | size!. | fi. # |
|00003880| 65 6e 64 20 6f 66 20 27 | 52 65 61 64 6d 65 27 0a |end of '|Readme'.|
|00003890| 66 69 0a 69 66 20 74 65 | 73 74 20 2d 66 20 27 63 |fi.if te|st -f 'c|
|000038a0| 64 72 65 61 64 65 72 2e | 31 27 20 2d 61 20 22 24 |dreader.|1' -a "$|
|000038b0| 7b 31 7d 22 20 21 3d 20 | 22 2d 63 22 20 3b 20 74 |{1}" != |"-c" ; t|
|000038c0| 68 65 6e 20 0a 20 20 65 | 63 68 6f 20 73 68 61 72 |hen . e|cho shar|
|000038d0| 3a 20 57 69 6c 6c 20 6e | 6f 74 20 63 6c 6f 62 62 |: Will n|ot clobb|
|000038e0| 65 72 20 65 78 69 73 74 | 69 6e 67 20 66 69 6c 65 |er exist|ing file|
|000038f0| 20 5c 22 27 63 64 72 65 | 61 64 65 72 2e 31 27 5c | \"'cdre|ader.1'\|
|00003900| 22 0a 65 6c 73 65 0a 20 | 20 65 63 68 6f 20 73 68 |".else. | echo sh|
|00003910| 61 72 3a 20 45 78 74 72 | 61 63 74 69 6e 67 20 5c |ar: Extr|acting \|
|00003920| 22 27 63 64 72 65 61 64 | 65 72 2e 31 27 5c 22 20 |"'cdread|er.1'\" |
|00003930| 5c 28 32 32 30 33 20 63 | 68 61 72 61 63 74 65 72 |\(2203 c|haracter|
|00003940| 73 5c 29 0a 20 20 73 65 | 64 20 22 73 2f 5e 58 2f |s\). se|d "s/^X/|
|00003950| 2f 22 20 3e 27 63 64 72 | 65 61 64 65 72 2e 31 27 |/" >'cdr|eader.1'|
|00003960| 20 3c 3c 27 45 4e 44 5f | 4f 46 5f 46 49 4c 45 27 | <<'END_|OF_FILE'|
|00003970| 0a 58 2e 54 48 20 43 44 | 52 45 41 44 45 52 20 31 |.X.TH CD|READER 1|
|00003980| 20 22 56 31 2e 34 22 20 | 22 55 73 65 6e 65 74 20 | "V1.4" |"Usenet |
|00003990| 53 6f 66 74 77 61 72 65 | 22 20 22 55 73 65 6e 65 |Software|" "Usene|
|000039a0| 74 20 73 6f 66 74 77 61 | 72 65 22 0a 58 0a 58 2e |t softwa|re".X.X.|
|000039b0| 53 48 20 4e 41 4d 45 0a | 58 63 64 72 65 61 64 65 |SH NAME.|Xcdreade|
|000039c0| 72 20 5c 2d 20 70 6c 61 | 79 20 61 6e 20 61 75 64 |r \- pla|y an aud|
|000039d0| 69 6f 20 63 6f 6d 70 61 | 63 74 20 64 69 73 63 20 |io compa|ct disc |
|000039e0| 74 68 72 6f 75 67 68 20 | 74 68 65 20 61 75 64 69 |through |the audi|
|000039f0| 6f 20 70 72 6f 63 65 73 | 73 6f 72 0a 58 0a 58 2e |o proces|sor.X.X.|
|00003a00| 53 48 20 53 59 4e 4f 50 | 53 49 53 0a 58 2e 42 20 |SH SYNOP|SIS.X.B |
|00003a10| 63 64 72 65 61 64 65 72 | 0a 58 0a 58 2e 53 48 20 |cdreader|.X.X.SH |
|00003a20| 44 45 53 43 52 49 50 54 | 49 4f 4e 0a 58 2e 42 20 |DESCRIPT|ION.X.B |
|00003a30| 43 64 72 65 61 64 65 72 | 0a 58 70 6c 61 79 73 20 |Cdreader|.Xplays |
|00003a40| 61 6e 20 61 75 64 69 6f | 20 63 6f 6d 70 61 63 74 |an audio| compact|
|00003a50| 20 64 69 73 63 20 74 68 | 72 6f 75 67 68 20 74 68 | disc th|rough th|
|00003a60| 65 20 61 75 64 69 6f 20 | 70 72 6f 63 65 73 73 6f |e audio |processo|
|00003a70| 72 2e 20 0a 58 0a 58 49 | 74 20 6f 70 65 6e 73 20 |r. .X.XI|t opens |
|00003a80| 61 20 77 69 6e 64 6f 77 | 20 77 69 74 68 20 73 65 |a window| with se|
|00003a90| 76 65 72 61 6c 20 62 75 | 74 74 6f 6e 73 2c 20 77 |veral bu|ttons, w|
|00003aa0| 68 6f 73 65 20 66 75 6e | 63 74 69 6f 6e 20 69 73 |hose fun|ction is|
|00003ab0| 20 73 69 6d 69 6c 61 72 | 20 74 6f 20 74 68 6f 73 | similar| to thos|
|00003ac0| 65 20 6f 6e 20 61 0a 58 | 61 75 64 69 6f 20 43 44 |e on a.X|audio CD|
|00003ad0| 20 70 6c 61 79 65 72 2e | 20 20 41 62 6f 76 65 20 | player.| Above |
|00003ae0| 74 68 65 20 62 75 74 74 | 6f 6e 73 20 69 73 20 61 |the butt|ons is a|
|00003af0| 20 6d 65 73 73 61 67 65 | 20 64 69 73 70 6c 61 79 | message| display|
|00003b00| 2c 20 77 68 65 72 65 20 | 74 68 65 20 73 74 61 74 |, where |the stat|
|00003b10| 65 20 6f 66 0a 58 74 68 | 65 20 70 72 6f 67 72 61 |e of.Xth|e progra|
|00003b20| 6d 20 69 73 20 64 69 73 | 70 6c 61 79 65 64 2e 20 |m is dis|played. |
|00003b30| 20 57 68 65 6e 20 70 6c | 61 79 69 6e 67 20 6d 75 | When pl|aying mu|
|00003b40| 73 69 63 2c 20 74 68 65 | 20 74 72 61 63 6b 20 6e |sic, the| track n|
|00003b50| 75 6d 62 65 72 20 61 6e | 64 20 6c 65 6e 67 74 68 |umber an|d length|
|00003b60| 0a 58 61 70 70 65 61 72 | 20 68 65 72 65 2e 0a 58 |.Xappear| here..X|
|00003b70| 0a 58 2e 42 20 43 64 72 | 65 61 64 65 72 0a 58 70 |.X.B Cdr|eader.Xp|
|00003b80| 65 72 66 6f 72 6d 73 20 | 6d 75 63 68 20 62 65 74 |erforms |much bet|
|00003b90| 74 65 72 20 77 68 65 6e | 20 69 6e 73 74 61 6c 6c |ter when| install|
|00003ba0| 65 64 20 73 65 74 75 69 | 64 20 72 6f 6f 74 2c 20 |ed setui|d root, |
|00003bb0| 6f 72 20 69 66 20 79 6f | 75 0a 58 72 65 63 6f 6e |or if yo|u.Xrecon|
|00003bc0| 66 69 67 75 72 65 20 79 | 6f 75 72 20 49 72 69 78 |figure y|our Irix|
|00003bd0| 20 6f 70 65 72 61 74 69 | 6e 67 20 73 79 73 74 65 | operati|ng syste|
|00003be0| 6d 20 74 6f 20 61 6c 6c | 6f 77 20 6e 6f 6e 2d 72 |m to all|ow non-r|
|00003bf0| 6f 6f 74 0a 58 75 73 65 | 72 73 20 74 6f 20 75 73 |oot.Xuse|rs to us|
|00003c00| 65 20 6e 6f 6e 2d 64 65 | 67 72 61 64 69 6e 67 20 |e non-de|grading |
|00003c10| 70 72 69 6f 72 69 74 69 | 65 73 2e 20 20 53 65 65 |prioriti|es. See|
|00003c20| 20 74 68 65 0a 58 2e 49 | 20 73 63 68 65 64 63 74 | the.X.I| schedct|
|00003c30| 6c 28 32 29 0a 58 61 6e | 64 0a 58 2e 49 20 61 75 |l(2).Xan|d.X.I au|
|00003c40| 74 6f 63 6f 6e 66 69 67 | 28 31 4d 29 0a 58 6d 61 |toconfig|(1M).Xma|
|00003c50| 6e 70 61 67 65 73 2c 20 | 61 6e 64 20 74 68 65 0a |npages, |and the.|
|00003c60| 58 2e 49 20 49 72 69 78 | 20 50 72 6f 67 72 61 6d |X.I Irix| Program|
|00003c70| 6d 69 6e 67 20 47 75 69 | 64 65 20 56 6f 6c 20 32 |ming Gui|de Vol 2|
|00003c80| 0a 58 73 65 63 74 69 6f | 6e 20 31 34 2e 32 2e 33 |.Xsectio|n 14.2.3|
|00003c90| 20 66 6f 72 20 63 6f 6d | 70 6c 65 74 65 20 64 65 | for com|plete de|
|00003ca0| 74 61 69 6c 73 20 28 49 | 74 27 73 20 65 61 73 79 |tails (I|t's easy|
|00003cb0| 29 2e 0a 58 0a 58 54 68 | 65 72 65 20 69 73 20 61 |)..X.XTh|ere is a|
|00003cc0| 20 32 2d 34 20 73 65 63 | 6f 6e 64 20 64 65 6c 61 | 2-4 sec|ond dela|
|00003cd0| 79 20 66 6f 72 20 61 6e | 79 74 68 69 6e 67 20 74 |y for an|ything t|
|00003ce0| 6f 20 68 61 70 70 65 6e | 20 28 50 6c 61 79 2c 20 |o happen| (Play, |
|00003cf0| 50 61 75 73 65 2c 20 53 | 74 6f 70 29 2e 20 20 54 |Pause, S|top). T|
|00003d00| 68 69 73 0a 58 69 73 20 | 62 65 63 61 75 73 65 20 |his.Xis |because |
|00003d10| 6f 66 20 74 68 65 20 6c | 61 72 67 65 20 61 75 64 |of the l|arge aud|
|00003d20| 69 6f 20 62 75 66 66 65 | 72 20 62 65 69 6e 67 20 |io buffe|r being |
|00003d30| 75 73 65 64 2e 20 20 49 | 74 20 74 61 6b 65 73 20 |used. I|t takes |
|00003d40| 74 69 6d 65 20 74 6f 20 | 66 69 6c 6c 20 69 74 20 |time to |fill it |
|00003d50| 75 70 0a 58 61 6e 64 20 | 65 6d 70 74 79 20 69 74 |up.Xand |empty it|
|00003d60| 20 6f 75 74 2e 20 20 4f | 74 68 65 72 20 74 68 61 | out. O|ther tha|
|00003d70| 6e 20 74 68 61 74 2c 20 | 61 6e 64 20 74 68 65 20 |n that, |and the |
|00003d80| 77 65 69 72 64 20 74 68 | 69 6e 67 73 20 74 68 65 |weird th|ings the|
|00003d90| 20 62 75 74 74 6f 6e 73 | 20 64 6f 0a 58 6f 63 63 | buttons| do.Xocc|
|00003da0| 61 74 69 6f 6e 61 6c 6c | 79 2c 20 65 76 65 72 79 |ationall|y, every|
|00003db0| 74 68 69 6e 67 20 77 6f | 72 6b 73 20 66 69 6e 65 |thing wo|rks fine|
|00003dc0| 2e 0a 58 0a 58 2e 53 48 | 20 22 42 55 54 54 4f 4e |..X.X.SH| "BUTTON|
|00003dd0| 53 22 0a 58 53 65 76 65 | 72 61 6c 20 62 75 74 74 |S".XSeve|ral butt|
|00003de0| 6f 6e 73 20 61 70 70 65 | 61 72 20 69 6e 20 74 68 |ons appe|ar in th|
|00003df0| 65 20 6d 61 69 6e 0a 58 | 2e 42 20 43 64 72 65 61 |e main.X|.B Cdrea|
|00003e00| 64 65 72 0a 58 77 69 6e | 64 6f 77 2e 20 20 54 68 |der.Xwin|dow. Th|
|00003e10| 65 79 20 61 72 65 3a 0a | 58 0a 58 2e 54 50 0a 58 |ey are:.|X.X.TP.X|
|00003e20| 2e 49 20 50 6c 61 79 0a | 58 49 66 20 73 74 6f 70 |.I Play.|XIf stop|
|00003e30| 70 65 64 2c 20 62 65 67 | 69 6e 73 20 70 6c 61 79 |ped, beg|ins play|
|00003e40| 69 6e 67 20 74 68 65 20 | 66 69 72 73 74 20 74 72 |ing the |first tr|
|00003e50| 61 63 6b 20 6f 66 20 61 | 6e 20 61 75 64 69 6f 20 |ack of a|n audio |
|00003e60| 43 44 2e 0a 58 49 66 20 | 70 61 75 73 65 64 2c 20 |CD..XIf |paused, |
|00003e70| 63 6f 6e 74 69 6e 75 65 | 73 20 77 68 65 72 65 20 |continue|s where |
|00003e80| 79 6f 75 20 6c 65 66 74 | 20 6f 66 66 2e 0a 58 2e |you left| off..X.|
|00003e90| 54 50 0a 58 2e 49 20 50 | 61 75 73 65 0a 58 53 75 |TP.X.I P|ause.XSu|
|00003ea0| 73 70 65 6e 64 73 20 61 | 75 64 69 6f 20 70 6c 61 |spends a|udio pla|
|00003eb0| 79 62 61 63 6b 2e 20 20 | 50 72 65 73 73 20 50 6c |yback. |Press Pl|
|00003ec0| 61 79 20 74 6f 20 63 6f | 6e 74 69 6e 75 65 2e 0a |ay to co|ntinue..|
|00003ed0| 58 2e 54 50 0a 58 2e 49 | 20 53 68 75 66 66 6c 65 |X.TP.X.I| Shuffle|
|00003ee0| 0a 58 42 65 67 69 6e 73 | 20 70 6c 61 79 69 6e 67 |.XBegins| playing|
|00003ef0| 20 61 6c 6c 20 74 68 65 | 20 74 72 61 63 6b 73 20 | all the| tracks |
|00003f00| 6f 6e 20 74 68 65 20 43 | 44 2c 20 62 75 74 20 69 |on the C|D, but i|
|00003f10| 6e 20 61 20 72 61 6e 64 | 6f 6d 20 6f 72 64 65 72 |n a rand|om order|
|00003f20| 2e 0a 58 2e 54 50 0a 58 | 2e 49 20 53 74 6f 70 0a |..X.TP.X|.I Stop.|
|00003f30| 58 53 74 6f 70 73 20 61 | 75 64 69 6f 20 70 6c 61 |XStops a|udio pla|
|00003f40| 79 62 61 63 6b 2e 20 20 | 52 65 73 65 74 73 20 74 |yback. |Resets t|
|00003f50| 68 65 20 63 75 72 72 65 | 6e 74 20 6c 6f 63 61 74 |he curre|nt locat|
|00003f60| 69 6f 6e 20 74 6f 20 74 | 68 65 0a 58 66 69 72 73 |ion to t|he.Xfirs|
|00003f70| 74 20 74 72 61 63 6b 20 | 6f 66 20 74 68 65 20 43 |t track |of the C|
|00003f80| 44 2e 0a 58 2e 54 50 0a | 58 2e 49 20 50 72 65 76 |D..X.TP.|X.I Prev|
|00003f90| 0a 58 73 77 69 74 63 68 | 65 73 20 74 6f 20 74 68 |.Xswitch|es to th|
|00003fa0| 65 20 62 65 67 69 6e 6e | 69 6e 67 20 6f 66 20 74 |e beginn|ing of t|
|00003fb0| 68 65 20 70 72 65 76 69 | 6f 75 73 20 74 72 61 63 |he previ|ous trac|
|00003fc0| 6b 2e 0a 58 2e 54 50 0a | 58 2e 49 20 4e 65 78 74 |k..X.TP.|X.I Next|
|00003fd0| 0a 58 73 77 69 74 63 68 | 65 73 20 74 6f 20 74 68 |.Xswitch|es to th|
|00003fe0| 65 20 62 65 67 69 6e 6e | 69 6e 67 20 6f 66 20 74 |e beginn|ing of t|
|00003ff0| 68 65 20 6e 65 78 74 20 | 74 72 61 63 6b 2e 20 20 |he next |track. |
|00004000| 49 66 20 79 6f 75 20 70 | 72 65 73 73 0a 58 4e 65 |If you p|ress.XNe|
|00004010| 78 74 20 77 68 69 6c 65 | 20 6f 6e 20 74 68 65 20 |xt while| on the |
|00004020| 6c 61 73 74 20 74 72 61 | 63 6b 2c 20 70 6c 61 79 |last tra|ck, play|
|00004030| 62 61 63 6b 20 73 74 6f | 70 73 2e 0a 58 2e 54 50 |back sto|ps..X.TP|
|00004040| 0a 58 2e 49 20 54 72 61 | 63 6b 73 0a 58 64 69 73 |.X.I Tra|cks.Xdis|
|00004050| 70 6c 61 79 73 20 61 20 | 6c 69 73 74 20 6f 66 20 |plays a |list of |
|00004060| 74 72 61 63 6b 73 20 61 | 6e 64 20 74 68 65 69 72 |tracks a|nd their|
|00004070| 20 6c 65 6e 67 74 68 73 | 2e 20 20 53 6f 72 72 79 | lengths|. Sorry|
|00004080| 2c 20 62 75 74 20 74 68 | 65 0a 58 6e 61 6d 65 73 |, but th|e.Xnames|
|00004090| 20 6f 66 20 74 68 65 20 | 73 6f 6e 67 73 20 69 73 | of the |songs is|
|000040a0| 20 4e 4f 54 20 65 6e 63 | 6f 64 65 64 20 6f 6e 20 | NOT enc|oded on |
|000040b0| 74 68 65 20 43 44 2e 20 | 20 42 75 6d 6d 65 72 2e |the CD. | Bummer.|
|000040c0| 0a 58 2e 54 50 0a 58 2e | 49 20 45 6a 65 63 74 0a |.X.TP.X.|I Eject.|
|000040d0| 58 43 61 75 73 65 73 20 | 74 68 65 20 43 44 20 63 |XCauses |the CD c|
|000040e0| 61 64 64 79 20 74 6f 20 | 62 65 20 65 6a 65 63 74 |addy to |be eject|
|000040f0| 65 64 20 66 72 6f 6d 20 | 74 68 65 20 43 44 72 6f |ed from |the CDro|
|00004100| 6d 20 64 72 69 76 65 2e | 0a 58 2e 54 50 0a 58 2e |m drive.|.X.TP.X.|
|00004110| 49 20 51 75 69 74 0a 58 | 63 6c 6f 73 65 73 20 74 |I Quit.X|closes t|
|00004120| 68 65 20 77 69 6e 64 6f | 77 20 61 6e 64 20 74 65 |he windo|w and te|
|00004130| 72 6d 69 6e 61 74 65 73 | 20 74 68 65 20 63 64 72 |rminates| the cdr|
|00004140| 65 61 64 65 72 20 70 72 | 6f 67 72 61 6d 2e 0a 58 |eader pr|ogram..X|
|00004150| 2e 54 50 0a 58 2e 49 20 | 49 6e 66 6f 0a 58 64 69 |.TP.X.I |Info.Xdi|
|00004160| 73 70 6c 61 79 73 20 69 | 6e 66 6f 72 6d 61 74 69 |splays i|nformati|
|00004170| 6f 6e 20 61 62 6f 75 74 | 20 74 68 65 20 70 72 6f |on about| the pro|
|00004180| 67 72 61 6d 20 61 6e 64 | 20 70 72 6f 67 72 61 6d |gram and| program|
|00004190| 6d 65 72 2e 0a 58 2e 54 | 50 0a 58 2e 49 20 48 65 |mer..X.T|P.X.I He|
|000041a0| 6c 70 0a 58 64 69 73 70 | 6c 61 79 73 20 61 6e 20 |lp.Xdisp|lays an |
|000041b0| 6f 6e 6c 69 6e 65 20 68 | 65 6c 70 20 77 69 6e 64 |online h|elp wind|
|000041c0| 6f 77 0a 58 0a 58 2e 53 | 48 20 22 53 45 45 20 41 |ow.X.X.S|H "SEE A|
|000041d0| 4c 53 4f 22 0a 58 63 64 | 70 6c 61 79 65 72 28 31 |LSO".Xcd|player(1|
|000041e0| 29 2c 20 61 70 61 6e 65 | 6c 28 31 29 0a 58 0a 58 |), apane|l(1).X.X|
|000041f0| 2e 53 48 20 22 41 55 54 | 48 4f 52 22 0a 58 2e 42 |.SH "AUT|HOR".X.B|
|00004200| 20 43 64 72 65 61 64 65 | 72 0a 58 69 73 20 43 6f | Cdreade|r.Xis Co|
|00004210| 70 79 72 69 67 68 74 20 | 28 63 29 20 31 39 39 32 |pyright |(c) 1992|
|00004220| 20 62 79 20 50 61 74 72 | 69 63 6b 20 4a 2e 20 57 | by Patr|ick J. W|
|00004230| 6f 6c 66 65 2c 0a 58 28 | 70 77 6f 6c 66 65 40 6b |olfe,.X(|pwolfe@k|
|00004240| 61 69 2e 63 6f 6d 2c 20 | 75 75 6e 65 74 21 6b 61 |ai.com, |uunet!ka|
|00004250| 69 6c 61 6e 64 21 70 77 | 6f 6c 66 65 29 2e 0a 45 |iland!pw|olfe)..E|
|00004260| 4e 44 5f 4f 46 5f 46 49 | 4c 45 0a 20 20 69 66 20 |ND_OF_FI|LE. if |
|00004270| 74 65 73 74 20 32 32 30 | 33 20 2d 6e 65 20 60 77 |test 220|3 -ne `w|
|00004280| 63 20 2d 63 20 3c 27 63 | 64 72 65 61 64 65 72 2e |c -c <'c|dreader.|
|00004290| 31 27 60 3b 20 74 68 65 | 6e 0a 20 20 20 20 65 63 |1'`; the|n. ec|
|000042a0| 68 6f 20 73 68 61 72 3a | 20 5c 22 27 63 64 72 65 |ho shar:| \"'cdre|
|000042b0| 61 64 65 72 2e 31 27 5c | 22 20 75 6e 70 61 63 6b |ader.1'\|" unpack|
|000042c0| 65 64 20 77 69 74 68 20 | 77 72 6f 6e 67 20 73 69 |ed with |wrong si|
|000042d0| 7a 65 21 0a 20 20 66 69 | 0a 20 20 23 20 65 6e 64 |ze!. fi|. # end|
|000042e0| 20 6f 66 20 27 63 64 72 | 65 61 64 65 72 2e 31 27 | of 'cdr|eader.1'|
|000042f0| 0a 66 69 0a 69 66 20 74 | 65 73 74 20 2d 66 20 27 |.fi.if t|est -f '|
|00004300| 63 64 72 65 61 64 65 72 | 2e 63 27 20 2d 61 20 22 |cdreader|.c' -a "|
|00004310| 24 7b 31 7d 22 20 21 3d | 20 22 2d 63 22 20 3b 20 |${1}" !=| "-c" ; |
|00004320| 74 68 65 6e 20 0a 20 20 | 65 63 68 6f 20 73 68 61 |then . |echo sha|
|00004330| 72 3a 20 57 69 6c 6c 20 | 6e 6f 74 20 63 6c 6f 62 |r: Will |not clob|
|00004340| 62 65 72 20 65 78 69 73 | 74 69 6e 67 20 66 69 6c |ber exis|ting fil|
|00004350| 65 20 5c 22 27 63 64 72 | 65 61 64 65 72 2e 63 27 |e \"'cdr|eader.c'|
|00004360| 5c 22 0a 65 6c 73 65 0a | 20 20 65 63 68 6f 20 73 |\".else.| echo s|
|00004370| 68 61 72 3a 20 45 78 74 | 72 61 63 74 69 6e 67 20 |har: Ext|racting |
|00004380| 5c 22 27 63 64 72 65 61 | 64 65 72 2e 63 27 5c 22 |\"'cdrea|der.c'\"|
|00004390| 20 5c 28 33 34 36 38 31 | 20 63 68 61 72 61 63 74 | \(34681| charact|
|000043a0| 65 72 73 5c 29 0a 20 20 | 73 65 64 20 22 73 2f 5e |ers\). |sed "s/^|
|000043b0| 58 2f 2f 22 20 3e 27 63 | 64 72 65 61 64 65 72 2e |X//" >'c|dreader.|
|000043c0| 63 27 20 3c 3c 27 45 4e | 44 5f 4f 46 5f 46 49 4c |c' <<'EN|D_OF_FIL|
|000043d0| 45 27 0a 58 2f 2a 0a 58 | 20 2a 09 63 64 72 65 61 |E'.X/*.X| *.cdrea|
|000043e0| 64 65 72 20 2d 20 50 6c | 61 79 73 20 61 6e 20 61 |der - Pl|ays an a|
|000043f0| 75 64 69 6f 20 43 44 20 | 74 68 72 6f 75 67 68 20 |udio CD |through |
|00004400| 74 68 65 20 53 47 49 20 | 41 75 64 69 6f 20 50 72 |the SGI |Audio Pr|
|00004410| 6f 63 65 73 73 6f 72 2e | 0a 58 20 2a 09 59 6f 75 |ocessor.|.X *.You|
|00004420| 20 63 61 6e 20 70 6c 61 | 79 20 43 44 73 20 74 68 | can pla|y CDs th|
|00004430| 72 6f 75 67 68 20 74 68 | 65 20 6d 6f 6e 6f 70 68 |rough th|e monoph|
|00004440| 6f 6e 69 63 20 73 70 65 | 61 6b 65 72 20 6f 6e 20 |onic spe|aker on |
|00004450| 79 6f 75 72 20 53 47 49 | 20 49 6e 64 69 67 6f 2c |your SGI| Indigo,|
|00004460| 0a 58 20 2a 09 6f 72 20 | 79 6f 75 20 63 61 6e 20 |.X *.or |you can |
|00004470| 63 6f 6e 6e 65 63 74 20 | 61 6e 20 61 6d 70 20 74 |connect |an amp t|
|00004480| 6f 20 74 68 65 20 6c 69 | 6e 65 2d 6f 75 74 20 6a |o the li|ne-out j|
|00004490| 61 63 6b 73 20 66 6f 72 | 20 73 6f 6d 65 0a 58 20 |acks for| some.X |
|000044a0| 2a 09 52 45 41 4c 20 71 | 75 61 6c 69 74 79 20 73 |*.REAL q|uality s|
|000044b0| 6f 75 6e 64 2e 0a 58 20 | 2a 0a 58 20 2a 09 4f 72 |ound..X |*.X *.Or|
|000044c0| 69 67 69 6e 61 6c 20 41 | 75 74 68 6f 72 3a 20 20 |iginal A|uthor: |
|000044d0| 50 61 74 72 69 63 6b 20 | 57 6f 6c 66 65 20 20 28 |Patrick |Wolfe (|
|000044e0| 70 77 6f 6c 66 65 40 6b | 61 69 2e 63 6f 6d 2c 20 |pwolfe@k|ai.com, |
|000044f0| 75 75 6e 65 74 21 6b 61 | 69 6c 61 6e 64 21 70 77 |uunet!ka|iland!pw|
|00004500| 6f 6c 66 65 29 0a 58 20 | 2a 09 54 68 69 73 20 73 |olfe).X |*.This s|
|00004510| 6f 66 74 77 61 72 65 20 | 69 73 20 43 6f 70 79 72 |oftware |is Copyr|
|00004520| 69 67 68 74 20 28 63 29 | 20 31 39 39 32 20 62 79 |ight (c)| 1992 by|
|00004530| 20 50 61 74 72 69 63 6b | 20 4a 2e 20 57 6f 6c 66 | Patrick| J. Wolf|
|00004540| 65 2e 0a 58 20 2a 09 53 | 65 65 20 74 68 65 20 65 |e..X *.S|ee the e|
|00004550| 6e 64 20 6f 66 20 74 68 | 69 73 20 66 69 6c 65 20 |nd of th|is file |
|00004560| 66 6f 72 20 74 68 65 20 | 63 6f 6d 70 6c 65 74 65 |for the |complete|
|00004570| 20 63 6f 70 79 72 69 67 | 68 74 20 6e 6f 74 69 63 | copyrig|ht notic|
|00004580| 65 2e 0a 58 20 2a 2f 0a | 58 0a 58 23 64 65 66 69 |e..X */.|X.X#defi|
|00004590| 6e 65 20 56 45 52 53 49 | 4f 4e 20 22 31 2e 34 22 |ne VERSI|ON "1.4"|
|000045a0| 0a 58 0a 58 23 69 6e 63 | 6c 75 64 65 20 3c 73 74 |.X.X#inc|lude <st|
|000045b0| 64 69 6f 2e 68 3e 0a 58 | 23 69 6e 63 6c 75 64 65 |dio.h>.X|#include|
|000045c0| 20 3c 73 74 64 6c 69 62 | 2e 68 3e 0a 58 23 69 6e | <stdlib|.h>.X#in|
|000045d0| 63 6c 75 64 65 20 3c 73 | 79 73 2f 74 79 70 65 73 |clude <s|ys/types|
|000045e0| 2e 68 3e 0a 58 09 2f 2a | 20 66 6f 72 20 65 72 72 |.h>.X./*| for err|
|000045f0| 6e 6f 20 2a 2f 0a 58 23 | 69 6e 63 6c 75 64 65 20 |no */.X#|include |
|00004600| 3c 65 72 72 6e 6f 2e 68 | 3e 0a 58 09 2f 2a 20 66 |<errno.h|>.X./* f|
|00004610| 6f 72 20 73 69 67 6e 61 | 6c 28 29 20 2a 2f 0a 58 |or signa|l() */.X|
|00004620| 23 69 6e 63 6c 75 64 65 | 20 3c 73 69 67 6e 61 6c |#include| <signal|
|00004630| 2e 68 3e 0a 58 09 2f 2a | 20 66 6f 72 20 67 65 74 |.h>.X./*| for get|
|00004640| 6f 70 74 28 29 20 2a 2f | 0a 58 23 69 6e 63 6c 75 |opt() */|.X#inclu|
|00004650| 64 65 20 3c 67 65 74 6f | 70 74 2e 68 3e 0a 58 09 |de <geto|pt.h>.X.|
|00004660| 2f 2a 20 66 6f 72 20 43 | 44 2a 28 29 20 72 6f 75 |/* for C|D*() rou|
|00004670| 74 69 6e 65 73 20 2a 2f | 0a 58 23 69 6e 63 6c 75 |tines */|.X#inclu|
|00004680| 64 65 20 3c 63 64 61 75 | 64 69 6f 2e 68 3e 0a 58 |de <cdau|dio.h>.X|
|00004690| 09 2f 2a 20 66 6f 72 20 | 41 4c 2a 28 29 20 72 6f |./* for |AL*() ro|
|000046a0| 75 74 69 6e 65 73 20 2a | 2f 0a 58 23 69 6e 63 6c |utines *|/.X#incl|
|000046b0| 75 64 65 20 3c 61 75 64 | 69 6f 2e 68 3e 0a 58 09 |ude <aud|io.h>.X.|
|000046c0| 2f 2a 20 66 6f 72 20 73 | 63 68 65 64 63 74 6c 28 |/* for s|chedctl(|
|000046d0| 29 20 2a 2f 0a 58 23 69 | 6e 63 6c 75 64 65 20 3c |) */.X#i|nclude <|
|000046e0| 6c 69 6d 69 74 73 2e 68 | 3e 0a 58 23 69 6e 63 6c |limits.h|>.X#incl|
|000046f0| 75 64 65 20 3c 73 79 73 | 2f 70 72 63 74 6c 2e 68 |ude <sys|/prctl.h|
|00004700| 3e 0a 58 23 69 6e 63 6c | 75 64 65 20 3c 73 79 73 |>.X#incl|ude <sys|
|00004710| 2f 73 63 68 65 64 63 74 | 6c 2e 68 3e 0a 58 09 2f |/schedct|l.h>.X./|
|00004720| 2a 20 66 6f 72 20 58 31 | 31 2f 4d 6f 74 69 66 20 |* for X1|1/Motif |
|00004730| 69 6e 74 65 72 66 61 63 | 65 20 2a 2f 0a 58 23 69 |interfac|e */.X#i|
|00004740| 6e 63 6c 75 64 65 20 3c | 58 31 31 2f 49 6e 74 72 |nclude <|X11/Intr|
|00004750| 69 6e 73 69 63 2e 68 3e | 0a 58 23 69 6e 63 6c 75 |insic.h>|.X#inclu|
|00004760| 64 65 20 3c 58 6d 2f 58 | 6d 2e 68 3e 0a 58 23 69 |de <Xm/X|m.h>.X#i|
|00004770| 6e 63 6c 75 64 65 20 3c | 58 6d 2f 43 61 73 63 61 |nclude <|Xm/Casca|
|00004780| 64 65 42 2e 68 3e 0a 58 | 23 69 6e 63 6c 75 64 65 |deB.h>.X|#include|
|00004790| 20 3c 58 6d 2f 46 72 61 | 6d 65 2e 68 3e 0a 58 23 | <Xm/Fra|me.h>.X#|
|000047a0| 69 6e 63 6c 75 64 65 20 | 3c 58 6d 2f 4d 61 69 6e |include |<Xm/Main|
|000047b0| 57 2e 68 3e 0a 58 23 69 | 6e 63 6c 75 64 65 20 3c |W.h>.X#i|nclude <|
|000047c0| 58 6d 2f 50 75 73 68 42 | 2e 68 3e 0a 58 23 69 6e |Xm/PushB|.h>.X#in|
|000047d0| 63 6c 75 64 65 20 3c 58 | 6d 2f 50 75 73 68 42 47 |clude <X|m/PushBG|
|000047e0| 2e 68 3e 0a 58 23 69 6e | 63 6c 75 64 65 20 3c 58 |.h>.X#in|clude <X|
|000047f0| 6d 2f 52 6f 77 43 6f 6c | 75 6d 6e 2e 68 3e 0a 58 |m/RowCol|umn.h>.X|
|00004800| 23 69 6e 63 6c 75 64 65 | 20 3c 58 6d 2f 4d 65 73 |#include| <Xm/Mes|
|00004810| 73 61 67 65 42 2e 68 3e | 0a 58 23 69 6e 63 6c 75 |sageB.h>|.X#inclu|
|00004820| 64 65 20 3c 58 6d 2f 46 | 6f 72 6d 2e 68 3e 0a 58 |de <Xm/F|orm.h>.X|
|00004830| 0a 58 23 69 66 64 65 66 | 20 57 41 54 43 48 5f 41 |.X#ifdef| WATCH_A|
|00004840| 42 55 46 0a 58 09 2f 2a | 20 66 6f 72 20 73 65 74 |BUF.X./*| for set|
|00004850| 69 74 69 6d 65 72 20 2a | 2f 0a 58 23 69 6e 63 6c |itimer *|/.X#incl|
|00004860| 75 64 65 20 3c 73 79 73 | 2f 74 69 6d 65 2e 68 3e |ude <sys|/time.h>|
|00004870| 0a 58 69 6e 74 20 6d 6f | 6e 69 74 6f 72 5f 69 6e |.Xint mo|nitor_in|
|00004880| 74 65 72 76 61 6c 20 3d | 20 31 35 3b 09 2f 2a 20 |terval =| 15;./* |
|00004890| 6e 75 6d 62 65 72 20 6f | 66 20 73 65 63 6f 6e 64 |number o|f second|
|000048a0| 73 20 62 65 74 77 65 65 | 6e 20 61 62 75 66 73 20 |s betwee|n abufs |
|000048b0| 6c 65 66 74 20 72 65 70 | 6f 72 74 73 20 2a 2f 0a |left rep|orts */.|
|000048c0| 58 69 6e 74 20 73 68 6f | 77 5f 62 75 66 73 6c 65 |Xint sho|w_bufsle|
|000048d0| 66 74 20 3d 20 30 3b 09 | 09 2f 2a 20 66 6c 61 67 |ft = 0;.|./* flag|
|000048e0| 20 74 6f 20 69 6e 64 69 | 63 61 74 65 20 74 68 61 | to indi|cate tha|
|000048f0| 74 20 69 74 27 73 20 74 | 69 6d 65 20 74 6f 20 72 |t it's t|ime to r|
|00004900| 65 70 6f 72 74 20 2a 2f | 0a 58 69 6e 74 20 74 6f |eport */|.Xint to|
|00004910| 74 61 6c 5f 73 61 6d 70 | 73 20 3d 20 30 3b 09 09 |tal_samp|s = 0;..|
|00004920| 2f 2a 20 6e 75 6d 62 65 | 72 20 6f 66 20 73 61 6d |/* numbe|r of sam|
|00004930| 70 6c 65 73 20 74 68 65 | 20 61 75 64 69 6f 20 62 |ples the| audio b|
|00004940| 75 66 66 65 72 20 77 69 | 6c 6c 20 68 6f 6c 64 20 |uffer wi|ll hold |
|00004950| 2a 2f 0a 58 23 65 6e 64 | 69 66 20 2f 2a 20 57 41 |*/.X#end|if /* WA|
|00004960| 54 43 48 5f 41 42 55 46 | 20 2a 2f 0a 58 0a 58 2f |TCH_ABUF| */.X.X/|
|00004970| 2a 0a 58 20 2a 09 4d 6f | 73 74 20 6f 66 20 74 68 |*.X *.Mo|st of th|
|00004980| 65 20 63 6f 6d 6d 6f 6e | 20 6d 65 73 73 61 67 65 |e common| message|
|00004990| 73 20 61 72 65 20 68 65 | 72 65 2c 20 66 6f 72 20 |s are he|re, for |
|000049a0| 65 61 73 79 20 63 75 73 | 74 6f 6d 69 7a 61 74 69 |easy cus|tomizati|
|000049b0| 6f 6e 20 61 6e 64 0a 58 | 20 2a 09 74 72 61 6e 73 |on and.X| *.trans|
|000049c0| 6c 61 74 69 6f 6e 20 66 | 6f 72 20 66 6f 72 65 69 |lation f|or forei|
|000049d0| 67 6e 20 6c 61 6e 67 75 | 61 67 65 73 2e 20 20 57 |gn langu|ages. W|
|000049e0| 65 27 72 65 20 6e 6f 74 | 20 41 4c 4c 20 69 67 6e |e're not| ALL ign|
|000049f0| 6f 72 61 6e 74 20 62 61 | 73 74 61 72 64 73 2e 0a |orant ba|stards..|
|00004a00| 58 20 2a 2f 0a 58 0a 58 | 09 2f 2a 20 62 75 74 74 |X */.X.X|./* butt|
|00004a10| 6f 6e 20 6c 61 62 65 6c | 73 20 2a 2f 0a 58 23 64 |on label|s */.X#d|
|00004a20| 65 66 69 6e 65 20 50 4c | 41 59 5f 4e 41 4d 45 20 |efine PL|AY_NAME |
|00004a30| 22 50 6c 61 79 22 0a 58 | 23 64 65 66 69 6e 65 20 |"Play".X|#define |
|00004a40| 50 52 45 56 5f 4e 41 4d | 45 20 22 50 72 65 76 22 |PREV_NAM|E "Prev"|
|00004a50| 0a 58 23 64 65 66 69 6e | 65 20 50 41 55 53 45 5f |.X#defin|e PAUSE_|
|00004a60| 4e 41 4d 45 20 22 50 61 | 75 73 65 22 0a 58 23 64 |NAME "Pa|use".X#d|
|00004a70| 65 66 69 6e 65 20 4e 45 | 58 54 5f 4e 41 4d 45 20 |efine NE|XT_NAME |
|00004a80| 22 4e 65 78 74 22 0a 58 | 23 64 65 66 69 6e 65 20 |"Next".X|#define |
|00004a90| 53 48 55 46 46 4c 45 5f | 4e 41 4d 45 20 22 53 68 |SHUFFLE_|NAME "Sh|
|00004aa0| 75 66 66 6c 65 22 0a 58 | 23 64 65 66 69 6e 65 20 |uffle".X|#define |
|00004ab0| 54 52 41 43 4b 53 5f 4e | 41 4d 45 20 22 54 72 61 |TRACKS_N|AME "Tra|
|00004ac0| 63 6b 73 22 0a 58 23 64 | 65 66 69 6e 65 20 53 54 |cks".X#d|efine ST|
|00004ad0| 4f 50 5f 4e 41 4d 45 20 | 22 53 74 6f 70 22 0a 58 |OP_NAME |"Stop".X|
|00004ae0| 23 64 65 66 69 6e 65 20 | 45 4a 45 43 54 5f 4e 41 |#define |EJECT_NA|
|00004af0| 4d 45 20 22 45 6a 65 63 | 74 22 0a 58 23 64 65 66 |ME "Ejec|t".X#def|
|00004b00| 69 6e 65 20 51 55 49 54 | 5f 4e 41 4d 45 20 22 51 |ine QUIT|_NAME "Q|
|00004b10| 75 69 74 22 0a 58 23 64 | 65 66 69 6e 65 20 49 4e |uit".X#d|efine IN|
|00004b20| 46 4f 5f 4e 41 4d 45 20 | 22 49 6e 66 6f 22 0a 58 |FO_NAME |"Info".X|
|00004b30| 23 64 65 66 69 6e 65 20 | 48 45 4c 50 5f 4e 41 4d |#define |HELP_NAM|
|00004b40| 45 20 22 48 65 6c 70 22 | 0a 58 0a 58 09 2f 2a 20 |E "Help"|.X.X./* |
|00004b50| 73 74 61 74 75 73 20 6d | 65 73 73 61 67 65 73 20 |status m|essages |
|00004b60| 2a 2f 0a 58 63 68 61 72 | 20 2a 50 6c 61 79 69 6e |*/.Xchar| *Playin|
|00004b70| 67 5f 4d 73 67 20 3d 20 | 22 50 6c 61 79 69 6e 67 |g_Msg = |"Playing|
|00004b80| 20 54 72 61 63 6b 22 3b | 0a 58 63 68 61 72 20 2a | Track";|.Xchar *|
|00004b90| 53 74 6f 70 70 65 64 5f | 4d 73 67 20 3d 20 22 53 |Stopped_|Msg = "S|
|00004ba0| 74 6f 70 70 65 64 22 3b | 0a 58 63 68 61 72 20 2a |topped";|.Xchar *|
|00004bb0| 50 61 75 73 65 64 5f 4d | 73 67 20 3d 20 22 50 61 |Paused_M|sg = "Pa|
|00004bc0| 75 73 65 64 20 61 74 20 | 54 72 61 63 6b 22 3b 0a |used at |Track";.|
|00004bd0| 58 63 68 61 72 20 2a 54 | 6f 74 61 6c 5f 4d 73 67 |Xchar *T|otal_Msg|
|00004be0| 20 3d 20 22 54 6f 74 61 | 6c 20 74 69 6d 65 20 6f | = "Tota|l time o|
|00004bf0| 6e 20 64 69 73 6b 22 3b | 0a 58 63 68 61 72 20 2a |n disk";|.Xchar *|
|00004c00| 54 72 61 63 6b 5f 57 6f | 72 64 20 3d 20 22 54 72 |Track_Wo|rd = "Tr|
|00004c10| 61 63 6b 22 3b 0a 58 63 | 68 61 72 20 2a 4c 65 6e |ack";.Xc|har *Len|
|00004c20| 67 74 68 5f 57 6f 72 64 | 20 3d 20 22 4c 65 6e 67 |gth_Word| = "Leng|
|00004c30| 74 68 22 3b 0a 58 0a 58 | 09 2f 2a 20 65 72 72 6f |th";.X.X|./* erro|
|00004c40| 72 20 6d 65 73 73 61 67 | 65 73 20 2a 2f 0a 58 63 |r messag|es */.Xc|
|00004c50| 68 61 72 20 2a 44 49 53 | 43 5f 4e 4f 54 5f 52 45 |har *DIS|C_NOT_RE|
|00004c60| 41 44 59 20 3d 20 22 44 | 69 73 63 20 4e 6f 74 20 |ADY = "D|isc Not |
|00004c70| 52 65 61 64 79 22 3b 0a | 58 63 68 61 72 20 2a 43 |Ready";.|Xchar *C|
|00004c80| 41 4e 4e 4f 54 5f 52 45 | 41 44 5f 53 43 53 49 20 |ANNOT_RE|AD_SCSI |
|00004c90| 3d 20 22 5c 0a 58 59 6f | 75 72 20 63 68 65 61 70 |= "\.XYo|ur cheap|
|00004ca0| 6f 20 43 44 72 6f 6d 20 | 64 72 69 76 65 20 64 6f |o CDrom |drive do|
|00004cb0| 65 73 20 4e 4f 54 20 73 | 75 70 70 6f 72 74 20 72 |es NOT s|upport r|
|00004cc0| 65 61 64 69 6e 67 20 61 | 75 64 69 6f 20 64 61 74 |eading a|udio dat|
|00004cd0| 61 5c 6e 5c 0a 58 61 63 | 72 6f 73 73 20 74 68 65 |a\n\.Xac|ross the|
|00004ce0| 20 53 43 53 49 20 62 75 | 73 2e 20 20 59 6f 75 20 | SCSI bu|s. You |
|00004cf0| 73 68 6f 75 6c 64 20 68 | 61 76 65 20 62 6f 75 67 |should h|ave boug|
|00004d00| 68 74 20 6f 6e 65 20 66 | 72 6f 6d 20 53 47 49 21 |ht one f|rom SGI!|
|00004d10| 22 3b 0a 58 63 68 61 72 | 20 2a 54 4f 4f 5f 4d 41 |";.Xchar| *TOO_MA|
|00004d20| 4e 59 5f 54 52 41 43 4b | 53 20 3d 20 22 54 6f 6f |NY_TRACK|S = "Too|
|00004d30| 20 6d 61 6e 79 20 61 75 | 64 69 6f 20 74 72 61 63 | many au|dio trac|
|00004d40| 6b 73 20 6f 6e 20 74 68 | 69 73 20 64 69 73 63 21 |ks on th|is disc!|
|00004d50| 5c 6e 72 65 63 6f 6d 70 | 69 6c 65 20 77 69 74 68 |\nrecomp|ile with|
|00004d60| 20 6c 61 72 67 65 72 20 | 4d 41 58 5f 54 52 41 43 | larger |MAX_TRAC|
|00004d70| 4b 5f 49 4e 46 4f 2e 22 | 3b 0a 58 63 68 61 72 20 |K_INFO."|;.Xchar |
|00004d80| 2a 43 44 4f 50 45 4e 5f | 46 41 49 4c 45 44 20 3d |*CDOPEN_|FAILED =|
|00004d90| 20 22 43 44 6f 70 65 6e | 20 66 61 69 6c 65 64 5c | "CDopen| failed\|
|00004da0| 6e 43 61 6e 6e 6f 74 20 | 4f 70 65 6e 20 43 44 72 |nCannot |Open CDr|
|00004db0| 6f 6d 20 64 65 76 69 63 | 65 22 3b 0a 58 63 68 61 |om devic|e";.Xcha|
|00004dc0| 72 20 2a 43 44 47 45 54 | 53 54 41 54 55 53 5f 46 |r *CDGET|STATUS_F|
|00004dd0| 41 49 4c 45 44 20 3d 20 | 22 43 44 67 65 74 73 74 |AILED = |"CDgetst|
|00004de0| 61 74 75 73 20 66 61 69 | 6c 65 64 5c 6e 43 61 6e |atus fai|led\nCan|
|00004df0| 6e 6f 74 20 67 65 74 20 | 73 74 61 74 75 73 20 6f |not get |status o|
|00004e00| 66 20 43 44 72 6f 6d 20 | 64 65 76 69 63 65 22 3b |f CDrom |device";|
|00004e10| 0a 58 63 68 61 72 20 2a | 43 44 47 45 54 54 52 41 |.Xchar *|CDGETTRA|
|00004e20| 43 4b 49 4e 46 4f 5f 46 | 41 49 4c 45 44 20 3d 20 |CKINFO_F|AILED = |
|00004e30| 22 43 44 67 65 74 74 72 | 61 63 6b 69 6e 66 6f 20 |"CDgettr|ackinfo |
|00004e40| 66 61 69 6c 65 64 22 3b | 0a 58 63 68 61 72 20 2a |failed";|.Xchar *|
|00004e50| 43 44 53 45 45 4b 54 52 | 41 43 4b 5f 46 41 49 4c |CDSEEKTR|ACK_FAIL|
|00004e60| 45 44 20 3d 20 22 43 44 | 73 65 65 6b 74 72 61 63 |ED = "CD|seektrac|
|00004e70| 6b 20 66 61 69 6c 65 64 | 5c 6e 43 61 6e 6e 6f 74 |k failed|\nCannot|
|00004e80| 20 66 69 6e 64 20 74 72 | 61 63 6b 22 3b 0a 58 63 | find tr|ack";.Xc|
|00004e90| 68 61 72 20 2a 43 44 45 | 4a 45 43 54 5f 46 41 49 |har *CDE|JECT_FAI|
|00004ea0| 4c 45 44 20 3d 20 22 63 | 61 6e 6e 6f 74 20 65 6a |LED = "c|annot ej|
|00004eb0| 65 63 74 20 64 69 73 63 | 20 2d 20 6e 6f 74 20 73 |ect disc| - not s|
|00004ec0| 74 6f 70 70 65 64 22 3b | 0a 58 0a 58 0a 58 0a 58 |topped";|.X.X.X.X|
|00004ed0| 23 64 65 66 69 6e 65 20 | 53 41 4d 50 4c 45 53 5f |#define |SAMPLES_|
|00004ee0| 50 45 52 5f 46 52 41 4d | 45 09 28 43 44 44 41 5f |PER_FRAM|E.(CDDA_|
|00004ef0| 44 41 54 41 53 49 5a 45 | 2f 32 29 0a 58 0a 58 2f |DATASIZE|/2).X.X/|
|00004f00| 2a 20 76 61 6c 69 64 20 | 73 74 61 74 65 73 20 66 |* valid |states f|
|00004f10| 6f 72 20 6d 61 69 6e 20 | 70 72 6f 63 65 73 73 20 |or main |process |
|00004f20| 6c 6f 6f 70 20 63 6f 6e | 74 72 6f 6c 20 2a 2f 0a |loop con|trol */.|
|00004f30| 58 23 64 65 66 69 6e 65 | 20 53 54 4f 50 50 45 44 |X#define| STOPPED|
|00004f40| 09 09 30 09 2f 2a 20 77 | 65 20 61 72 65 20 73 74 |..0./* w|e are st|
|00004f50| 6f 70 70 65 64 20 2a 2f | 0a 58 23 64 65 66 69 6e |opped */|.X#defin|
|00004f60| 65 20 50 41 55 53 45 44 | 09 09 31 09 2f 2a 20 77 |e PAUSED|..1./* w|
|00004f70| 65 20 77 65 72 65 20 70 | 6c 61 79 69 6e 67 2c 20 |e were p|laying, |
|00004f80| 61 6e 64 20 61 72 65 20 | 6e 6f 77 20 70 61 75 73 |and are |now paus|
|00004f90| 65 64 20 2a 2f 0a 58 23 | 64 65 66 69 6e 65 20 50 |ed */.X#|define P|
|00004fa0| 4c 41 59 49 4e 47 09 09 | 32 09 2f 2a 20 77 65 20 |LAYING..|2./* we |
|00004fb0| 61 72 65 20 70 6c 61 79 | 69 6e 67 20 6d 75 73 69 |are play|ing musi|
|00004fc0| 63 20 2a 2f 0a 58 23 64 | 65 66 69 6e 65 20 53 54 |c */.X#d|efine ST|
|00004fd0| 41 52 54 49 4e 47 09 33 | 09 2f 2a 20 73 74 61 72 |ARTING.3|./* star|
|00004fe0| 74 20 70 6c 61 79 69 6e | 67 20 61 74 20 62 65 67 |t playin|g at beg|
|00004ff0| 69 6e 6e 69 6e 67 20 6f | 66 20 74 68 65 20 64 69 |inning o|f the di|
|00005000| 73 6b 20 2a 2f 0a 58 23 | 64 65 66 69 6e 65 20 43 |sk */.X#|define C|
|00005010| 4f 4e 54 49 4e 55 45 09 | 34 09 2f 2a 20 73 74 61 |ONTINUE.|4./* sta|
|00005020| 72 74 20 70 6c 61 79 69 | 6e 67 20 77 68 65 72 65 |rt playi|ng where|
|00005030| 20 79 6f 75 20 6c 65 66 | 74 20 6f 66 66 20 2a 2f | you lef|t off */|
|00005040| 0a 58 23 64 65 66 69 6e | 65 20 53 54 4f 50 50 49 |.X#defin|e STOPPI|
|00005050| 4e 47 09 35 09 2f 2a 20 | 77 65 20 77 65 72 65 20 |NG.5./* |we were |
|00005060| 70 6c 61 79 69 6e 67 2c | 20 61 6e 64 20 61 72 65 |playing,| and are|
|00005070| 20 61 62 6f 75 74 20 74 | 6f 20 73 74 6f 70 20 2a | about t|o stop *|
|00005080| 2f 0a 58 23 64 65 66 69 | 6e 65 20 50 41 55 53 49 |/.X#defi|ne PAUSI|
|00005090| 4e 47 09 09 36 09 2f 2a | 20 77 65 20 77 65 72 65 |NG..6./*| we were|
|000050a0| 20 70 6c 61 79 69 6e 67 | 2c 20 61 6e 64 20 61 72 | playing|, and ar|
|000050b0| 65 20 61 62 6f 75 74 20 | 74 6f 20 70 61 75 73 65 |e about |to pause|
|000050c0| 20 2a 2f 0a 58 23 64 65 | 66 69 6e 65 20 53 54 41 | */.X#de|fine STA|
|000050d0| 52 54 5f 54 52 41 43 4b | 09 39 09 2f 2a 20 73 74 |RT_TRACK|.9./* st|
|000050e0| 61 72 74 20 70 6c 61 79 | 69 6e 67 20 61 74 20 74 |art play|ing at t|
|000050f0| 68 65 20 62 65 67 69 6e | 6e 69 6e 67 20 6f 66 20 |he begin|ning of |
|00005100| 74 68 65 20 63 75 72 72 | 65 6e 74 20 74 72 61 63 |the curr|ent trac|
|00005110| 6b 20 2a 2f 0a 58 0a 58 | 2f 2a 20 6d 61 78 69 6d |k */.X.X|/* maxim|
|00005120| 75 6d 20 6e 75 6d 62 65 | 72 20 6f 66 20 74 72 61 |um numbe|r of tra|
|00005130| 63 6b 73 20 74 6f 20 73 | 74 6f 72 65 20 69 6e 66 |cks to s|tore inf|
|00005140| 6f 20 66 6f 72 20 2a 2f | 0a 58 2f 2a 20 49 20 2a |o for */|.X/* I *|
|00005150| 68 61 76 65 2a 20 73 65 | 65 6e 20 75 70 20 74 6f |have* se|en up to|
|00005160| 20 32 38 20 74 72 61 63 | 6b 73 20 6f 6e 20 61 20 | 28 trac|ks on a |
|00005170| 73 69 6e 67 6c 65 20 43 | 44 2c 20 62 75 74 20 6e |single C|D, but n|
|00005180| 6f 6e 65 20 6c 6f 6e 67 | 65 72 20 2a 2f 0a 58 23 |one long|er */.X#|
|00005190| 64 65 66 69 6e 65 20 4d | 41 58 5f 54 52 41 43 4b |define M|AX_TRACK|
|000051a0| 5f 49 4e 46 4f 09 36 34 | 0a 58 0a 58 09 2f 2a 20 |_INFO.64|.X.X./* |
|000051b0| 61 75 64 69 6f 20 73 74 | 75 66 66 20 2a 2f 0a 58 |audio st|uff */.X|
|000051c0| 41 4c 70 6f 72 74 20 61 | 75 64 69 6f 5f 70 6f 72 |ALport a|udio_por|
|000051d0| 74 20 3d 20 4e 55 4c 4c | 3b 0a 58 43 44 50 4c 41 |t = NULL|;.XCDPLA|
|000051e0| 59 45 52 20 2a 63 64 5f | 64 65 76 69 63 65 20 3d |YER *cd_|device =|
|000051f0| 20 4e 55 4c 4c 3b 0a 58 | 43 44 50 41 52 53 45 52 | NULL;.X|CDPARSER|
|00005200| 20 2a 63 64 5f 70 61 72 | 73 65 72 20 3d 20 4e 55 | *cd_par|ser = NU|
|00005210| 4c 4c 3b 0a 58 43 44 46 | 52 41 4d 45 20 2a 63 64 |LL;.XCDF|RAME *cd|
|00005220| 5f 62 75 66 66 65 72 20 | 3d 20 4e 55 4c 4c 3b 0a |_buffer |= NULL;.|
|00005230| 58 0a 58 09 2f 2a 20 63 | 64 20 73 74 75 66 66 20 |X.X./* c|d stuff |
|00005240| 2a 2f 0a 58 73 74 72 75 | 63 74 20 63 64 69 6e 66 |*/.Xstru|ct cdinf|
|00005250| 6f 72 6d 61 74 69 6f 6e | 20 7b 0a 58 09 73 68 6f |ormation| {.X.sho|
|00005260| 72 74 20 6c 65 6e 67 74 | 68 5f 6d 69 6e 3b 09 09 |rt lengt|h_min;..|
|00005270| 09 2f 2a 20 74 72 61 63 | 6b 20 6c 65 6e 67 74 68 |./* trac|k length|
|00005280| 20 2a 2f 0a 58 09 73 68 | 6f 72 74 20 6c 65 6e 67 | */.X.sh|ort leng|
|00005290| 74 68 5f 73 65 63 3b 0a | 58 09 7d 20 74 72 61 63 |th_sec;.|X.} trac|
|000052a0| 6b 5f 69 6e 66 6f 5b 4d | 41 58 5f 54 52 41 43 4b |k_info[M|AX_TRACK|
|000052b0| 5f 49 4e 46 4f 5d 3b 0a | 58 69 6e 74 20 66 69 72 |_INFO];.|Xint fir|
|000052c0| 73 74 5f 74 72 61 63 6b | 20 3d 20 30 3b 09 09 09 |st_track| = 0;...|
|000052d0| 09 2f 2a 20 66 69 72 73 | 74 20 74 72 61 63 6b 20 |./* firs|t track |
|000052e0| 6f 6e 20 74 68 65 20 64 | 69 73 6b 20 2a 2f 0a 58 |on the d|isk */.X|
|000052f0| 69 6e 74 20 6c 61 73 74 | 5f 74 72 61 63 6b 20 3d |int last|_track =|
|00005300| 20 30 3b 09 09 09 09 2f | 2a 20 69 6e 64 65 78 20 | 0;..../|* index |
|00005310| 69 6e 74 6f 20 74 72 61 | 63 6b 5f 69 6e 66 6f 20 |into tra|ck_info |
|00005320| 66 6f 72 20 65 6e 74 72 | 79 20 41 46 54 45 52 20 |for entr|y AFTER |
|00005330| 6c 61 73 74 20 6f 6e 65 | 20 77 65 20 68 61 76 65 |last one| we have|
|00005340| 20 69 6e 66 6f 20 66 6f | 72 20 2a 2f 0a 58 69 6e | info fo|r */.Xin|
|00005350| 74 20 63 75 72 72 65 6e | 74 5f 74 72 61 63 6b 20 |t curren|t_track |
|00005360| 3d 20 2d 31 3b 09 09 09 | 09 2f 2a 20 6e 75 6d 62 |= -1;...|./* numb|
|00005370| 65 72 20 6f 66 20 74 72 | 61 63 6b 20 63 75 72 72 |er of tr|ack curr|
|00005380| 65 6e 74 6c 79 20 70 6c | 61 79 69 6e 67 20 2a 2f |ently pl|aying */|
|00005390| 0a 58 69 6e 74 20 74 6f | 74 61 6c 5f 6d 69 6e 20 |.Xint to|tal_min |
|000053a0| 3d 20 30 3b 09 09 09 09 | 2f 2a 20 6d 69 6e 75 74 |= 0;....|/* minut|
|000053b0| 65 73 20 70 61 72 74 20 | 6f 66 20 74 6f 74 61 6c |es part |of total|
|000053c0| 20 72 75 6e 6e 69 6e 67 | 20 74 69 6d 65 20 6f 6e | running| time on|
|000053d0| 20 63 75 72 72 65 6e 74 | 20 64 69 73 6b 20 2a 2f | current| disk */|
|000053e0| 0a 58 69 6e 74 20 74 6f | 74 61 6c 5f 73 65 63 20 |.Xint to|tal_sec |
|000053f0| 3d 20 30 3b 09 09 09 09 | 2f 2a 20 73 65 63 6f 6e |= 0;....|/* secon|
|00005400| 64 20 70 61 72 74 20 6f | 66 20 74 6f 74 61 6c 20 |d part o|f total |
|00005410| 72 75 6e 6e 69 6e 67 20 | 74 69 6d 65 20 6f 6e 20 |running |time on |
|00005420| 63 75 72 72 65 6e 74 20 | 64 69 73 6b 20 2a 2f 0a |current |disk */.|
|00005430| 58 69 6e 74 20 70 6c 61 | 79 5f 69 6e 64 65 78 20 |Xint pla|y_index |
|00005440| 3d 20 2d 31 3b 09 09 09 | 09 2f 2a 20 69 6e 64 65 |= -1;...|./* inde|
|00005450| 78 20 69 6e 74 6f 20 70 | 6c 61 79 6c 69 73 74 20 |x into p|laylist |
|00005460| 66 6f 72 20 73 68 75 66 | 66 6c 65 20 6d 6f 64 65 |for shuf|fle mode|
|00005470| 2c 20 2d 31 20 6d 65 61 | 6e 73 20 74 68 61 74 20 |, -1 mea|ns that |
|00005480| 73 68 75 66 66 6c 65 20 | 69 73 20 6e 6f 74 20 6f |shuffle |is not o|
|00005490| 6e 20 2a 2f 0a 58 69 6e | 74 20 70 6c 61 79 5f 6c |n */.Xin|t play_l|
|000054a0| 69 73 74 5b 4d 41 58 5f | 54 52 41 43 4b 5f 49 4e |ist[MAX_|TRACK_IN|
|000054b0| 46 4f 5d 3b 09 09 09 2f | 2a 20 6f 72 64 65 72 20 |FO];.../|* order |
|000054c0| 6f 66 20 74 72 61 63 6b | 73 20 74 6f 20 70 6c 61 |of track|s to pla|
|000054d0| 79 20 2a 2f 0a 58 69 6e | 74 20 63 64 5f 72 65 61 |y */.Xin|t cd_rea|
|000054e0| 64 73 69 7a 65 20 3d 20 | 31 32 3b 09 09 09 09 2f |dsize = |12;..../|
|000054f0| 2a 20 74 68 65 20 6e 6f | 72 6d 61 6c 20 6e 75 6d |* the no|rmal num|
|00005500| 62 65 72 20 6f 66 20 66 | 72 61 6d 65 73 20 74 6f |ber of f|rames to|
|00005510| 20 72 65 61 64 20 61 74 | 20 6f 6e 65 20 74 69 6d | read at| one tim|
|00005520| 65 20 28 43 44 62 65 73 | 74 72 65 61 64 73 69 7a |e (CDbes|treadsiz|
|00005530| 65 20 66 69 6c 6c 73 20 | 74 68 69 73 20 69 6e 29 |e fills |this in)|
|00005540| 20 2a 2f 0a 58 69 6e 74 | 20 63 64 5f 69 6e 69 74 | */.Xint| cd_init|
|00005550| 5f 72 65 61 64 73 69 7a | 65 20 3d 20 32 30 30 3b |_readsiz|e = 200;|
|00005560| 09 09 09 2f 2a 20 69 6e | 69 74 69 61 6c 20 6e 75 |.../* in|itial nu|
|00005570| 6d 62 65 72 20 6f 66 20 | 66 72 61 6d 65 73 20 74 |mber of |frames t|
|00005580| 6f 20 72 65 61 64 20 61 | 74 20 74 68 65 20 62 65 |o read a|t the be|
|00005590| 67 69 6e 6e 69 6e 67 20 | 6f 66 20 74 68 65 20 64 |ginning |of the d|
|000055a0| 69 73 63 20 2a 2f 0a 58 | 69 6e 74 20 73 74 61 74 |isc */.X|int stat|
|000055b0| 75 73 20 3d 20 53 54 4f | 50 50 49 4e 47 3b 09 09 |us = STO|PPING;..|
|000055c0| 09 09 2f 2a 20 6d 61 69 | 6e 20 70 72 6f 63 65 73 |../* mai|n proces|
|000055d0| 73 20 6c 6f 6f 70 20 73 | 74 61 74 75 73 20 2a 2f |s loop s|tatus */|
|000055e0| 0a 58 0a 58 09 2f 2a 20 | 58 31 31 20 73 74 75 66 |.X.X./* |X11 stuf|
|000055f0| 66 20 2a 2f 0a 58 58 74 | 41 70 70 43 6f 6e 74 65 |f */.XXt|AppConte|
|00005600| 78 74 09 61 70 70 63 6f | 6e 3b 0a 58 57 69 64 67 |xt.appco|n;.XWidg|
|00005610| 65 74 09 6d 61 69 6e 5f | 77 69 6e 64 6f 77 2c 0a |et.main_|window,.|
|00005620| 58 09 6c 61 62 65 6c 2c | 0a 58 09 70 6c 61 79 5f |X.label,|.X.play_|
|00005630| 62 75 74 74 6f 6e 2c 0a | 58 09 70 72 65 76 5f 62 |button,.|X.prev_b|
|00005640| 75 74 74 6f 6e 2c 0a 58 | 09 70 61 75 73 65 5f 62 |utton,.X|.pause_b|
|00005650| 75 74 74 6f 6e 2c 0a 58 | 09 6e 65 78 74 5f 62 75 |utton,.X|.next_bu|
|00005660| 74 74 6f 6e 2c 0a 58 09 | 73 68 75 66 66 6c 65 5f |tton,.X.|shuffle_|
|00005670| 62 75 74 74 6f 6e 2c 0a | 58 09 74 72 61 63 6b 73 |button,.|X.tracks|
|00005680| 5f 62 75 74 74 6f 6e 2c | 0a 58 09 69 6e 66 6f 5f |_button,|.X.info_|
|00005690| 62 75 74 74 6f 6e 2c 0a | 58 09 73 74 6f 70 5f 62 |button,.|X.stop_b|
|000056a0| 75 74 74 6f 6e 2c 0a 58 | 09 65 6a 65 63 74 5f 62 |utton,.X|.eject_b|
|000056b0| 75 74 74 6f 6e 3b 0a 58 | 73 74 61 74 69 63 20 58 |utton;.X|static X|
|000056c0| 6d 53 74 72 69 6e 67 43 | 68 61 72 53 65 74 20 63 |mStringC|harSet c|
|000056d0| 68 61 72 73 65 74 20 3d | 20 28 58 6d 53 74 72 69 |harset =| (XmStri|
|000056e0| 6e 67 43 68 61 72 53 65 | 74 29 20 58 6d 53 54 52 |ngCharSe|t) XmSTR|
|000056f0| 49 4e 47 5f 44 45 46 41 | 55 4c 54 5f 43 48 41 52 |ING_DEFA|ULT_CHAR|
|00005700| 53 45 54 3b 0a 58 0a 58 | 0a 58 44 69 73 70 6c 61 |SET;.X.X|.XDispla|
|00005710| 79 5f 57 61 72 6e 69 6e | 67 20 28 6d 65 73 73 61 |y_Warnin|g (messa|
|00005720| 67 65 29 0a 58 63 68 61 | 72 20 2a 6d 65 73 73 61 |ge).Xcha|r *messa|
|00005730| 67 65 3b 0a 58 7b 0a 58 | 57 69 64 67 65 74 20 62 |ge;.X{.X|Widget b|
|00005740| 75 74 74 6f 6e 3b 0a 58 | 57 69 64 67 65 74 20 77 |utton;.X|Widget w|
|00005750| 61 72 6e 69 6e 67 5f 62 | 6f 78 3b 0a 58 58 6d 53 |arning_b|ox;.XXmS|
|00005760| 74 72 69 6e 67 20 74 69 | 74 6c 65 5f 73 74 72 69 |tring ti|tle_stri|
|00005770| 6e 67 20 3d 20 4e 55 4c | 4c 3b 0a 58 58 6d 53 74 |ng = NUL|L;.XXmSt|
|00005780| 72 69 6e 67 20 6d 65 73 | 73 61 67 65 5f 73 74 72 |ring mes|sage_str|
|00005790| 69 6e 67 20 3d 20 4e 55 | 4c 4c 3b 0a 58 41 72 67 |ing = NU|LL;.XArg|
|000057a0| 20 61 72 67 73 5b 34 5d | 3b 0a 58 72 65 67 69 73 | args[4]|;.Xregis|
|000057b0| 74 65 72 20 69 6e 74 20 | 6e 3b 0a 58 0a 58 6d 65 |ter int |n;.X.Xme|
|000057c0| 73 73 61 67 65 5f 73 74 | 72 69 6e 67 20 3d 20 58 |ssage_st|ring = X|
|000057d0| 6d 53 74 72 69 6e 67 43 | 72 65 61 74 65 4c 74 6f |mStringC|reateLto|
|000057e0| 52 20 28 6d 65 73 73 61 | 67 65 2c 20 63 68 61 72 |R (messa|ge, char|
|000057f0| 73 65 74 29 3b 0a 58 74 | 69 74 6c 65 5f 73 74 72 |set);.Xt|itle_str|
|00005800| 69 6e 67 20 3d 20 58 6d | 53 74 72 69 6e 67 43 72 |ing = Xm|StringCr|
|00005810| 65 61 74 65 4c 74 6f 52 | 20 28 22 43 64 72 65 61 |eateLtoR| ("Cdrea|
|00005820| 64 65 72 20 57 61 72 6e | 69 6e 67 21 22 2c 20 63 |der Warn|ing!", c|
|00005830| 68 61 72 73 65 74 29 3b | 0a 58 0a 58 6e 20 3d 20 |harset);|.X.Xn = |
|00005840| 30 3b 0a 58 58 74 53 65 | 74 41 72 67 20 28 61 72 |0;.XXtSe|tArg (ar|
|00005850| 67 73 5b 6e 5d 2c 20 58 | 6d 4e 64 69 61 6c 6f 67 |gs[n], X|mNdialog|
|00005860| 54 69 74 6c 65 2c 20 74 | 69 74 6c 65 5f 73 74 72 |Title, t|itle_str|
|00005870| 69 6e 67 29 3b 20 6e 2b | 2b 3b 0a 58 58 74 53 65 |ing); n+|+;.XXtSe|
|00005880| 74 41 72 67 20 28 61 72 | 67 73 5b 6e 5d 2c 20 58 |tArg (ar|gs[n], X|
|00005890| 6d 4e 6d 65 73 73 61 67 | 65 53 74 72 69 6e 67 2c |mNmessag|eString,|
|000058a0| 20 6d 65 73 73 61 67 65 | 5f 73 74 72 69 6e 67 29 | message|_string)|
|000058b0| 3b 20 6e 2b 2b 3b 0a 58 | 77 61 72 6e 69 6e 67 5f |; n++;.X|warning_|
|000058c0| 62 6f 78 20 3d 20 58 6d | 43 72 65 61 74 65 57 61 |box = Xm|CreateWa|
|000058d0| 72 6e 69 6e 67 44 69 61 | 6c 6f 67 20 28 6d 61 69 |rningDia|log (mai|
|000058e0| 6e 5f 77 69 6e 64 6f 77 | 2c 20 22 77 61 72 6e 69 |n_window|, "warni|
|000058f0| 6e 67 22 2c 20 61 72 67 | 73 2c 20 6e 29 3b 0a 58 |ng", arg|s, n);.X|
|00005900| 62 75 74 74 6f 6e 20 3d | 20 58 6d 4d 65 73 73 61 |button =| XmMessa|
|00005910| 67 65 42 6f 78 47 65 74 | 43 68 69 6c 64 20 28 77 |geBoxGet|Child (w|
|00005920| 61 72 6e 69 6e 67 5f 62 | 6f 78 2c 20 58 6d 44 49 |arning_b|ox, XmDI|
|00005930| 41 4c 4f 47 5f 43 41 4e | 43 45 4c 5f 42 55 54 54 |ALOG_CAN|CEL_BUTT|
|00005940| 4f 4e 29 3b 0a 58 58 74 | 55 6e 6d 61 6e 61 67 65 |ON);.XXt|Unmanage|
|00005950| 43 68 69 6c 64 20 28 62 | 75 74 74 6f 6e 29 3b 0a |Child (b|utton);.|
|00005960| 58 62 75 74 74 6f 6e 20 | 3d 20 58 6d 4d 65 73 73 |Xbutton |= XmMess|
|00005970| 61 67 65 42 6f 78 47 65 | 74 43 68 69 6c 64 20 28 |ageBoxGe|tChild (|
|00005980| 77 61 72 6e 69 6e 67 5f | 62 6f 78 2c 20 58 6d 44 |warning_|box, XmD|
|00005990| 49 41 4c 4f 47 5f 48 45 | 4c 50 5f 42 55 54 54 4f |IALOG_HE|LP_BUTTO|
|000059a0| 4e 29 3b 0a 58 58 74 55 | 6e 6d 61 6e 61 67 65 43 |N);.XXtU|nmanageC|
|000059b0| 68 69 6c 64 20 28 62 75 | 74 74 6f 6e 29 3b 0a 58 |hild (bu|tton);.X|
|000059c0| 69 66 20 28 74 69 74 6c | 65 5f 73 74 72 69 6e 67 |if (titl|e_string|
|000059d0| 29 20 58 74 46 72 65 65 | 20 28 74 69 74 6c 65 5f |) XtFree| (title_|
|000059e0| 73 74 72 69 6e 67 29 3b | 0a 58 69 66 20 28 6d 65 |string);|.Xif (me|
|000059f0| 73 73 61 67 65 5f 73 74 | 72 69 6e 67 29 20 58 74 |ssage_st|ring) Xt|
|00005a00| 46 72 65 65 20 28 6d 65 | 73 73 61 67 65 5f 73 74 |Free (me|ssage_st|
|00005a10| 72 69 6e 67 29 3b 0a 58 | 58 74 4d 61 6e 61 67 65 |ring);.X|XtManage|
|00005a20| 43 68 69 6c 64 20 28 77 | 61 72 6e 69 6e 67 5f 62 |Child (w|arning_b|
|00005a30| 6f 78 29 3b 0a 58 7d 0a | 58 0a 58 0a 58 73 65 74 |ox);.X}.|X.X.Xset|
|00005a40| 5f 6d 65 73 73 61 67 65 | 20 28 6d 65 73 73 61 67 |_message| (messag|
|00005a50| 65 29 0a 58 63 68 61 72 | 20 2a 6d 65 73 73 61 67 |e).Xchar| *messag|
|00005a60| 65 3b 0a 58 7b 0a 58 58 | 6d 53 74 72 69 6e 67 20 |e;.X{.XX|mString |
|00005a70| 6c 61 62 65 6c 5f 73 74 | 72 69 6e 67 3b 0a 58 41 |label_st|ring;.XA|
|00005a80| 72 67 09 61 72 67 73 5b | 33 30 5d 3b 0a 58 69 6e |rg.args[|30];.Xin|
|00005a90| 74 20 63 74 72 3b 0a 58 | 0a 58 63 74 72 20 3d 20 |t ctr;.X|.Xctr = |
|00005aa0| 30 3b 0a 58 6c 61 62 65 | 6c 5f 73 74 72 69 6e 67 |0;.Xlabe|l_string|
|00005ab0| 20 3d 20 58 6d 53 74 72 | 69 6e 67 43 72 65 61 74 | = XmStr|ingCreat|
|00005ac0| 65 20 28 6d 65 73 73 61 | 67 65 2c 20 63 68 61 72 |e (messa|ge, char|
|00005ad0| 73 65 74 29 3b 0a 58 58 | 74 53 65 74 41 72 67 20 |set);.XX|tSetArg |
|00005ae0| 28 61 72 67 73 5b 63 74 | 72 5d 2c 20 58 6d 4e 6c |(args[ct|r], XmNl|
|00005af0| 61 62 65 6c 53 74 72 69 | 6e 67 2c 20 6c 61 62 65 |abelStri|ng, labe|
|00005b00| 6c 5f 73 74 72 69 6e 67 | 29 3b 20 63 74 72 2b 2b |l_string|); ctr++|
|00005b10| 3b 0a 58 58 74 53 65 74 | 56 61 6c 75 65 73 20 28 |;.XXtSet|Values (|
|00005b20| 6c 61 62 65 6c 2c 20 61 | 72 67 73 2c 20 63 74 72 |label, a|rgs, ctr|
|00005b30| 29 3b 0a 58 58 6d 53 74 | 72 69 6e 67 46 72 65 65 |);.XXmSt|ringFree|
|00005b40| 20 28 6c 61 62 65 6c 5f | 73 74 72 69 6e 67 29 3b | (label_|string);|
|00005b50| 0a 58 7d 0a 58 0a 58 0a | 58 69 6e 74 0a 58 67 65 |.X}.X.X.|Xint.Xge|
|00005b60| 74 5f 74 72 61 63 6b 5f | 69 6e 66 6f 20 28 29 0a |t_track_|info ().|
|00005b70| 58 7b 0a 58 43 44 53 54 | 41 54 55 53 20 63 64 5f |X{.XCDST|ATUS cd_|
|00005b80| 73 74 61 74 75 73 3b 0a | 58 43 44 54 52 41 43 4b |status;.|XCDTRACK|
|00005b90| 49 4e 46 4f 20 63 64 5f | 69 6e 66 6f 3b 0a 58 0a |INFO cd_|info;.X.|
|00005ba0| 58 69 66 20 28 28 63 64 | 5f 64 65 76 69 63 65 20 |Xif ((cd|_device |
|00005bb0| 3d 3d 20 4e 55 4c 4c 29 | 20 26 26 20 28 28 63 64 |== NULL)| && ((cd|
|00005bc0| 5f 64 65 76 69 63 65 20 | 3d 20 43 44 6f 70 65 6e |_device |= CDopen|
|00005bd0| 28 30 2c 20 22 72 22 29 | 29 20 3d 3d 20 4e 55 4c |(0, "r")|) == NUL|
|00005be0| 4c 29 29 20 7b 0a 58 09 | 44 69 73 70 6c 61 79 5f |L)) {.X.|Display_|
|00005bf0| 57 61 72 6e 69 6e 67 20 | 28 43 44 4f 50 45 4e 5f |Warning |(CDOPEN_|
|00005c00| 46 41 49 4c 45 44 29 3b | 0a 58 09 72 65 74 75 72 |FAILED);|.X.retur|
|00005c10| 6e 20 28 31 29 3b 0a 58 | 09 7d 0a 58 0a 58 2f 2a |n (1);.X|.}.X.X/*|
|00005c20| 20 64 69 73 70 6c 61 79 | 20 64 69 73 6b 20 69 6e | display| disk in|
|00005c30| 66 6f 20 2a 2f 0a 58 69 | 66 20 28 43 44 67 65 74 |fo */.Xi|f (CDget|
|00005c40| 73 74 61 74 75 73 28 63 | 64 5f 64 65 76 69 63 65 |status(c|d_device|
|00005c50| 2c 20 26 63 64 5f 73 74 | 61 74 75 73 29 20 3d 3d |, &cd_st|atus) ==|
|00005c60| 20 30 29 20 7b 0a 58 09 | 73 74 61 74 75 73 20 3d | 0) {.X.|status =|
|00005c70| 20 53 54 4f 50 50 49 4e | 47 3b 0a 58 09 44 69 73 | STOPPIN|G;.X.Dis|
|00005c80| 70 6c 61 79 5f 57 61 72 | 6e 69 6e 67 20 28 43 44 |play_War|ning (CD|
|00005c90| 47 45 54 53 54 41 54 55 | 53 5f 46 41 49 4c 45 44 |GETSTATU|S_FAILED|
|00005ca0| 29 3b 0a 58 09 72 65 74 | 75 72 6e 20 28 31 29 3b |);.X.ret|urn (1);|
|00005cb0| 0a 58 09 7d 0a 58 2f 2a | 20 64 6f 6e 27 74 20 73 |.X.}.X/*| don't s|
|00005cc0| 74 61 72 74 20 75 6e 6c | 65 73 73 20 69 74 27 73 |tart unl|ess it's|
|00005cd0| 20 72 65 61 64 79 20 2a | 2f 0a 58 69 66 20 28 63 | ready *|/.Xif (c|
|00005ce0| 64 5f 73 74 61 74 75 73 | 2e 73 74 61 74 65 20 21 |d_status|.state !|
|00005cf0| 3d 20 43 44 5f 52 45 41 | 44 59 29 20 7b 0a 58 09 |= CD_REA|DY) {.X.|
|00005d00| 73 74 61 74 75 73 20 3d | 20 53 54 4f 50 50 49 4e |status =| STOPPIN|
|00005d10| 47 3b 0a 58 09 44 69 73 | 70 6c 61 79 5f 57 61 72 |G;.X.Dis|play_War|
|00005d20| 6e 69 6e 67 20 28 44 49 | 53 43 5f 4e 4f 54 5f 52 |ning (DI|SC_NOT_R|
|00005d30| 45 41 44 59 29 3b 0a 58 | 09 72 65 74 75 72 6e 20 |EADY);.X|.return |
|00005d40| 28 31 29 3b 0a 58 09 7d | 0a 58 69 66 20 28 21 20 |(1);.X.}|.Xif (! |
|00005d50| 63 64 5f 73 74 61 74 75 | 73 2e 73 63 73 69 5f 61 |cd_statu|s.scsi_a|
|00005d60| 75 64 69 6f 29 20 7b 0a | 58 09 73 74 61 74 75 73 |udio) {.|X.status|
|00005d70| 20 3d 20 53 54 4f 50 50 | 49 4e 47 3b 0a 58 09 44 | = STOPP|ING;.X.D|
|00005d80| 69 73 70 6c 61 79 5f 57 | 61 72 6e 69 6e 67 20 28 |isplay_W|arning (|
|00005d90| 43 41 4e 4e 4f 54 5f 52 | 45 41 44 5f 53 43 53 49 |CANNOT_R|EAD_SCSI|
|00005da0| 29 3b 0a 58 09 72 65 74 | 75 72 6e 20 28 31 29 3b |);.X.ret|urn (1);|
|00005db0| 0a 58 09 7d 0a 58 74 6f | 74 61 6c 5f 6d 69 6e 20 |.X.}.Xto|tal_min |
|00005dc0| 3d 20 63 64 5f 73 74 61 | 74 75 73 2e 74 6f 74 61 |= cd_sta|tus.tota|
|00005dd0| 6c 5f 6d 69 6e 3b 0a 58 | 74 6f 74 61 6c 5f 73 65 |l_min;.X|total_se|
|00005de0| 63 20 3d 20 63 64 5f 73 | 74 61 74 75 73 2e 74 6f |c = cd_s|tatus.to|
|00005df0| 74 61 6c 5f 73 65 63 3b | 0a 58 0a 58 2f 2a 20 67 |tal_sec;|.X.X/* g|
|00005e00| 65 74 20 74 72 61 63 6b | 20 69 6e 66 6f 72 6d 61 |et track| informa|
|00005e10| 74 69 6f 6e 20 2a 2f 0a | 58 66 6f 72 20 28 66 69 |tion */.|Xfor (fi|
|00005e20| 72 73 74 5f 74 72 61 63 | 6b 20 3d 20 6c 61 73 74 |rst_trac|k = last|
|00005e30| 5f 74 72 61 63 6b 20 3d | 20 63 64 5f 73 74 61 74 |_track =| cd_stat|
|00005e40| 75 73 2e 66 69 72 73 74 | 3b 0a 58 20 20 28 6c 61 |us.first|;.X (la|
|00005e50| 73 74 5f 74 72 61 63 6b | 20 3c 3d 20 63 64 5f 73 |st_track| <= cd_s|
|00005e60| 74 61 74 75 73 2e 6c 61 | 73 74 29 20 26 26 20 28 |tatus.la|st) && (|
|00005e70| 6c 61 73 74 5f 74 72 61 | 63 6b 20 3c 20 4d 41 58 |last_tra|ck < MAX|
|00005e80| 5f 54 52 41 43 4b 5f 49 | 4e 46 4f 29 3b 0a 58 20 |_TRACK_I|NFO);.X |
|00005e90| 20 6c 61 73 74 5f 74 72 | 61 63 6b 2b 2b 29 20 7b | last_tr|ack++) {|
|00005ea0| 0a 58 09 69 66 20 28 43 | 44 67 65 74 74 72 61 63 |.X.if (C|Dgettrac|
|00005eb0| 6b 69 6e 66 6f 28 63 64 | 5f 64 65 76 69 63 65 2c |kinfo(cd|_device,|
|00005ec0| 20 6c 61 73 74 5f 74 72 | 61 63 6b 2c 20 26 63 64 | last_tr|ack, &cd|
|00005ed0| 5f 69 6e 66 6f 29 20 3d | 3d 20 30 29 20 7b 0a 58 |_info) =|= 0) {.X|
|00005ee0| 09 09 73 74 61 74 75 73 | 20 3d 20 53 54 4f 50 50 |..status| = STOPP|
|00005ef0| 49 4e 47 3b 0a 58 09 09 | 44 69 73 70 6c 61 79 5f |ING;.X..|Display_|
|00005f00| 57 61 72 6e 69 6e 67 20 | 28 43 44 47 45 54 54 52 |Warning |(CDGETTR|
|00005f10| 41 43 4b 49 4e 46 4f 5f | 46 41 49 4c 45 44 29 3b |ACKINFO_|FAILED);|
|00005f20| 0a 58 09 09 72 65 74 75 | 72 6e 20 28 31 29 3b 0a |.X..retu|rn (1);.|
|00005f30| 58 09 09 7d 0a 58 09 74 | 72 61 63 6b 5f 69 6e 66 |X..}.X.t|rack_inf|
|00005f40| 6f 5b 6c 61 73 74 5f 74 | 72 61 63 6b 5d 2e 6c 65 |o[last_t|rack].le|
|00005f50| 6e 67 74 68 5f 6d 69 6e | 20 3d 20 63 64 5f 69 6e |ngth_min| = cd_in|
|00005f60| 66 6f 2e 74 6f 74 61 6c | 5f 6d 69 6e 3b 0a 58 09 |fo.total|_min;.X.|
|00005f70| 74 72 61 63 6b 5f 69 6e | 66 6f 5b 6c 61 73 74 5f |track_in|fo[last_|
|00005f80| 74 72 61 63 6b 5d 2e 6c | 65 6e 67 74 68 5f 73 65 |track].l|ength_se|
|00005f90| 63 20 3d 20 63 64 5f 69 | 6e 66 6f 2e 74 6f 74 61 |c = cd_i|nfo.tota|
|00005fa0| 6c 5f 73 65 63 3b 0a 58 | 09 7d 0a 58 69 66 20 28 |l_sec;.X|.}.Xif (|
|00005fb0| 6c 61 73 74 5f 74 72 61 | 63 6b 20 3e 3d 20 4d 41 |last_tra|ck >= MA|
|00005fc0| 58 5f 54 52 41 43 4b 5f | 49 4e 46 4f 29 20 7b 0a |X_TRACK_|INFO) {.|
|00005fd0| 58 09 44 69 73 70 6c 61 | 79 5f 57 61 72 6e 69 6e |X.Displa|y_Warnin|
|00005fe0| 67 20 28 54 4f 4f 5f 4d | 41 4e 59 5f 54 52 41 43 |g (TOO_M|ANY_TRAC|
|00005ff0| 4b 53 29 3b 0a 58 09 72 | 65 74 75 72 6e 20 28 31 |KS);.X.r|eturn (1|
|00006000| 29 3b 0a 58 09 7d 0a 58 | 0a 58 2f 2a 20 66 69 6e |);.X.}.X|.X/* fin|
|00006010| 64 20 74 68 65 20 62 65 | 73 74 20 6e 75 6d 62 65 |d the be|st numbe|
|00006020| 72 20 6f 66 20 66 72 61 | 6d 65 73 20 74 6f 20 72 |r of fra|mes to r|
|00006030| 65 61 64 20 61 74 20 61 | 20 74 69 6d 65 20 2a 2f |ead at a| time */|
|00006040| 0a 58 63 64 5f 72 65 61 | 64 73 69 7a 65 20 3d 20 |.Xcd_rea|dsize = |
|00006050| 43 44 62 65 73 74 72 65 | 61 64 73 69 7a 65 20 28 |CDbestre|adsize (|
|00006060| 63 64 5f 64 65 76 69 63 | 65 29 3b 0a 58 0a 58 72 |cd_devic|e);.X.Xr|
|00006070| 65 74 75 72 6e 20 28 30 | 29 3b 0a 58 7d 0a 58 0a |eturn (0|);.X}.X.|
|00006080| 58 0a 58 2f 2a 20 63 61 | 6c 6c 65 64 20 61 73 20 |X.X/* ca|lled as |
|00006090| 73 69 67 6e 61 6c 20 68 | 61 6e 64 6c 65 72 2c 20 |signal h|andler, |
|000060a0| 61 6e 64 20 77 68 65 6e | 20 74 68 65 20 71 75 69 |and when| the qui|
|000060b0| 74 20 62 75 74 74 6f 6e | 20 69 73 20 70 72 65 73 |t button| is pres|
|000060c0| 73 65 64 20 2a 2f 0a 58 | 76 6f 69 64 0a 58 71 75 |sed */.X|void.Xqu|
|000060d0| 69 74 5f 70 67 6d 20 28 | 29 0a 58 7b 0a 58 43 44 |it_pgm (|).X{.XCD|
|000060e0| 64 65 6c 65 74 65 70 61 | 72 73 65 72 28 63 64 5f |deletepa|rser(cd_|
|000060f0| 70 61 72 73 65 72 29 3b | 09 2f 2a 20 66 72 65 65 |parser);|./* free|
|00006100| 20 70 61 72 73 65 72 20 | 6d 65 6d 6f 72 79 20 2a | parser |memory *|
|00006110| 2f 0a 58 69 66 20 28 63 | 64 5f 64 65 76 69 63 65 |/.Xif (c|d_device|
|00006120| 20 21 3d 20 4e 55 4c 4c | 29 20 7b 0a 58 09 43 44 | != NULL|) {.X.CD|
|00006130| 63 6c 6f 73 65 28 63 64 | 5f 64 65 76 69 63 65 29 |close(cd|_device)|
|00006140| 3b 09 09 2f 2a 20 63 6c | 6f 73 65 20 43 44 20 70 |;../* cl|ose CD p|
|00006150| 6c 61 79 65 72 20 70 6f | 72 74 20 2a 2f 0a 58 09 |layer po|rt */.X.|
|00006160| 7d 0a 58 69 66 20 28 61 | 75 64 69 6f 5f 70 6f 72 |}.Xif (a|udio_por|
|00006170| 74 20 21 3d 20 4e 55 4c | 4c 29 20 7b 0a 58 09 41 |t != NUL|L) {.X.A|
|00006180| 4c 63 6c 6f 73 65 70 6f | 72 74 28 61 75 64 69 6f |Lclosepo|rt(audio|
|00006190| 5f 70 6f 72 74 29 3b 09 | 2f 2a 20 63 6c 6f 73 65 |_port);.|/* close|
|000061a0| 20 61 75 64 69 6f 20 70 | 6f 72 74 20 2a 2f 0a 58 | audio p|ort */.X|
|000061b0| 09 7d 0a 58 65 78 69 74 | 20 28 30 29 3b 0a 58 7d |.}.Xexit| (0);.X}|
|000061c0| 0a 58 0a 58 0a 58 2f 2a | 20 63 61 6c 6c 65 64 20 |.X.X.X/*| called |
|000061d0| 62 79 20 70 72 65 73 73 | 69 6e 67 20 74 68 65 20 |by press|ing the |
|000061e0| 45 4a 45 43 54 20 62 75 | 74 74 6f 6e 20 2a 2f 0a |EJECT bu|tton */.|
|000061f0| 58 76 6f 69 64 0a 58 65 | 6a 65 63 74 5f 63 61 6c |Xvoid.Xe|ject_cal|
|00006200| 6c 62 61 63 6b 20 28 77 | 2c 20 63 6c 69 65 6e 74 |lback (w|, client|
|00006210| 5f 64 61 74 61 2c 20 63 | 61 6c 6c 5f 64 61 74 61 |_data, c|all_data|
|00006220| 29 0a 58 57 69 64 67 65 | 74 20 77 3b 0a 58 63 61 |).XWidge|t w;.Xca|
|00006230| 64 64 72 5f 74 20 63 6c | 69 65 6e 74 5f 64 61 74 |ddr_t cl|ient_dat|
|00006240| 61 3b 09 2f 2a 20 75 6e | 75 73 65 64 20 2a 2f 0a |a;./* un|used */.|
|00006250| 58 63 61 64 64 72 5f 74 | 20 63 61 6c 6c 5f 64 61 |Xcaddr_t| call_da|
|00006260| 74 61 3b 09 2f 2a 20 75 | 6e 75 73 65 64 20 2a 2f |ta;./* u|nused */|
|00006270| 0a 58 7b 0a 58 69 66 20 | 28 73 74 61 74 75 73 20 |.X{.Xif |(status |
|00006280| 3d 3d 20 53 54 4f 50 50 | 45 44 29 20 7b 0a 58 09 |== STOPP|ED) {.X.|
|00006290| 69 66 20 28 28 63 64 5f | 64 65 76 69 63 65 20 3d |if ((cd_|device =|
|000062a0| 3d 20 4e 55 4c 4c 29 20 | 26 26 20 28 28 63 64 5f |= NULL) |&& ((cd_|
|000062b0| 64 65 76 69 63 65 20 3d | 20 43 44 6f 70 65 6e 28 |device =| CDopen(|
|000062c0| 30 2c 20 22 72 22 29 29 | 20 3d 3d 20 4e 55 4c 4c |0, "r"))| == NULL|
|000062d0| 29 29 20 7b 0a 58 09 09 | 44 69 73 70 6c 61 79 5f |)) {.X..|Display_|
|000062e0| 57 61 72 6e 69 6e 67 20 | 28 43 44 4f 50 45 4e 5f |Warning |(CDOPEN_|
|000062f0| 46 41 49 4c 45 44 29 3b | 0a 58 09 09 7d 0a 58 09 |FAILED);|.X..}.X.|
|00006300| 65 6c 73 65 09 7b 0a 58 | 09 09 43 44 65 6a 65 63 |else.{.X|..CDejec|
|00006310| 74 28 63 64 5f 64 65 76 | 69 63 65 29 3b 0a 58 09 |t(cd_dev|ice);.X.|
|00006320| 09 43 44 63 6c 6f 73 65 | 28 63 64 5f 64 65 76 69 |.CDclose|(cd_devi|
|00006330| 63 65 29 3b 0a 58 09 09 | 63 64 5f 64 65 76 69 63 |ce);.X..|cd_devic|
|00006340| 65 20 3d 20 4e 55 4c 4c | 3b 0a 58 09 09 7d 0a 58 |e = NULL|;.X..}.X|
|00006350| 09 7d 0a 58 65 6c 73 65 | 09 7b 0a 58 09 44 69 73 |.}.Xelse|.{.X.Dis|
|00006360| 70 6c 61 79 5f 57 61 72 | 6e 69 6e 67 20 28 43 44 |play_War|ning (CD|
|00006370| 45 4a 45 43 54 5f 46 41 | 49 4c 45 44 29 3b 0a 58 |EJECT_FA|ILED);.X|
|00006380| 09 7d 0a 58 7d 0a 58 0a | 58 0a 58 2f 2a 20 63 61 |.}.X}.X.|X.X/* ca|
|00006390| 6c 6c 65 64 20 62 79 20 | 70 72 65 73 73 69 6e 67 |lled by |pressing|
|000063a0| 20 74 68 65 20 53 54 4f | 50 20 62 75 74 74 6f 6e | the STO|P button|
|000063b0| 20 2a 2f 0a 58 76 6f 69 | 64 0a 58 73 74 6f 70 5f | */.Xvoi|d.Xstop_|
|000063c0| 63 61 6c 6c 62 61 63 6b | 20 28 77 2c 20 63 6c 69 |callback| (w, cli|
|000063d0| 65 6e 74 5f 64 61 74 61 | 2c 20 63 61 6c 6c 5f 64 |ent_data|, call_d|
|000063e0| 61 74 61 29 0a 58 57 69 | 64 67 65 74 20 77 3b 0a |ata).XWi|dget w;.|
|000063f0| 58 63 61 64 64 72 5f 74 | 20 63 6c 69 65 6e 74 5f |Xcaddr_t| client_|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.