• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: DataSourceName notification?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >DataSourceName notification? (From: Hidetomo Katsura <email@hidden>)
 >Re: DataSourceName notification? (From: Jeff Moore <email@hidden>)

  • Prev by Date: didFinishPlaying problem
  • Next by Date: Re: Link problem trying to use audiofloat library in my kext
  • Previous by thread: Re: DataSourceName notification?
  • Next by thread: Link problem trying to use audiofloat library in my kext
  • Index(es):
    • Date
    • Thread