Re: Getting SampleHardwarePlugin to work for default device
Re: Getting SampleHardwarePlugin to work for default device
- Subject: Re: Getting SampleHardwarePlugin to work for default device
- From: Stéphane Letz <email@hidden>
- Date: Tue, 07 Aug 2012 00:26:54 +0200
>
> Message: 2
> Date: Sat, 04 Aug 2012 20:09:58 -0700
> From: Jared Sohn <email@hidden>
> To: email@hidden
> Subject: Getting SampleHardwarePlugin to work for default device
> Message-ID:
> <CA+yx0a1HiC4qPEWeL7P_u6gwCyX4YS9ONuPi=email@hidden>
> Content-Type: text/plain; charset=ISO-8859-1
>
> Hi,
>
> I have modified the SampleHardwarePlugin example to include a
> CanBeDefaultDevice() method that returns true and added some logging
> to the beginning of SHP_Device::Initialize().
>
> I am able to get logging information for the master process and one
> additional process (which dies by the time my system starts up), but
> do not get information for any others. From searching the mailing
> list, I've seen this verbiage:
On which OSX version are you testing your code?
>
> "...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."
>
> Some questions:
>
> 1) I haven't done this yet. Is that why I'm not getting logging
> information from other processes?
I don't think so. You should be able to trace any process that loads the SampleHardwarePlugin. Loading the SampleHardwarePlugin is caused by the process using the CoreAudio API, and is somewhat separated from what the plugin actually does.
>
> 2) What exactly is meant by the state being the same?
Showing device structure: number of audio streams, configuration of each stream, possibly audio controls.... and possibly a "shared" state that your plugin may have to expose.
Actually it is now clear what you are trying to achieve with the SampleHardwarePlugin sample... It would help if you describe a bit more.
Regards,
Stephane Letz
_______________________________________________
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