implementing an AudioHardwarePlugin
implementing an AudioHardwarePlugin
- Subject: implementing an AudioHardwarePlugin
- From: Michael Dautermann <email@hidden>
- Date: Tue, 6 Feb 2007 06:59:00 -0800
Hi all,
I've been working on a 'vdig' for a video digitizing device for a few
months and now my work is pulling me into the world of CoreAudio (to
do the audio component related to my device). I have spent a day
looking through the Core Audio Framework Reference pages on
developer.apple.com, and a few hours looking through this list's
archives, and I am very impressed at the amount of work people are
getting done with CoreAudio (especially when some documentation is
pretty thorough but some other parts and examples are seriously
lacking).
I have to do a AudioHardwarePlugin. The reason this
AudioHardwarePlugin needs to run in user-land is because my audio
data will come from a daemon which will be serving up my audio data
via sockets. Yeah, it's disgusting, but it appears to be the only
way to properly share a USB device which has one USB interface with
multiple bulk endpoints. Doing a solution that mixes user-land (the
'vdig' run in userspace) and kernel mode (i.e. IOAudio) while doing
USB seems out of the question.
Here are my hopefully easy questions:
1)
My video component goes into ~/Library/Quicktime (probably also /
Library/Quicktime), but where does a AudioHardwarePlugin go? In one
list posting from 2003, Stefan Werner guessed /Library/Audio/Plug-Ins/
HAL (so if this were the place, could I also install in ~/Library/
Audio/Plug-Ins/HAL)?
2)
I created a CFPlugin project in XCode, gave the bundle a name ending
in ".plugin", a unique UUID into the Info.plist file for my factory
function and the kAudioHardwarePlugInInterface3ID UUID for the
CFPlugInType. After putting my new bundle into ~/Library/Audio/Plug-
Ins/HAL (or ~/Library/Audio/Plug-Ins/Components), I did not see any
of my printfs (e.g. in my Factory function, in my QueryInterface
function) in the console when I launched HALLab. Am I using the
wrong format for the CFPlugin or the wrong testing app (just to see
if I can get the component opened/enumerated)?
Are AudioHardwarePlugin and HAL Plugins one and the same? or is one
class a superset of another?
I'm sure it's been said before on this list, but I sure *wish* there
was a basic AudioHardwarePlugin sample project I could use.
thanks for any advice!
michael
_______________________________________________
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