Re: Reading CD under MacOS 9 (and X...)
Re: Reading CD under MacOS 9 (and X...)
- Subject: Re: Reading CD under MacOS 9 (and X...)
- From: Tristan Leblanc <email@hidden>
- Date: Thu, 20 Jun 2002 10:15:02 +0200
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?
Or should I make two separates applications... :/
Thanks,
Tristan
_______________________________________________
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.