Re: Sound pref pane still using audio device after closing
Re: Sound pref pane still using audio device after closing
- Subject: Re: Sound pref pane still using audio device after closing
- From: Jeff Moore <email@hidden>
- Date: Tue, 10 Jun 2003 12:13:23 -0700
On Tuesday, June 10, 2003, at 10:57 AM, Sean McBride wrote:
Hi all,
I'm trying to understand a behaviour I'm seeing, and am hoping someone
here can confirm my hypothesis.
If I select my sound input device in the Sound pref pane, the pref pane
opens my device and draws the vumeters. That's fine. But if I then
click 'show all' to return to the list of pref panes (or change to a
different pref pane) the sound pref pane does not seem to close its
connection to my device. If I quit the sys prefs app then the
connection
is closed. Can someone confirm this behaviour?
Yes. It does this, but
I consider it a bug; because of this, *my* pref pane is unable to allow
changes to my hardware because the sound pref pane is using it. Or
does
Apple consider it a feature? :)
It's a performance optimization. Saves the Pref Pane from tearing down
and then subsequently rebuilding it's audio world. This speeds the
transition to another pref pane.
I have to say that having multiple clients accessing your device
simultaneously, even in the same process, is a feature of the system as
a whole. If you are dependent on being able to get the client count for
your device to 0 before you can do whatever configuration you need to
do, you are going to be in a world of hurt. The system cannot guarantee
the ability to do this.
For one, faceless background apps can be doing audio, so the user won't
have any way to turn them off. Then there's the whole notion of having
multiple login sessions running in a network situation. A user can ssh
into a system to run some audio process and again you are in a
situation where the user can't get the use count down to 0.
--
Jeff Moore
Core Audio
Apple
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.