Re: DataSourceName notification?
Re: DataSourceName notification?
- Subject: Re: DataSourceName notification?
- From: Jeff Moore <email@hidden>
- Date: Tue, 13 Dec 2005 16:49:14 -0800
I think you misunderstand what is happening here. The mapping between
the data source ID and it's name is not changing, rather it is the
value of the control itself that is changing. To notified when the
value of a control changes, you should listen to the property that
represents that control's value. In this case, it would be
kAudioDevicePropertyDataSource.
On Dec 13, 2005, at 4:14 PM, Hidetomo Katsura wrote:
when a headphone is plugged in, the data source name is
"Headphones" instead of "Internal speakers" on my G5 Dual 2GHz.
i added a kAudioDevicePropertyDataSourceNameForIDCFString property
listener, but i didn't get any notification when i plug in and out
a headphone. am i using the listener wrong or is it not supposed to
get a notification for whatever reason? is there any other way to
get a notification when the user plugs in and out a headphone?
--
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