home *** CD-ROM | disk | FTP | other *** search
/ Computer Installation Guide - Dragon Clan Series / CD2.iso / Audio / CDDA15 / CDDA.DOC < prev    next >
Encoding:
Text File  |  1996-03-26  |  59.2 KB  |  1,211 lines

  1.  
  2.  
  3. CDDA Version 1.5 (build 133) - This is the tenth release of CDDA.
  4.  
  5. **** NOTE ****
  6. Release 1.0h was the last free release of CDDA.
  7.  
  8. Since then I have made some drastic changes to the program to 
  9. include XA and most importantly CDi.  It is because of the fact
  10. that Phillips in their infinite wisdom want to "license" their
  11. CDi technology, that I must now turn CDDA into shareware.  I am
  12. not happy about having to shell out several hundred dollars to 
  13. get ahold of their "GREEN" and "WHITE" books.  The new registration
  14. fee is small, and I don't intend to screw the user with paying a 
  15. more than $100US fee before knowing if it may or may not work for them.
  16.  
  17. I know I've said it before, but this could be the last release of CDDA.
  18. I have so little time to work on it now, that it is taking months just
  19. to get a small bug fix released.  As far as I can tell, it seems to 
  20. work fairly well on most machines now, and there is not a lot I can
  21. add in the way of new features.  Unless there is a life threatening
  22. bug found, I can't expect to have the time to put into this program 
  23. for a while.  The amount of email I get now is getting to be a problem.
  24. If you want help make sure you send me all the info about it, if you
  25. expect me to respond quickly.  I don't give high priority to messages
  26. like - "Please help.  I can't get your program to work."  If you 
  27. don't tell me a LOT more than this, don't expect much in the way of help.
  28.  
  29. PS: I have been getting a lot of mail from people who are having trouble
  30. running CDDA.  It turns out most of them are running it in a DOS box
  31. under Windows.  This is usually a bad thing.  I have added a check to
  32. see if either disk caching or Windows is running, and if so will warn
  33. you of the potential problems.  Again I really don't expect to have a
  34. version that will run reliably under Windows any time soon.  CDDA has
  35. been running very well for the last few months, and it would appear that
  36. it is stable enough not to need any more updates.  I just don't 
  37. have any more things I can fix.
  38.  
  39. CDDA - What is it?
  40. ------------------
  41.  
  42. CDDA is a DOS PC based utility that allows the user to extract digitally
  43. perfect copies of samples from audio CDs.  It also allows the user
  44. to extract MPEG streams from CDi Digital Video CDs, and VideoCDs, and 
  45. XA frames from CD-XA CDs.
  46.  
  47. Some History
  48. ------------
  49.  
  50. In February 1993, I needed to get some audio samples into digital
  51. form on my PC.  Toshiba had just released the 3401 CDROM drive
  52. which allowed reading of DA frames across the SCSI bus.  Because
  53. there were no programs available to do this, I had to write my
  54. own.  I used it to get the samples, and then left it alone because
  55. I had no idea anyone else wanted to do this.  Some months later
  56. CDGRAB came out, but they wanted much too much money for their
  57. program, so I cleaned up the program and released it as CDDA09A.ZIP.
  58.  
  59. Note:
  60. Some time later I heard from a very irate person who told me I
  61. couldn't use the name CDDAxxx.zip because he was already using
  62. the name.  I've looked everywhere, used ARCHIE, and asked people
  63. who seem to know every program on the net, and no one has seen
  64. this guy's program.  However, in the interest of keeping peace on
  65. the net, I have changed the distribution file name to DA2WAV1G.ZIP.
  66. The program itself will still be called CDDA.
  67. NB: I finally found this elusive CDDA.  It turns out to be a CD 
  68. Duplicate Analyzer to search for duplicate files on two different
  69. CDROMs.
  70.  
  71. The first release fully supported the Toshiba 3401 CD-ROM drive.  I have
  72. since added a whole bunch more including MSCDEX only. I have given 
  73. prerelease versions of my program to people who have to some degree 
  74. had success with other drives.  I have no guarantees that this program 
  75. will work with your drive.
  76.  
  77. Since the release of 1.0a I have heard from people who were having
  78. trouble with the NEC 74-1/84-1 drives.  So, I went out and borrowed
  79. one for a few days.  To my surprise the 84-1 didn't work.  The next
  80. thing I did was get the data sheets for the drive sent to me from
  81. the NEC faxback.  There is no mention of being able to read DA frames
  82. on that data sheet.  Next, I reread the NEC programming manual.  It
  83. says about the 74-1/84-1 drives "Read CD-DA is under consideration of
  84. content in the SCSI support commnds".  This suggests that it may
  85. or may not be supported.  Next I called NEC tech support.  They told
  86. me that "reading digital audio through the SCSI port is NOT supported
  87. on the 74-1/84-1 drives.  It is supported on the 3x and 4x drives."
  88. So, for the time being, I will leave in the code to support the 74-1/84-1
  89. drives.  If I don't hear from someone who gets it to work in the
  90. next while, I will remove the support and mention it in this file. I have
  91. also heard from someone who has a NEC 211 drive.  I have no idea what
  92. this drive is other than it is a 2X drive.  This person has had good
  93. success running CDDA.  I have also heard from someone with NEC 210 who
  94. has not had success.  If anyone knows more about programming for NEC
  95. drives please let me know.  To add to the NEC confusion, NEC tech
  96. support is still telling people that the 74-1 and 84-1 drives CAN
  97. read DA frames.  This is just not true.  If NEC can't get their own
  98. tech support staff trained, can you imagine the quality of their drives?
  99.  
  100. I wanted to be sure that I had full support for all the NEC drives,
  101. so I called tech support again.  This time I had to wait on hold for
  102. over an hour to talk to a tech droid tell me that he didn't know the
  103. answer, but would call me back later in the day with an answer.  That
  104. was six+ months ago and I haven't heard from him.  Next, I tried the email
  105. tech support for NEC.  I got an email back saying that they would look
  106. into it and get back to me right away.  I have sent follow up emails, and
  107. again I haven't heard from them in over six months.  I am not going to
  108. try any more NEC support. Period.  If they can't get their act together
  109. to support their users/developers, then everyone should buy drives
  110. from another vendor.  With all the trouble over the OEM'd 3x drive,
  111. I would think that no one would ever buy a NEC drive again.  BTW, has
  112. anyone heard of a NEC drive since the final version of the 74/84 that
  113. actually works correctly?  I know I haven't, and that includes all the 
  114. new 4x and IDE drives.  I you know otherwise let me know.  In the mean
  115. time I might suggest another vendor.
  116.  
  117. There has been a lot of talk about the Mitsumi drives and whether 
  118. they will work with CDDA and like programs.  The bottom line is this:
  119. I talked to an engineer in the CDROM group at Mitsumi, and he told
  120. me that none of their drives will read DA frames, and that none
  121. of their drives ever will.  It appears that Mitsumi is concerned about
  122. the copyright issues of CDDA.  I know we have all heard rumours about
  123. people getting the drives to work, but I trust the word of the head
  124. s/w designer for CDROM drives over a fourth hand rumour.  If your
  125. drive has a part number like FX001D or FX400, then you have a Mitsumi
  126. drive and you won't get DA from your drive.
  127.  
  128. The reason I have left the Mitsumi in the program is that the Mitsumi drives 
  129. WILL read XA/CDi frames.  For that reason, you can extract your MPEG 
  130. movies, but you can't extract DA.
  131.  
  132. Different ROM revisions cause the drives to do things differently.  One
  133. version may work just fine and others might not.  It is very tough for
  134. me to help with drives that don't work, when I don't have one of
  135. those drives to work with.  If your drive revision is on the bad list,
  136. I don't know what to tell you.  Perhaps you can make a really big
  137. stink with the manufacturer and have them upgrade your rom.
  138. Here is a list of known good and bad rom revisions.  I will add to this
  139. list as I receive reports from the field.  Hint: that means if you get
  140. this program working, please, please, please send me dumps of the
  141. output, so I can update these docs.  You will notice no changes to 
  142. this list since the last version of CDDA.  This is because I haven't
  143. received any dumps from people that have the program working.
  144.  
  145. good                  bad
  146. ----                  ---
  147. Sony 561 rev 1.9a     Sony 561 rev 1.7x
  148. Sony 561 rev 1.8p     Sony 561 rev 1.8f
  149. Sony 8012 rev 3.1e    Sony 55s 1.0q
  150. Toshiba rev 0283      Toshiba rev 2732
  151.                       Toshiba rev 3593
  152. NEC 211 rev 1.0       NEC 84-1 rev 1.0
  153.                       NEC 210
  154. (note: I'm giving up on this list because so few people report back
  155. with decent descriptions about what works and what doesn't.  Don't
  156. expect any new additions to this list.)
  157.  
  158. What drives support DA?
  159. -----------------------
  160.  
  161. I have heard from many different people who say such-and-such drive
  162. will read DA frames.  The following is a list of which drives which
  163. I understand have the ability to read DA frames, and that I have
  164. included support in CDDA: (thanks to bwilliam@iat.holonet.net 
  165. for starting this list).  Note: My including suport for a drive
  166. does not mean that it is guaranteed to work on your machine.  It
  167. means that I have either heard from someone who has managed to 
  168. get it to work or I have the programming manual for the drive and
  169. have included the code to support it.  Certainly don't go out and
  170. buy a specific drive on this list just because I said CDDA might
  171. work.  Be sure to try the drive before you buy.
  172.  
  173. Apple 300, 300i, 300e (Sony CDU-8003, CDU-8003A, CDU-8012)
  174. Apple CD300+
  175. Chinon CDS-535
  176. COMPAQ CR503/CDU561
  177. DEC RRD42
  178. Goldstar GCDR-540 IDE
  179. HP 4020
  180. NEC CDR 200, 300, 400, 500, 600, 900 series
  181. NEC CDR 84-1/74-1 (rumoured with special firmware) (NEC told me that
  182.                    it didn't exist)
  183. Panasonic CR-562B/563B/572/574/581
  184. Pinnacle RCD1000/5030
  185. Pioneer 124/624
  186. Plextor 4Plex/6Plex
  187. Sanyo C3G IDE
  188. Sony CDU-561, CDU-31A, CDU-33A, CDU-55S, CDU-55E, 76E/76S
  189. Toshiba XM3301 (Silicon Graphics)
  190. Toshiba XM3401, XM4101, (XM3501 with 0925 and later firmware), 3601, 5302
  191. Hitachi
  192. Matshita (Panasonic) 503
  193. Yamaha CDR100/102
  194. Kodak PCD225,6x/Philips CDD522/Plasmon RF4100/JVC XRW2001
  195.  
  196. The code to support the Pinnacle RCD1000 is included in CDDA.  However,
  197. as of this writing, there is a problem with the drive itself that prevents
  198. CDDA from running.  I have heard from tech support that they will 
  199. have a ROM revision real soon now that will fix the problem.  If you 
  200. have one of these drives I suggest that you call Pinnacle and scream
  201. at them for the fix.
  202.  
  203. There are a whole slew of new drives coming out with the ATAPI.  A
  204. lot of rumours are floating around as to whether they will work or
  205. not.  Toshiba especially is coming out with a new drive every other
  206. week it seems. Until I can get more detailed results, I will not enter 
  207. them in the supported drive list.
  208.  
  209. You may want to run CDROMINF.EXE and have a look at the output.  If
  210. there no mention of being able to read RAW frames, and/or the
  211. RAW READ SIZE is not 2352, there is no chance that CDDA will work
  212. using the MSCDEX interface.  Also, if it reports that your drive
  213. supports reading RAW, that DOES NOT mean that CDDA will work.  It
  214. all depends upon the person who wrote the driver for your drive.  If
  215. he/she passes DA frames to MSCDEX, you're laughing.  Otherwise,
  216. you're out of luck.
  217.  
  218. If you have an ATAPI drive then you might also want to run another
  219. program of mine called ATAINF.  It will display a lot of information
  220. about your drive and will tell you if it can read digital audio.  The
  221. file is available from Simtel in msdos/cdrom/atainf10.zip
  222.  
  223. There are rumors that the Mitsumi LU055 drive will work using the
  224. MSCDEX interface, but I have yet to hear specifically what version
  225. drive, and what version driver works.  NO OTHER Mitsumi drives are 
  226. supported.  It is not my fault, it is Mitsumi's fault.  Complain 
  227. to them not me.
  228.  
  229. If you know or think you know of other drives, let me know and I will
  230. do some investigating.
  231.  
  232. What is this new CDi support?
  233. -----------------------------
  234.  
  235. Phillips has developed a standard for storing about an hour of video and
  236. audio on a standard CD.  The data is really a long MPEG I stream.  CDDA
  237. will allow you to extract either the raw MPEG stream, or just the
  238. video stream.  You can then play back the movies with any of the 
  239. standard MPEG file players.  Have a look at the included file CDIFAQ.TXT.
  240. This gives a very basic run down of what CDi is all about.
  241.  
  242. Phillips has two disc standards: WHITE book and GREEN book.  Green
  243. book was the first standard, but was really only any use if you
  244. were using a real CDi player.  It has a proprietary file system
  245. and most CDROM players won't accept the discs.  Phillips finally 
  246. smartened up and decided that they wanted to expand their market
  247. so they came up with the White book standard.  The only difference
  248. is that these new discs come with the file system built around
  249. ISO 9660.  This way most every CDROM drive in the world will allow
  250. you to look at the directory structure.  To get at the movie data
  251. you still need a drive that supports CDi.  Fortunately, as far as
  252. my program is concerned, if your drive supports XA and you have a
  253. White book disc, then you are probably ok.
  254.  
  255. When you have a White book CD installed, CDDA detects this and will
  256. attempt to display a list of MPEG streams contained on the disc.
  257. They should be displayed as file names from the CD in the form 
  258. of /MPEGAV/AVSEQ*.DAT.  It should also give you an idea of the starting
  259. block of the stream if you want to use the /LBA option.
  260.  
  261. Have a look at the included file CDCOMPAT.TXT.  It is a list from Sigma
  262. Designs (the people who make the RealMagic MPEG card) as to what
  263. CD-ROM drives work with CDi movies and what don't.  Have a look at this
  264. list before yelling at me because your drive doesn't work.
  265.  
  266. How do I use this program?
  267. --------------------------
  268.  
  269. This is a command line utility which allows the user to specify the start
  270. and end points of the data transfer and the output type.  The start and
  271. end points may be entered in one of three modes,: LBA, MSF and T (track).
  272. Make sure that you don't use more than one of these modes in the
  273. command line because it really confuses the parser in CDDA.
  274. Logical Block Address mode is the number of the frame from the start of
  275. the disc. Minute, Second, Frame mode specifies the time from the start
  276. of the disc in actual time.  Track mode allows you to dump an entire track
  277. (or song) to disk.  The LBA and MSF are related by the following formula:
  278.     LBA = Minutes * 60 * 75 + Seconds * 75 + Frames - 150
  279. The lead in track is usually 150 because there are usually 2 empty
  280. seconds at the start of a CD, but it can also be any number +- 75 frames
  281. from 150.  A commmon number other than 150 is often 182 or 183.
  282. The Toshiba, NEC and MSCDEX programming manuals define the LBA equation
  283. to be as above with -150 at the end.  The Sony manual is very vague,
  284. and it could be interpreted as either -150 or as -(lead in track).
  285. Since two of the three manuals say clearly -150, I have chosen
  286. -150 for the Sony as well.  I managed to do a fair bit of testing on
  287. a Sony 561 drive, and it appears that the -150 figure is correct.
  288. If anyone has more precise information on the Sony please pass it along.
  289.  
  290. The /ADAPTER option allows you to manually set the number of SCSI  
  291. Adapter that has the CDROM drive you want to use.  This is useful i
  292. if my software incorrectly guesses which adapter your drive is using,
  293. or if you have more than one adapter in your system.
  294.  
  295. The /ID option allows you to manually set the SCSI ID of the CDROM
  296. drive you want to use.  This is useful if my software incorrectly
  297. guesses your drive's ID, or if you have more than one CDROM drive
  298. in your system.
  299.  
  300. The /LUN option allows you to manually set the SCSI LUN of the CDROM
  301. drive you want to use.  This is useful if my software incorrectly
  302. guesses your drive's LUN, or if you have a multi-CD drive in your system
  303. like the 6 Pack from Pioneer.
  304.  
  305. The /MSC option allows you to manually set the MSCDEX drive letter of
  306. the CDROM drive you want to use.  This is useful if my software incorrectly
  307. guesses your drive's ID, or if you have more than one CDROM drive
  308. in your system.  This option does not force the software into
  309. the /M option.
  310.  
  311. The /M option forces the software to use only MSCDEX commands.  This
  312. may or may not work with your drive.  If you don't have a SCSI CDROM
  313. drive with ASPI drivers, this is your only hope.  This option would
  314. be used with the Panasonic CR-562/563, Sony CDU-31A/33A drives.
  315.  
  316. The /ATAPI option is to bypass the device driver and MSCDEX for
  317. the DA specific portion of CDDA.  This new code is very preliminary
  318. and will probably hang your ATAPI drive once and a while.  I wrote
  319. this code to show that a drive can or cannot read DA, regardless of
  320. what the driver says.  If you find that using the /M option does
  321. not work with your ATAPI drive, try using the /ATAPI.  If it runs,
  322. even for a few frames, then your drive is not the problem when using
  323. /M, it is your device driver.  It is at this point that you need to 
  324. start screaming to your vendor about crappy software.  If /ATAPI
  325. doesn't work, and you have looked at the output of ATAINF which
  326. says your drive doesn't support DA, then you are really out of luck.
  327. ATAPI is followed by two parameters the IO address of the controller
  328. card, and the device number. eg. /ATAPI 170:1  The IO address can
  329. be one of the following 1f0 170 1e8 168, and the device can be either
  330. 0 (master) or 1 (slave).  You need to remember to use the /M option
  331. in addition to the /ATAPI option otherwise CDDA assumes that you
  332. are using a SCSI drive.
  333.  
  334. The /NJC option forces the software to not do any jitter correction
  335. to the data read from the CD.  This means that the program will run
  336. faster, but that the files created cannot be guaranteed to be 100%
  337. perfect copies. 
  338.  
  339. The /P option starts the CDROM drive playing the selected range of
  340. audio out either the headphone jack on the front or out the line level
  341. jack on the back.
  342.  
  343. The /BLOCK option allows you to set the number of blocks to be read
  344. from the CD at a time.  Before version 1.4a this was fixed at 10.  You
  345. can set it as high as 56 (assuming no overlap) to increase the 
  346. performance of CDDA by as much as 40%.  This magic number of 56 is
  347. the same as 128K of memory which appears for many systems to be a 
  348. magic number for the maximum number of frames you can read at a time.
  349. Associated with this option is the /OVERLAP option which allows you
  350. to specify the number of blocks overlap at the start and end of 
  351. each read from the disc to be used in the jitter correction.  Before
  352. version 1.4a the overlap was fixed at 3.  Many of the newer drives
  353. can run with an overlap of 1 to give higher performance, and many of
  354. the old drives often need an overlap of 3 or higher.  If you are getting
  355. jitter values which are always less than 275 then you should be able to
  356. use a jitter value of 1 or 2.  If you are getting too large jitter
  357. errors, then you can try making the overlap larger than 3 to see if
  358. that fixes the problem.  Remember that the memory buffer for reading 
  359. frames is 56 blocks long.  The formula for /BLOCK and /OVERLAP is
  360.  (overlap*2)+block <= 56.  You may have to play with the /BLOCK values
  361. to find ones that work optimally on your machine.
  362. When you are using CDi or XA modes the maximum value for /BLOCK has
  363. been fixed to 26, and the /OVERLAP values are always 0.  Since there
  364. is no need for jitter correction with CDi and XA the extended block
  365. size for DA is not necessary.  The magic number of 26 also applies to
  366. Windows 95.  If you use anything more than that it tends to crash.
  367. Play with values larger than 26 under Win95 at your own risk.
  368.  
  369. The /CDIVIDEO and /CDIRAW options are to be used when you have a CDi
  370. movie disc.  /CDIVIDEO allows you to extract just the video portion
  371. of the MPEG stream.  /CDIRAW allows you to extract the entire
  372. MPEG audio/video stream.  If you use a program like VMPEG, or have
  373. a RealMagic card, then you will be able to play the movies from 
  374. hard disk instead of from the CD.
  375.  
  376. One thing to remember when using the CDi options:  CDDA must hunt through
  377. the disc to find the start of the stream.  A good way to figure out
  378. where the streams start is to look at the dump from CDROMINF.  If you
  379. have a White book disc, then the streams start at the same point
  380. as the tracks 2 and up.  Track 1 is for the file system and support
  381. files, and tracks 2 and up are for the MPEG.  If you have a Green 
  382. book disc, then you will have to choose a start point which is
  383. early enough in the disc to find the stream start.  Often the streams
  384. start around LBA 3400.  There may be more than one stream on a 
  385. Green book disc.
  386.  
  387. If you are using a White book disc, your best bet is to use the /T
  388. option, if you have enough disc space.
  389.  
  390. When you want to play the MPEG files that you have extracted, your
  391. best be is to use a program like VMPEG.  The latest version now also
  392. plays the audio.  Remember that you are going to need a lot of computing
  393. muscle to do the MPEG decoding.  Have a look at the following news post
  394. about CDi.
  395.  
  396. From: davido@aimla.com (David Oseas)
  397. Newsgroups: comp.multimedia
  398. Subject: Re: Wanted:CD-i mpeg files viewer without mpeg card
  399. Date: 11 May 1995 17:38:08 GMT
  400. Organization: Philips Media
  401. Lines: 23
  402. Distribution: world
  403. Message-ID: <3oti21$f6f@silver.aimla.com>
  404. References: <3od40u$pqj@ufrima.imag.fr>
  405. Reply-To: davido@aimla.com
  406. NNTP-Posting-Host: gneiss.aimla.com
  407.  
  408. In article pqj@ufrima.imag.fr, ageay@turing.imag.fr (Alexandre GEAY) writes:
  409. >i want to play sound from CD-i mpeg files with the video!
  410. >
  411.  
  412. I want the Cray-X/MP you're planning on running it on!
  413.  
  414. Seriously, I don't know of any computer system that is capable of
  415. demultiplexing the bitstream off disc & decoding the video and
  416. audio in sync (i.e. real time) using a software-only solution.
  417.  
  418. Your best bet is a hardware decoder.  Prices are dropping fast.
  419. I've seen boards with a MSRP of $179.
  420.  
  421. Alternatively, get a CD-i player with a DigitalVideo cartridge--
  422. then you'll be able to play all CD-i discs, including the ones
  423. we're showing at E3 this week.  ;-)
  424.  
  425. ---
  426. David Oseas, (davido@aimla.com)                [CD-i, MPEG & Amiga guru] 
  427. Sr. Software Engineer, InSight Entertainment Group
  428. Philips Media, Los Angeles, CA                  Tel: (310) 444-6150
  429.   [OPINIONS ARE MY OWN & DO NOT NECESSARILY REFLECT PHILIPS POLICIES]
  430.  
  431.  
  432. One last thing about CDi.  You may see messages during the dump
  433. about unknown subheaders.  This is fairly normal.  If you do get these
  434. messages, dump them to disk and send them to me.  I will include 
  435. checking in a later version of the program.  There is a very long list
  436. of subheaders, and I have only added the ones I have seen in the 3 CDi
  437. discs I have.
  438.  
  439. For the options /S /E /F which expect a following parameter, remember that
  440. there needs to be a space between the letter and the parameter.  ie if you
  441. enter /S01:10:10, it would come up as an error, but if you entered
  442. /S 01:10:10, it would be correct.  For the MSF mode, there need to
  443. be 2 digits for each of minutes, seconds and frames or it will come up as
  444. an error.  When entering the filename with the /F, don't include an
  445. extension, as the software automagically adds the extension for you.
  446.  
  447. At there are several file formats supported. WAVE (.WAV) and Binary (.CDA)
  448. are the types for DA, .XA for XA, and MPG for raw CDi and MPV for 
  449. MPEG video. There is also the option to dump the data in HEX format out 
  450. to the STDOUT device.
  451.  
  452. The binary format has the audio samples stored in the order Left LSB, 
  453. Left MSB, Right LSB, Right MSB.  The samples are 16 bit 44.1 KHz stereo.
  454.  
  455. I am not expecting to add options to output files in 8-bit or 22.05 KHz.
  456. This is not as simple as just throwing away samples, as this causes
  457. aliasing in the output files.  Correcting this is way beyond the
  458. scope of this program.
  459.  
  460. I am not planning to add many more formats because there
  461. are plenty of other programs out there that will do the conversions much
  462. better than I can.  Besides, the whole purpose of this program was to
  463. get the raw data out to the hard disk, not duplicate SOX.
  464.  
  465. On every CD there is a bit which defines if copying a particular track is
  466. permitted or prohibited.  CDDA checks this bit and will not continue
  467. with the dump to disk.  I have included an override option /O which forces
  468. the user to explicitly specify and to knowingly copy a copy prohibited
  469. song.  Have look at the file ROYALTY.TXT included in this distribution,
  470. which was honourably pinched from the program CDGRAB.  It is a list
  471. of most country's contacts for paying royalties.  I have heard from
  472. a couple of people who have actually tried to pay the royalites.  They
  473. have had nothing but trouble.  My understanding is that the producer
  474. has the final say on royalties, and that you must deal with him/her 
  475. as well.
  476.  
  477. One thing to remember is that audio/video fills up the hard disk fast.  It
  478. takes between 9 and 10 megabytes per minute.  Because of this I
  479. put in a check to make sure that you will have enough space to put the
  480. requested samples.  As well there is the /U option which will give you
  481. an estimate of how much disk space will be used without actually dumping
  482. the data to disk.
  483.  
  484. Examples
  485. --------
  486.  
  487. CDDA /MSF /S 10:14:36 /E 13:55:11 /F outfile /W
  488. will dump using MSF mode from 10:14:36 to 13:55:11 to a WAV file
  489.  
  490. CDDA /LBA /S 106232 /E 109443 /F outfile /B
  491. will dump using MSF mode from 106232 to 109443 to a Binary file
  492.  
  493. CDDA /T 2 /F outfile /W /O
  494. will dump the entire track 2 to a WAV file with the override mode on
  495.  
  496. CDDA /T 2 /U
  497. will display the estimated disk space for all of track 2
  498.  
  499. CDDA /T 2 /H
  500. will dump the entire track 2 in HEX to STDOUT
  501.  
  502. CDDA /T 2 /M /F outfile /W /O
  503. will dump the entire track 2 using MSCDEX interface only
  504.  
  505. CDDA /T 2 /F outfile /W /O /NJC
  506. will dump the entire track 2 using no jitter correction
  507.  
  508. CDDA /T 2 /MSC G /ID 4 /F outfile /W /O
  509. will dump the entire track 2 from MSCDEX drive G, SCSI ID 4 CDROM drive
  510.  
  511. CDDA /T 2 /CDIVIDEO /F outfile /O
  512. will dump the entire track 2 in MPEG video to outfile.MPV
  513.  
  514. CDDA /T 2 /CDIRAW /F outfile /O
  515. will dump the entire track 2 in MPEG raw audio/video to outfile.MPG
  516.  
  517. CDDA /LBA /S 2345 /E 3456 /XA /F outfile /O
  518. will dump track 2345-3456 in to outfile.XA
  519.  
  520. CDDA /T 1 /F outfile /O /M /W /ATAPI 170:0
  521. will dump track 1 to outfile.WAV using mscdex and atapi only modes
  522.  
  523.  
  524. What is this jitter business?
  525. -----------------------------
  526.  
  527. The following is a post made over a year and a half ago which discusses
  528. the technical reason for a CDROM drives difficulty in accurately
  529. positioning itself on an audio CD.
  530.  
  531.  
  532. --------------------------------------------------------------------------
  533. Newsgroups: alt.cd-rom,aus.cdrom
  534. From: adrie@ica.philips.nl (Adrie Koolen)
  535. Subject: Re: Reading Audio CDs - Why is it so complicated?
  536. Keywords: cd, cd-rom, cdrom, audio, sampling, naivety
  537. Organization: Philips Consumer Electronics, Eindhoven, The Netherlands
  538. Date: Fri, 19 Feb 1993 08:23:53 GMT
  539. Lines: 63
  540.  
  541. In article <C2nqFC.5Ew@smsc.sony.com> dce@smsc.sony.com (David Elliott) writes:
  542. >In article <1993Feb17.213223.24058@isa.de>, schwarz@isa.de (Diemo Schwarz) writes:
  543. >|> What I don't understand is: 
  544. >|> Why should it be so difficult to extract pure audio data from a CD?
  545. >
  546. >It isn't.  The problem is that the SCSI controllers in most CD-ROM
  547. >drives simply don't support it.
  548. >
  549. >|> The medium is structured by tracks and indices, isn't it?
  550. >
  551. >Yes.
  552.  
  553. Note that the `tracks' on a CD aren't layed out like tracks on a hard disk.
  554. The track and index are just numbers that are stored with each sector on
  555. the CD (in the Q-subchannel packet). The start address of a track is stored
  556. in the Table Of Contents on the CD, indices are not. Indices are normally
  557. not used, except index 0 for the 2 seconds pause at the start of each
  558. track.
  559.  
  560. The REAL structure of the CD medium is a large continuous spiral, starting
  561. at the center of the CD (at 46mm diameter). Finding a specific sector is
  562. not as trivial as it is on a hard disk. You'll have to employ a kind of
  563. binary search algorithm. Finding the start position of a specific index
  564. is even more difficult as you don't even know where it starts.
  565.  
  566. >|> And every CD player somehow manages to ship the data from the disc to
  567. >|> the D/A converter, doesn't it?
  568.  
  569. But at the DAC, they don't know which sector the sample came from or what
  570. the relative position the sample takes in a sector.
  571.  
  572. >|> So, what's the difference between reading data CDs and music CDs?
  573. >
  574. >The format of the data, to put it simply.
  575.  
  576. Well, most decoders used in audio CD players, output a stream of samples
  577. and sub-channel data, mostly used for their time code. As the decoder has
  578. to adjust the spindle speed, it uses a FIFO to store the data. If the
  579. FIFO fills up, the spindle motor is slowed down, if it gets empty, the
  580. motor is sped up. The sub-channel data normally doesn't pass through the
  581. FIFO, but goes directly to a microcontroller. That way, the microcontroller
  582. can't be sure that it knows the exact address of the data, coming out of
  583. the FIFO.
  584.  
  585. To circumvent this problem, the address of a sector is also stored in the
  586. data itself, together with a 12 bytes sync pattern. This way, one can
  587. determine the starting of a sector and its address just by looking at the
  588. data coming out of the FIFO.
  589.  
  590. Here's the real problem: audio sectors don't have this sync pattern, nor
  591. the address of the sector, in the data area of a sector. Most CDROM drives
  592. use chips that are coming from audio players. The first CDROM drives were
  593. just modified audio CD players.
  594.  
  595. To read audio sectors on a CDROM drive, you'll need a special decoder or
  596. you'll need to connect a standard decoder with some custom hardware to
  597. generate pulses to indicate the start of a sector and to synchronize the
  598. sub-channel packets with the real 2352 bytes of data.
  599.  
  600. I hope that this explains it a bit.
  601.  
  602. Adrie Koolen (adrie@ica.philips.nl)
  603. Philips Consumer Electronics, Eindhoven, the Netherlands
  604. --------------------------------------------------------------------------
  605.  
  606.  
  607. Because of this, most every CDROM drive that can read DA frames cannot
  608. accurately return to the exact same location on the disc every time.
  609. It will usually return within a few samples either way.  It took
  610. a lot of time and thought to write the code to correct for the
  611. "jitter" efficiently.  My first try brought the transfer rate
  612. to a crawl.  I have been refining the process to the point that
  613. it barely has any computing overhead, but still I have to read most
  614. every frame twice.  I am still working on getting this to work
  615. faster.  Some people have reported an 8x slowdown from 0.9a to
  616. 1.0a.  I have no explaination for that large a difference.  
  617. It is nowhere near that large on my machine, as I see only about 3x.
  618. I do agree that it is still much too slow. I have made a number of
  619. improvements in 1.0e and 1.0g that help with this slow down including making
  620. the receive buffer as large as possible (64K) when using real mode drivers
  621. like ASPI and MSCDEX.  I have also added the /NJC option for those who
  622. cannot wait for their files to be created, or for those whose drives
  623. are generating "Jitter greater than 5 frames" errors.  This error
  624. means that the software has become lost on the CD because the drive
  625. was unable to return to within 5 frames of its last postion.
  626.  
  627.  
  628.  
  629. What kind of help is there?
  630. ---------------------------
  631.  
  632. There is very limited help from the command line for CDDA.  You can get
  633. the "USAGE" by just typing CDDA.e.g.:
  634.  
  635. C:>CDDA
  636.  
  637. Usage: CDDA /(mode)  [/O] /S <start> /E <end> /F filename
  638.            [/ID <cd-rom scsi id>][/MSC <mscdex drive letter>].
  639. modes are LBA, MSF, T, U, H, NJC, M, XA, CDIRAW, CDIVIDEO
  640. /MSF - times in minute, second, frame format (MM:SS:FF)
  641. /LBA - times in Logical Block Address format (xxxxxx)
  642. /T   - send whole track to file
  643. /S   - Start time
  644. /E   - End time
  645. /P   - play the selected range
  646. /U   - estimated disk usage required for data
  647. /H   - hex dump of sectors to stdout
  648. /B   - write to file in Binary format
  649. /W   - write to file in WAV format
  650. /O   - override copy protection bit
  651. /M   - override ASPI interface and use MSCDEX
  652. /NJC - do not perform jitter correction
  653. /MSC - override MSCDEX find first CD-ROM
  654. /ID  - override ASPI find first CD-ROM
  655. /LUN - override ASPI find first CD-ROM
  656. /ADAPTER - override ASPI find first CD-ROM
  657. /BLOCK - override the number of blocks to read at a time
  658. /OVERLAP - override the overlap of blocks read for jitter correction
  659. /ATAPI - force drive to bypass device driver
  660. /XA  - read raw CD-XA frames
  661. /CDIVIDEO  - read plain MPEG video from a CDi disc
  662. /CDIRAW    - read raw MPEG video/audio from a CDi disc
  663. Binary mode extension CDA will automagically added to the filename
  664. Wave format extension WAV will automagically added to the filename
  665. CDi raw format extension MPG will automagically added to the filename
  666. CDi video format extension MPV will automagically added to the filename
  667. XA format extension XA will automagically added to the filename
  668. e.g. CDDA /MSF /S 10:14:36 /E 13:55:11 /F outfile /W
  669. e.g. CDDA /LBA /S 106232 /E 109443 /F outfile /B
  670. e.g. CDDA /T 2 /F outfile /W /O
  671.  
  672.  
  673. Copying and Registration (does he mean this costs $$$?)
  674. -------------------------------------------------------
  675.  
  676. I am allowing full freedom to copy this program.
  677. It IS a fully functional version.
  678. It is NOT Crippleware!
  679. There is NOT a pro version available for an unreasonable sum of money.
  680. As I said at the start of this file, I am now forced to start asking
  681. for a small amount of money for this program.  If you use it, then
  682. you need to register it. 
  683.  
  684. If you don't agree with the new shareware policy, then you can:
  685. a) use the program anyway and violate the copyright
  686. b) go back and use version 1.0h which will remain freeware
  687. c) don't use the program at all
  688.  
  689. I would rather keep this program Freeware, but when it starts costing
  690. me money to develop new features, then I have to draw the line.
  691.  
  692. The registration fee for using CDDA is now $15 US.  I believe that
  693. this is a fair amount given the amount that the program does.  As
  694. well, if you don't need the new features and bug fixes, then
  695. use the old version.
  696.  
  697. I won't be asking for a fee every time a new version comes out.  This
  698. fee will give you a lifetime (as long as I bug fix and add features) 
  699. of free updates via the Internet.  I will also notify registered users 
  700. of any new versions for a year.
  701.  
  702. My mail address is:
  703.  
  704.       Jim McLaughlin
  705.       449 Viewmount Dr.
  706.       Nepean, Ontario
  707.       Canada
  708.       K2E 7P1
  709.  
  710. ****** Note: my email address has changed from the one in version 1.4
  711.        and earlier !!!!
  712. If you have any questions, my email address is jmclaugh@nortel.ca, but RTFM
  713. before you start sending me then questions.
  714.  
  715. I would also like to try and keep all the files together and unchanged
  716. in the archive, so if you are passing this around don't change the files.
  717. In this distribution the files contained are:
  718.  
  719. CDDA.EXE - the program itself
  720. CDDA.DOC - this document file
  721. ROYALTY.TXT - the list of people to whom you should pay royalties
  722. CDROMINF.EXE - the MSCDEX exerciser program
  723. CDROMINF.DOC - the text file describing CDROMINF
  724. MSCTEST.EXE - the test program for MSCDEX only access reading DA
  725. TOSHTEST.EXE - the test program for TOSHIBA drives reading DA
  726. TOSH_RST.EXE - the program to reset TOSHIBA drives after fatal errors
  727. TOSHREPR.EXE - the program to restore the sectors/track on a damaged HD
  728. NECTEST.EXE - the test program for NEC drives reading DA
  729. SONYTEST.EXE - the test program for SONY drives reading DA
  730. CHINTEST.EXE - the test program for CHINON drives reading DA
  731. SCSIPING.EXE - the program which uses ASPI to search for SCSI drives
  732. CDCOMPAT.TXT - a list from Sigma Designs of drives which support CDi
  733. CDIFAQ.TXT - the short CDi FAQ
  734. CDIMOVIE.TXT - the most up to date movie list from Philips
  735. SYWTBACD.TXT - so you want to buy a CDROM?  my commentary on all the vendors
  736. VIDEOCD.TXT - the VCD FAQ from Philips
  737. XADRIVE.TXT - the list from Kodak of drives which support CD-XA
  738.  
  739.  
  740. If you are one of those Shareware houses, I don't want to see this program
  741. available for $6.99 plus shipping and handling.  I don't like seeing
  742. the average Joe getting burned for a 10 cent disk, 1 cent label and 2 cents
  743. worth of labour to make the disk, especially when he can get 600+ Meg
  744. of really good stuff from something like the Simtel CD for $25 (thanks to
  745. Robert Bruce for starting the cheap archive business).
  746.  
  747.  
  748. How to get hold of me for help.
  749. -------------------------------
  750. If you want to mail me about problems or to tell me I'm going to rot in
  751. HE double hockey sticks for helping to copy music, put your message in
  752. a file and copy it to the NUL device. :>
  753.  
  754. If you want to make suggestions or want to send compliments you can contact
  755. me at the address below.
  756.  
  757. If you encounter trouble with the program CDDA, try and run the included
  758. test program most suited to your drive.  There are four test programs:
  759. one for each of the Toshiba, Sony and NEC type drives, and one which
  760. is a MSCDEX only version.  These programs are scaled down versions of
  761. CDDA and use the command line to specify the drive letter and ID.
  762. The programs TOSHTEST, SONYTEST and NEC test take a single command
  763. line argument.  It is -n, where n is the SCSI id of the drive.
  764. eg. c:>toshtest -3
  765. This will run TOSHTEST on the SCSI drive id 3.  Beware that selecting
  766. the wrong scsi id number for these test programs might (it has
  767. happened before) screw up your hard disk if 1) the hard disk is
  768. SCSI, 2) the id you use is the one for your hard disk, and 3) your
  769. hard disk supports permanently changing the sectors per track via
  770. software.
  771.  
  772. To fix this problem, use the program called TOSH_RST.  It is used to reset
  773. a Toshiba drive after CDDA has stopped with a fatal error.  It uses
  774. the same command line argument as the TOSHTEST program.
  775.  
  776. There is also the program SCSIPING.  It searchs for are reports all devices
  777. connected to the SCSI controller.  It uses the ASPI interface.
  778.  
  779.  
  780. If you would like assistance in solving problems, please include all
  781. dumps from all the related programs.  You should be able to
  782. run the programs like this and get the dumps in a text file:
  783. CDDA /T 2 /W /O /F testfile >dumpfile.txt
  784.  
  785. I have real difficulty in tracking down problems without these
  786. dumps.  In the past the majority of people asking for help just send
  787. along a short note telling me my program doesn't work, and what
  788. they remember the error messages saying.  This just doesn't cut it.
  789. I have to have the dumps to help.
  790.  
  791. The bottom line - RTFM before writing me.  Also read the alt.cd-rom
  792. FAQ.  many of your questions can be answered by reading.
  793. EMAIL: jmclaugh@nortel.ca
  794.  
  795. Things on my wish list of new functions
  796. ---------------------------------------
  797.  
  798. I want to add support for other CDROM drives that can read DA sectors
  799. over the SCSI, but I don't have access to these drives.  If someone could
  800. supply me with the programming information, I could try and do up a new
  801. version of CDDA, if I ever get some spare time.
  802.  
  803. Questions I have received since the release of 0.9a and 1.0a
  804. ------------------------------------------------------------
  805.  
  806. Why is the program so slow?
  807. This program is so slow because of any one or more of the following:
  808. 1. My poor programming skills.
  809. 2. Many of the CDROM drives only read DA frames in 1X mode even though
  810.    they may transfer data at 2X or 3X or faster.
  811. 3. The amount of computing to do jitter correction.
  812. 4. Reordering the bytes from the CD to the WAV file.
  813. 5. Having to read 16 frames for every 10 actually written to disk to
  814.    allow for up to three frames of jitter.  This has been improved
  815.    with the use of /block and /overlap
  816. 6. When there is more than three frames of jitter, I slightly shift
  817.    the aim of the search and reread the problem frames.
  818. 7. My Toshiba seems to have a magic number of 10 frames, that if I
  819.    read more than that at a time it takes 2-3 times longer than
  820.    reading in bunches of 10 or less.  I don't understand it.  Since I
  821.    have to read ahead 3 frames and behind 3 frames every time I read
  822.    a block from the drive to correct for jitter, I can't very well
  823.    keep my reads under 11 frames.  Other drives may have similar
  824.    thresholds.
  825. 8. If you are using MSCDEX only, make sure that the /m:xx option on the
  826.    MSCDEX line of your autoexec.bat is set to at least 20.  Any less
  827.    than this, and CDDA will end up reading in 2 possibly discontinous
  828.    chunks.  This will add greatly to the time to read data.
  829. 9. Many drives are happy reading contiguous frames from the disc.  If you
  830.    ask it to move it's start point to a frame that it has just read, it
  831.    may take a very long time to get itself all lined up to start reading
  832.    again.  A good example of this is the Philips CDR drive that reads
  833.    with /NJC at 2x speed but takes 6 times longer than the range selected
  834.    if it keeps having to resychronize itself.
  835.  
  836. What is ASPI?
  837. ASPI stands for Advanced SCSI Programming Interface.  It was developed
  838. by Adaptec, and has been adopted by many SCSI card manufacturers as
  839. a standard SCSI programming interface.  If you want more information
  840. on ASPI call Adaptec (408) 945-8600.
  841.  
  842. When I use /T, the start and ends of the track are a couple of
  843. seconds away from where I think they should be.  Why is this?
  844. In version 0.9a, there was a deep rooted bug which caused this.  I
  845. have fixed it (I hope), and this should no longer be a problem.
  846.  
  847. When I play back my samples, why are there pops and clicks?
  848. These pops and clicks can come from two places:
  849. 1. version 0.9a did NOT handle the jitter problem, it is handled now.
  850. 2. your sound card can't handle 16-bit 44.1 KHz samples.  Try using SOX
  851.    or a similar program to change the sample to 22.05 or 11.025 KHz
  852.    samples and try again.
  853. 3. Many CDs have been mastered from digital sources.  In this case the
  854.    source may have been synthesized digitally which gives absolutely
  855.    perfect sounds which are very repetitive and exactly the same.  When
  856.    this happens, it may possibly confuse the jitter correction routines.
  857.    There is not a lot I can do about it at the moment, and there is less
  858.    that any of the other programs like mine can do.
  859.  
  860. The program stops with the error xxx.  What is wrong?
  861. The 0.9a release had very limited error reporting.  I thought that
  862. if it worked on my machine it work on everybody's.  This version
  863. has much more error reporting.  As I understand it, CDDA will
  864. not necessarily work correctly if SMARTDRV is installed.  This has
  865. been the source of a lot of trouble.  As well some people have been
  866. having trouble using CDDA in a DOS window in Windows.  I think
  867. there may be a problem when being used with a DPMI manager installed.
  868. So, the bottom line is DON'T run CDDA under Windows.
  869.  
  870. When will you release an OS/2 version?
  871. I have no interest in writing a version for OS/2. Period.  However,
  872. if you are running Warp, then you already have VASPI, and CDDA should
  873. run just fine.  If you are using an earlier version, then
  874. there is a program from Adaptec called VASPI, which will allow
  875. you to run CDDA in a DOS window.  I got the following email with
  876. the how-to for OS/2 from Stefan Eichner (Stefan-Eichner@k2.maus.de):
  877.  
  878. > 1. Your CONFIG.SYS has to include the follow lines:
  879. > [...]
  880. > BASEDEV=TMV1SCSI.ADD
  881. > BASEDEV=OS2ASPI.DMD
  882. > REM DEVICE=C:\OS2\OS2CDROM.DMD /Q
  883. > E=C:\OS2\MDOS\VASPI.SYS
  884. > [...]
  885. > !If no OS2CDROM.DMD is loaded you can't read Data-CDs!
  886. >
  887. > 2. Add to the autoexec.bat the start-comand for MSCDEX2.EXE
  888. > (e.g. C:\MSCDEX2.EXE /D:MSCD001 /L:H /m:10 /v)
  889. >
  890. > 3. Change the settings of the DOS-Session on the WPS:
  891. > DOS_DEVICE=C:\TSLRCDR.SYS /d:mscd001 /p:3
  892. >
  893. > Now CDDA works great!!!
  894. VASPIBET.ZIP is available from ftp.cdrom.com
  895.  
  896. When will you release a Windows version?
  897. I have no interest in writing a Windows version.  I don't have the time,
  898. and I don't think Windows is a particularly good OS (if you can call
  899. it an OS).  I have had a couple of offers to help, but I have been
  900. too busy with the rest of my life to work on it.  Don't hold your
  901. breath.  The word from the beta testers is that CDDA runs just fine
  902. in a DOS window under Windows 95.
  903.  
  904. When will you release a UNIX version?
  905. Never.  Although I run LINUX on my machine, I have no interest in
  906. rewriting CDDA.  There is a program called CD-DA for Linux, which
  907. should work with the Toshiba drives.  It is available from Sunsite.
  908.  
  909. When will you be writing a version for my CDROM drive?
  910. Getting the programming information from CDROM drive manufacturers is
  911. like pulling teeth.  I've been hunting for this stuff for over two
  912. years, and have only managed to get the programming manuals for
  913. Toshiba, Chinon and Sony.  If you have a drive and it does support DA frames,
  914. I need the programming manual.  I also need about 5 or 6 extra hours
  915. in each day.
  916.  
  917. I have a Toshiba drive.  Why doesn't your program work?
  918. It appears that different ROM revisions cause the drives to work
  919. differently.  For instance, my Toshiba 3401 is revision 0283.  I have
  920. heard from people who have ROMs older and newer that can't use
  921. my program.  I have also heard that Toshiba has changed the programming
  922. interface on newer drives, but it is not reflected in their SCSI
  923. programming manual.  I just don't know what is wrong.
  924.  
  925. Why doesn't your program work with my ASPI driver?
  926. Several vendors supply ASPI drivers for their SCSI cards.  However,
  927. all drivers are not created equal.  I have heard from people who
  928. have had trouble with just about every SCSI card on the planet.  I
  929. only have Adaptec's EZSCSI to do my testing.  I'll try and do my
  930. best on case by case basis, but I really don't have any spare time.
  931. I also hear from a number of people who have trouble using the Adaptec
  932. 1520/22 controllers.  It appears that the delay in doing polled IO from
  933. this card screws up my view of how the controller and drive interact.
  934. Don't expect any fixes soon.
  935.  
  936. CDROMINF works on my machine, so why doesn't CDDA?
  937. CDROMINF only uses MSCDEX calls, and CDDA also uses ASPI calls.  It
  938. is these ASPI calls that do the meat of the program.  If ASPI isn't
  939. on your machine, or doesn't work correctly, then CDDA will never work.
  940. Your only other choice is to try the /M option and use only
  941. MSCDEX commands.  This is unlikely to help any SCSI drive owners.
  942. Before writing me and asking for your drive to be supported, do a
  943. little legwork first.  Call the manufacturer and ask for the programming
  944. information.  Second, run all the test programs included with this
  945. release.  These programs don't check for the drive type before trying
  946. to read DA frames.  If any of these pass, let me know and I can
  947. add your drive based on the programming information of an existing
  948. drive.  It has happened before, so it might happen again.
  949.  
  950.  
  951. Why are there tons of zeros at the beginning and end of my track?
  952. Most every audio track has some silence at the beginning and
  953. end.  This silence is actually digital silence which is all
  954. zeros for the samples.
  955.  
  956. Can I use CDDA to read from DAT drives?
  957. As far as I know there are only a couple of DAT drives out there
  958. that allow reading of digital audio through SCSI.  In theory, I could
  959. add that feature to CDDA, but since I don't have one of those drive,
  960. and I don't have the programming manuals either, I seems very unlikely
  961. that this will ever happen.  It also seems that these drive vendors
  962. have taken out support for reading DA.  Their story is that people
  963. were putting cheap quality audio tapes in the drives and screwing
  964. up the drives.  So they took out the feature.  My guess is that they
  965. were getting pressure from the record companies.  If you really
  966. need to do this then get yourself a Silicon Graphics machine.  They
  967. make sure that this feature is available in their package.  Don't 
  968. forget to mortgage your house to pay for it. The only other option at
  969. this point is to get a DAT player that has a digital out port and get
  970. a card for your PC that can handle the digital stream.  These cards 
  971. are widely available and shouldn't cost you more than a few hundred
  972. dollars.
  973.  
  974. Sometimes CDDA doesn't work when I first put in a CD. Why?
  975. I don't know.  Some people have reported that CDDA works better after
  976. a new CD is put in the drive if you use some other utility to play and
  977. then stop the CD.  This seems to force some sanity into some drivers.
  978.  
  979. Can you change CDDA to read the song titles from my audio CD?
  980. There are no song titles recorded on an audio CD.  The following
  981. is a post which explains this better than I can.
  982.  
  983.  
  984. ----------------------------------------------------------------------------
  985. From: dplatt@ntg.com (Dave Platt)
  986. Newsgroups: alt.cd-rom
  987. Subject: Re: Ascii Track data on Audio CDs
  988. Keywords: Audio CD Ascii Track
  989. Date: 23 Feb 93 19:16:03 GMT
  990. Organization: New Technologies Group, Inc.  Palo Alto CA
  991. Lines: 41
  992.  
  993. >A friend told me that encoded on Audio CDs are the track titles, CD title,
  994. >credits and even a bitmap image of the cover art.  Can anyone confirm or 
  995. >deny this?  If it is true, how does a programmer get to this information?
  996.  
  997. In general, this is _not_ true.
  998.  
  999. The disc table-of-contents has information about the total disc length,
  1000. number of tracks, and the starting time of each track.  It has no room
  1001. for human-readable text and there is no provision in the standards for
  1002. such, as far as I've ever been able to find out.
  1003.  
  1004. The audio tracks have "subcode" information associated with each frame
  1005. (75 frames per second).  The P subcode bit is used for primitive
  1006. track-signalling flags, and is rarely interpreted by modern CD players.
  1007. The Q subcode contains some useful information: control (type,
  1008. preemphasis, and copy-protect fields), address information, index
  1009. numbers, and sometimes the disc catalog/barcode number or the ISRC code
  1010. (serial number, country, year, owner ID) of the recording.  Still, no
  1011. room for text or artwork.
  1012.  
  1013. The R,S,T,U,V,W bits in the subcode can be used in a variety of ways.
  1014. The most popular de facto standard is for CD+G graphics.  These provide
  1015. a sort of slow-scan video (288x192 pixels, max of 4096 colors using an
  1016. encoded color lookup table).  The CD+G graphics can include almost
  1017. anything... lyrics, still photos from concert footage, and copies of the
  1018. cover artwork are all quite possible and have been done.
  1019.  
  1020. Only a relatively small percentage of audio CDs have CD+G graphics.
  1021.  
  1022. Some CD players have a "subcode out" jack which can be fed to an
  1023. external decoder.
  1024.  
  1025. Some CD-ROM drives allow the subcode data to be read over the SCSI (or
  1026. other) communication bus while the drive is playing audio CDs through
  1027. its built-in DACs.  Some [fewer] drives allow both the audio data and
  1028. the subcode to be retrieved over the bus and manipulated by the host
  1029. computer.  Details vary;  see your drive reference manual.
  1030. -- 
  1031. Dave Platt                                                VOICE: (415) 813-8917
  1032.               Domain: dplatt@ntg.com      UUCP: ...netcomsv!ntg!dplatt
  1033.  USNAIL: New Technologies Group Inc. 2470 Embarcardero Way, Palo Alto CA 94303
  1034.  
  1035. ----------------------------------------------------------------------------
  1036. Changes in version 1.5 from version 1.4
  1037. - please note my new email address: jmclaugh@nortel.ca
  1038. - I now have a web home page which should always have pointers to the
  1039.   most recent versions of my programs - it can be found at
  1040.   http://www.ncf.carleton.ca/~aa571
  1041.   it also contains pointers to most drive manufacturers and to the 
  1042.   most recent drivers
  1043. - had a rewrite of the SCSI search routines - this means that I should
  1044.   be getting fewer emails about adding more drives for vendors I already
  1045.   support
  1046. - added the checking for disk caching installed, and to see if the program
  1047.   is running in a DOS box under Windows - in general it is a bad thing
  1048.   to try and run CDDA in a DOS box.
  1049. - fixed a couple of bugs that appeared in 1.4 when using the /p option
  1050. - found that problems with CDDA and either Trantor controllers or Adaptec
  1051.   1520 controllers are NOT my fault. - there appear to be problems with
  1052.   these cards - it seems that they were never designed to work with
  1053.   CDROM drives, just hard disks - yell at Adaptec
  1054. - the problem with Philips CDR machines reading MPG streams from CDi 
  1055.   discs appears to be cleared up - let me know if it is still a problem
  1056. - found that the problem with CDDA aborting with a fatal error when reading
  1057.   audio CDs in the Yamaha 100 drive has been fixed by a firmware upgrade
  1058.   in the drive - again it was not my fault - yell at Yamaha
  1059. - rewritten the SCSI search routines for drives - now can override the
  1060.   adapter, ID and LUN
  1061. - fixed bug that caused errors when an audio CD was playing and CDDA
  1062.   was run to extract data
  1063.  
  1064. Changes in version 1.4a from version 1.3a
  1065. - made several changes to help the "quiet music" problem when there are
  1066.   stretches of very quiet music, the digital master often is cleaned
  1067.   up and digital silence is put in its place, or when a digital organ
  1068.   is used as the only instrument the repeating digitally perfect notes
  1069.   can confuse CDDA
  1070. - added support for the DEC RDD42, the COMPAQ CR503/CDU561, the Kodak
  1071.   6X writer, HP 4020 writer, Pinnacle 5030, Yamaha 102, Panasonic 572/574/581
  1072. - introduced the /block and /overlap commands to allow for customizing
  1073.   the recording on difficult machines - also has the side effect of
  1074.   cutting the record times by 40%
  1075. - fixed a typo in the Plasmon drive name
  1076. - added the /ATAPI command to try and bypass the device driver and MSCDEX
  1077.   on IDE drives
  1078. - fixed a bug that caused incorrect disk free values when the drive letter
  1079.   was specified as a captial instead of lower case
  1080. - added some more robust code to retry disc reads on some of the less
  1081.   fatal errors
  1082. - rewrote the drive search routines in conjunction with adding the /ADAPTER
  1083.   command
  1084. - fixed a bug which only appears when you use a CD Enhanced CD instead 
  1085.   of the older style discs
  1086.  
  1087. Changes in version 1.3a from version 1.2a
  1088. - fixed a couple of bugs in the new Philips code
  1089. - made several changes to the jitter correction routines to speed them,
  1090.   as well CDDA has a better chance of working now with drives with
  1091.   bad jitter problems
  1092. - fixed a typo in calculating the end of disc
  1093. - now compiled in 386 code mode instead of the old 8086 code mode
  1094.  
  1095. Changes in version 1.2a from version 1.1a
  1096. - fixed another memory allocation bug which cause the program to hang
  1097.   for no apparent reason on some machines
  1098. - added support for Pioneer, Kodak, Philips, Pinnacle, Plasmon, Yamaha
  1099.   Ricoh and JVC drives
  1100. - added doc files on movie lists, CDi compatible drives and XA compatible
  1101.   drives
  1102. - added the /P option to allow playing out the head phone jack the select
  1103.   range of audio instead of saving to disk
  1104. - added the /LUN option to override the LUN=0 default - useful when
  1105.   using the 6Pack from Pioneer
  1106. - included my commentary on the purchasing of CDROM drives - is not very
  1107.   complimentary to most vendors
  1108.  
  1109.  
  1110. Changes in version 1.1a from version 1.0h
  1111. - a minor bug in the count of bytes written to disk has been fixed.
  1112. - support for CDi discs - both white and green book
  1113. - support for XA discs
  1114. - no longer freeware
  1115. - official word from Mitsumi says that they have not and will not
  1116.   ever support reading DA frames with their drives.
  1117.  
  1118.  
  1119. Changes in version 1.0h from version 1.0g
  1120. - bug in displaying the sense data has been fixed.
  1121. - a major bug that caused the program to hang at random has been fixed.
  1122. - Mitsumi 4x, Sony 55E, Sony 8012 drive types added
  1123. - Plextor (Texel drives 3028 and 5028 have been removed.  I included
  1124.   them based on a rumour I heard.  I have since received the programming
  1125.   manual for these drives, and they do not support reading DA frames.
  1126.  
  1127.  
  1128. Changes in version 1.0g from version 1.0e
  1129. (version 1.0f was not formally released)
  1130. - ISRC code display added
  1131. - option NJC added
  1132. - Hitachi, Teac, Matshita drive types added
  1133. - bug in MSCTEST concerning empty buffers fixed
  1134.  
  1135.  
  1136. Changes in version 1.0e from version 1.0a
  1137. (versions 1.0b to 1.0d were not formally released)
  1138. - UPC code display added for NEC drives
  1139. - Toshiba mode select to return the drive to normal operation after
  1140.   reading DA frames had a conflict with EZSCSI drivers - this has
  1141.   been fixed
  1142. - length of WAV file did not always match length contained in header -
  1143.   this has been fixed
  1144. - added support for the Chinon CDS-535 drive (since I don't have one
  1145.   of these drives, this is untested)
  1146. - added support for the Plextor 3028/5028 drives (since I don't have one
  1147.   of these drives, this is untested)
  1148. - there was a bug which on some machines would allocate memory wrong
  1149.   when using the /M option, and would fill the file with zeros - this
  1150.   has been fixed
  1151. - program TOSH_RST was added for users of the Toshiba drives who
  1152.   have CDDA exit with a major error.  It resets the drive back to
  1153.   normal operation
  1154. - there was a bug on some machines that would allow the user to run
  1155.   CDDA fine, but the respective test program would fail.  It appeared
  1156.   mostly on the SONYTEST and NECTEST programs - this has been fixed
  1157. - during running with NEC drives extra debug messages were printed -
  1158.   this has been fixed
  1159. - the jitter correction routine has been rewritten - CDDA now runs
  1160.   about twice as fast as 1.0a did on my machine
  1161. - a problem with one version of the Sony rom has a peculiar failure
  1162.   which may be corrected by a rewrite of the sector search routine
  1163. - a problem with copy permitted discs sometimes required /O in order
  1164.   to dump to disk
  1165. - when the last track of a disc or the last LBA or the last MSF was
  1166.   selected to be dumped, some drives actually only allow reading
  1167.   of the second to last frame, and not the last frame.  since there
  1168.   is virtually no sound on the last frame of the disc, I have forced
  1169.   the program to stop at the next to last frame
  1170.  
  1171. Known bugs:
  1172. - someone has reported the program failing on a very large drive
  1173.   with very large amounts of disk space available.  The specific
  1174.   example was a 250M drive with 235M free.  It would appear that
  1175.   there is a bug in the Borland dfree routines.  I will be looking
  1176.   into the problem, except for the fact that my drive is only
  1177.   100M, so I can't duplicate it.
  1178. - a couple of people have reported that the WAV files created are
  1179.   not compatible.  I can't say much except that in one case the
  1180.   file size written in the WAV header was incorrect, and I don't know
  1181.   why.  I have however found that really large WAV files (>10M) often
  1182.   confuse some players.  I have seen a file work correctly on a couple
  1183.   of players, and not on others.  My guess is that some players out
  1184.   there are not interpreting WAV files correctly, or are not expecting
  1185.   very large files.
  1186. - one person reported that running the test programs on their machine
  1187.   and specifying a hard drive instead of a CD-ROM drive causes the
  1188.   number of bytes per sector to be changed permanently on the drive
  1189.   I don't know if this was just a fluke, but be careful.  I have 
  1190.   included the program TOSHREPR.EXE.  This program will reset the 
  1191.   sectors per track to 512 when you accidentally run TOSHTEST on a hard
  1192.   drive instead of the CDROM drive.  This problem appears to manifest
  1193.   itself on hard drives manufactured by DEC.  If you use these drives
  1194.   be careful when running TOSHTEST.
  1195. - one person reported that having more than one CDROM drive means
  1196.   trouble for the /T mode.  I'm looking into it, but don't have an
  1197.   answer yet.
  1198. - there appears to be a problem with the LIT on some CDi Green book
  1199.   CDs.  It seems that MSCDEX is getting confused as to when the CD
  1200.   starts which in turn confuses CDDA.  I'm looking into the problem
  1201.  
  1202. Wish list: (which may or may not get implemented)
  1203. - add a /p mode to play the whole cd instead of just a range
  1204. - have start and end times include offset from beginning of track
  1205. - more CD-ROM drives supported
  1206. - add a /I mode which will do an image of the entire disc to a file
  1207. - add more support for intrepting hard error messages
  1208. - add a /DUMP mode which will dump all screen output to a file as
  1209.   well for those who can't use the >
  1210.  
  1211.