• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Reading CD under MacOS 9 (and X...)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Reading CD under MacOS 9 (and X...)


  • Subject: Re: Reading CD under MacOS 9 (and X...)
  • From: Jeff Moore <email@hidden>
  • Date: Thu, 20 Jun 2002 12:59:31 -0700

On Thursday, June 20, 2002, at 01:15 AM, Tristan Leblanc wrote:

on 19/06/02 20:33, Jeff Moore at email@hidden wrote:

On Wednesday, June 19, 2002, at 02:03 AM, Tristan Leblanc wrote:

I need to make a Carbon application that access to Audio CD tracks.

How can I read the CD data?

If track files appears like AIFC files under MacOS X (TOC appears like
a
file too - ".TOC.plist"), they are empty on MacOS 9, and no TOC... So I
think that I can't use the PBReadForkAsync command...

An idea was to use SCSI or ATA commands to read CD sectors directly...
(Original message below..)

But I can't see carbonized ATA Commands.

It isn't really possible to read red book audio data the same way on 9
as you do on X. The mechanisms used are totally different. On X, the
data is presented via the file system as individual AIFC files. On 9,
you have to talk to the CD driver directly. You will have to have
custom code for each.


Since Driver commands are not available under carbon, is there a solution?

I wonder if I can import the driver commands from interface lib, and call
them after an OS check.

if (MacOSX()) {
DoTheStuffWithQuicktime();
} else {
DoTheStuffWithDriver();
}

Maybee that's a stupid idea... Is it possible to do that?

This is not possible. You could send the commands, but since there isn't a CD audio driver to receive them, it wouldn't do a lot of good.

Or should I make two separates applications... :/

Or have two bundles in your app that you load depending on which OS you are running on.

Either way, there really isn't a way to have the same code on 9 and X for reading Red Book Audio CDs.

--

Jeff Moore
Core Audio
Apple
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: Reading CD under MacOS 9 (and X...) (From: Tristan Leblanc <email@hidden>)

  • Prev by Date: Re: CLI producer code cycle starvation
  • Next by Date: Re: problem writing OS X audio driver
  • Previous by thread: Re: Reading CD under MacOS 9 (and X...)
  • Next by thread: clarification on RME suggestions ...
  • Index(es):
    • Date
    • Thread