Re: PBControlAsync() in OS X
Re: PBControlAsync() in OS X
- Subject: Re: PBControlAsync() in OS X
- From: Jeff Moore <email@hidden>
- Date: Tue, 23 Oct 2001 11:45:29 -0700
on 10/23/01 5:29 AM, Roni Music <email@hidden> wrote:
>
As you may know, device driver calls such as PBControlAsync() is not suported
>
in OS X.
>
>
I have used it to read data from Audio CD's under OS8/9 and need to replace
>
this for OS X.
>
>
The Apple doc "Accessing Hardware From Applications" descibes how to do this
>
with the help of the IOKit and a POSIX read function.
>
>
This is however a synchronous read and does not work at interrupt level.
>
>
There seems to be a asynchronous POSIX function called aio_read that is not
>
available in OS X.
>
>
Does anybody have any insight how to replace the PBControlAsync call under OS
>
X.
>
>
The IOCDMedia class would be suitable but may only be used inside the KERNEL,
>
if
>
got it right?
What exactly are you trying to do?
If you are writing a volume format reader of some kind, this isn't the right
forum to ask this question. Probably the Darwin developers' list would be
more appropriate.
If you are trying to read Red Book audio CD's, you have one of two choices.
You can either dive in to the kernel and write a IOKit driver, or read the
data from the volume of AIFC files that gets mounted in the file system for
the CD. The data in them is little endian which is why they are AIFC files
rather than ordinary AIFF files.
--
Jeff Moore
Core Audio
Apple