• 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: Audio driver outside kernel
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Audio driver outside kernel


  • Subject: Re: Audio driver outside kernel
  • From: "try another" <email@hidden>
  • Date: Mon, 07 Nov 2005 21:02:40 +0000

I was told that the only way to write a CoreAudio driver was via a kext. Is this a new API?
So I can write a user-land driver for an audio "device" using the <CoreAudio/AudioHardwarePlugIn.h> API?
Thanks,
This is really good news.



From: Jeff Moore <email@hidden>
To: CoreAudio API <email@hidden>
Subject: Re: Audio driver outside kernel
Date: Mon, 7 Nov 2005 11:59:47 -0800


On Nov 7, 2005, at 8:11 AM, try another wrote:

I have been studying the PhantomAudioDriver sample in order to write my own audio driver. I see that the timerFired (IOTimerEventSource) is simulating a DMA interrupt. When this "interrupt" occurs, it means that the currentBlock has been transferred.
I would like to do this from a userland application. Any suggestions on how I could do this?

User-land APIs have many timer APIs. Which you use depends on many factors.


I thought of sharing the outputBuffer and the currentBlock with the userland app, but I would need to modify the userclient. I don't think I have access to it; it's provided for me by the IOAudioDevice?
The other problem with this approach is: how do I timestamp the wrap-around of the ring buffer from the userland app?
Any recommendations?

The IOAudio family is for kernel drivers. You won't be using any of it's constructs in a user-land driver. In fact, user-land drivers are very different beasts than IOAudio drivers and are defined by the API in <CoreAudio/AudioHardwarePlugIn.h>. While it's entirely feasible to use a model like what the IOAudio family uses, the code you need to write to implement it is very different.


--

Jeff Moore
Core Audio
Apple


_______________________________________________ Do not post admin requests to the list. They will be ignored. Coreaudio-api mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden

_________________________________________________________________
MSNĀ® Calendar keeps you organized and takes the effort out of scheduling get-togethers. http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines Start enjoying all the benefits of MSNĀ® Premium right now and get the first two months FREE*.


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Audio driver outside kernel
      • From: Jeff Moore <email@hidden>
References: 
 >Re: Audio driver outside kernel (From: Jeff Moore <email@hidden>)

  • Prev by Date: Re: Channels and frames (correction)
  • Next by Date: Re: Updating a View component about indexed parameter states
  • Previous by thread: Re: Audio driver outside kernel
  • Next by thread: Re: Audio driver outside kernel
  • Index(es):
    • Date
    • Thread