Re: HAL user-land plugin / SampleHardwarePlugin
Re: HAL user-land plugin / SampleHardwarePlugin
- Subject: Re: HAL user-land plugin / SampleHardwarePlugin
- From: Jeff Moore <email@hidden>
- Date: Tue, 17 Nov 2009 15:34:25 -0800
The implementation of SampleHardwarePlugIn specifically does not allow itself to be the default device. If you want to change this, the first step is to override HP_Device::CanBeDefaultDevice() in your subclass of HP_Device. After that, the plug-in has to provide the same view on it's device(s) in each process the plug-in is initialized in, especially the coreaudiod process. This entails implementing enough IPC between the instances of your plug-in in each process to synchronize the state. The sample code doesn't do this which is why it prevented itself from being the default device in the first place.
On Nov 17, 2009, at 3:05 PM, Shawn Erickson wrote:
> I am playing around with the SampleHardwarePlugin with the end goal of
> implementing a synthetic audio output device for the purpose of
> allowing the user to loop audio into our software as generated by
> other processes on the system.
>
> Anyway... is it possible to get a HAL plugin such as
> SampleHardwarePlugin to be available as a system input/output device
> (available in system preference basically for the user to select). So
> far I cannot get the sample plugin to become available in system
> preferences but it is available to applications. Just wonder what the
> requirement / limitations are.
--
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