Re: Default device notifications
Re: Default device notifications
- Subject: Re: Default device notifications
- From: Jeff Moore <email@hidden>
- Date: Fri, 28 Jul 2006 15:40:11 -0700
Let me guess, you are switching from "line in" to "built-in mic" or
something like that?
The Sound Prefs panel has an expanded view of what a device is when
it comes to the built-in hardware. Instead of just listing the built-
in hardware as one device, it lists each entry in the built-in
hardware's data source selector control as if it was a device. You
can see the differences if you compare the device list displayed in
AMS with the Sound Prefs.
Whenever you select one of these "devices" you are in reality not
changing the default device, but rather changing the value of it's
data source selector control. So if you want notifications about
this, you need to pay attention to those notifications. Note however,
that this is complicated by the fact that not every device has a
source selector (including the built-in hadware on the various models
of Macs we have put out over the years) and that you'd only want to
listen to it when it's owning device is already selected as the
default device.
On Jul 28, 2006, at 3:09 PM, John Haggerty wrote:
I am trying to set things up so that I get notifications when the
default device is changed, for example via System Preferences.
I am adding a callback thusly:
AudioHardwareAddPropertyListener
(kAudioHardwarePropertyDefaultInputDevice,...)
This works if the actual hardware changes (e.g. if the default
input device is a USB mic and I remove it) but not if I change the
default device in System Preferences. Do I have to register another
callback for 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