Re: AudioDriver to User Application
Re: AudioDriver to User Application
- Subject: Re: AudioDriver to User Application
- From: Jeff Moore <email@hidden>
- Date: Fri, 2 Dec 2005 11:25:35 -0800
Indeed there is. IOKit supports sending notifications to user clients
that have opened connections. It's done using mach messaging. For an
example of how this works, you can check out how IOAudioControls
handle notify when their value changes (the source is in Darwin). In
fact, you might just want to go ahead and make a sub-class of
IOAudioControl and piggy back on the support the IOAudio family
already has.
On Dec 2, 2005, at 6:38 AM, Kevin Kicklighter wrote:
Thanks for the response Jeff. Isn't there a notification
mechanism I could use in conjunction with the IORegistry query?
Sockets? Pipes? Cocoa Notifications? Signals?
Thanks,
Kevin
Subject: Re: AudioDriver to User Application
From: Jeff Moore <email@hidden>
Date: Thu, 1 Dec 2005 15:11:59 -0800
If it's data that is "k-rate" data (that is, non-real time
information like meter values or whatever), then your best bet is
to publish it through the IORegistry and write a HAL plug-in for
your device that provides the information as a custom property.
Of course, the app in question has to know about the custom
property and what to do with it. There is no way for a driver to
"push" things at an application.
On Dec 1, 2005, at 2:59 PM, Kevin Kicklighter wrote:
What is the recommended way to get information (very low bandwidth,
that's derived from the audio stream) from my own Audio Device
driver to a user space application?
I can get the info I need by sampling my data, but need to
"forward" over to a user app.
--
Jeff Moore
Core Audio
Apple
On Dec 1, 2005, at 5:59 PM, Kevin Kicklighter wrote:
Hi all,
What is the recommended way to get information (very low
bandwidth, that's derived from the audio stream) from my own Audio
Device driver to a user space application?
I can get the info I need by sampling my data, but need to
"forward" over to a user app.
Thanks,
Kevin
_______________________________________________
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
--
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