Re: DataSourceName notification?
Re: DataSourceName notification?
- Subject: Re: DataSourceName notification?
- From: Hidetomo Katsura <email@hidden>
- Date: Tue, 13 Dec 2005 17:49:45 -0800
my mistake. sorry about that. it works now with
kAudioDevicePropertyDataSource. thanks.
i didn't realize that the data source ID's are different between
Headphones and Internal speakers. now i know both DataSource and
DataSources change when i plug in and out a headphone.
katsura
On Dec 13, 2005, at 4:49 PM, Jeff Moore wrote:
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?
_______________________________________________
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