PBControlAsync() in OS X
PBControlAsync() in OS X
- Subject: PBControlAsync() in OS X
- From: "Roni Music" <email@hidden>
- Date: Tue, 23 Oct 2001 14:29:43 +0200
Hi,
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?
Any help appreciated
Thanks
Rolf
--
Rolf Nilsson <email@hidden>
Roni Music <email@hidden>
Smafolksgatan 51, S-212 38 Malmoe, Sweden
Phone: int + 46 - 40494411
http://www.ronimusic.com