Re: Device unplugged, how application should handle the situation?
Re: Device unplugged, how application should handle the situation?
- Subject: Re: Device unplugged, how application should handle the situation?
- From: William Stewart <email@hidden>
- Date: Tue, 13 Dec 2005 12:38:49 -0800
In fact, there are two AUHAL "subclasses" that manage which device
they will track:
Default Output Unit - tracks the default output used by applications
such as QuickTime/iTunes/DVD Player
System Output Unit - tracks the device used for sound effects, alert
sounds, etc.
We recommend an application generally use the default output for
playing sound unless it is going to present its own device management.
Veering slightly off topic:
If you are playing sound effects (for instance, "whoosh" sounds for
new mail, etc), then you have two choices. Ideally, you would use the
SystemSound.h APIs from the ApplicationServices framework. This
avoids the overhead of establishing an audio stack in your
application, and will honour settings from the Sound Prefs Pane about
(a) whether to even play system sounds and (b) what volume to play
these sounds at. Failing this - well ideally there isn't a "failing
this" case :-)! - we really would prefer developers to use that API
for this kind of user feedback.
HTH
Bill
On 13/12/2005, at 11:51 AM, Jeff Moore wrote:
AUHAL already automatically switches to the default device if the
device it is using goes away.
On Dec 13, 2005, at 3:10 AM, Rustam Muginov wrote:
On Nov 11, 2005, at 10:45 PM, Jeff Moore wrote:
What would be better strategy to the application which does
allow user to choose from sound devices for input and output.
track the "device gone" situation, track the "default system
sound input/output changed" e.t.c.?
I need the application to switch to other devices "on the fly"
then current i/o device is gone.
I'd use AUHAL, which has support for all of that.
Jeff, how does AUHAL handles "device unplugged" event?
Is it possible to make AUHAL automaticaly "switch" to another
device and continue input/output when device unplugged?
--
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
--
mailto:email@hidden
tel: +1 408 974 4056
________________________________________________________________________
__
"Much human ingenuity has gone into finding the ultimate Before.
The current state of knowledge can be summarized thus:
In the beginning, there was nothing, which exploded" - Terry Pratchett
________________________________________________________________________
__
_______________________________________________
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