Re: User-land CoreAudio driver and Leopard
Re: User-land CoreAudio driver and Leopard
- Subject: Re: User-land CoreAudio driver and Leopard
- From: Jeff Moore <email@hidden>
- Date: Wed, 14 Nov 2007 13:46:27 -0800
On Nov 14, 2007, at 12:37 PM, Stéphane Letz wrote:
You need to make your device disappear from the device list in this
case using the standard methods available to you. If the device can't
be used, it should not be presented to the user. When the server gets
relaunched, then you can make your device re-appear on the system.
Actually I'm not even speaking of trying to update a device list for
a given application *while* the applications is running!
Let me explain in another way with teh following sequence of actions:
- start the jack server:
- open AMS, or Sound Preferences (or HALLab)
- since our jack server is running, the JackRouter plug-in will see
that and thus appears as an available device for the application.
- select JackRouter as the default input/output
- quits AMS:
So you have a happy functioning device at this point that has been set
as the default device.
- stops jack server
At this point, the device ceases to be happy or functioning. Any
currently running app should be told that the device has died and it
should be removed from the device list.
- open AMS: AMS tries to "restore" JackRouter as the defaut input/
output,
As I said in one of the previous emails, coreaudiod is where the
default device is tracked. AMS just reports what the server says.
but since the jack server does not run, the JackRouter plug-in
throw this kAudioHardwareIllegalOperationError and thus is not
available as a possible device
Ah. The problem here is that you are showing a non-functioning device
in the first place. You should just not be presenting it to the
system. It should not be in the device list, period.
- AMS does display the list correctly: the list is even completely
unsable (grayed)
Since this is the responsability of AMS to access the device list
and display correctly, what can be done?
No, it is your plug-in that is in the wrong here. AMS is just showing
what you are telling it. Your plug-in is presenting a non-functioning
device to the system. It should not be doing this.
--
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