• 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
AudioDeviceID and IOBluetoothDevice
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AudioDeviceID and IOBluetoothDevice


  • Subject: AudioDeviceID and IOBluetoothDevice
  • From: Jesus Vicente <email@hidden>
  • Date: Fri, 22 Oct 2010 00:29:57 +0200 (CEST)

Hi,

I have a question about coreaudio and bluetooth devices.

I use the coreaudio framework for listing the devices that are available in the system.  That works fine but I also get the previously connected  bluetooth devices even when they are not in range of connection and I would like to avoid that.

For doing that, I tried to find the IOBluetoothDevice that is associated to the AudioDeviceID that represents the bluetooth. If I got that I am done as I can check if the bluetooth device is connected and, therefore, in range or, if it is not connected (in standby) I can try to open and close a baseband connection. Now, I am sure that I am missing something because what I tried for getting the IOBluetoothDevice sounds overcomplicated and I am not getting far:
    - First, I listed the paired bluetooth devices in the system so I have an array of IOBluetoothDevices
    - For each IOBluetoothDevice I tried to create either a IOBluetoothRFCOMMAudioController or a IOBluetoothHeadsetDevice
    - If I success in the previous step I just call the method getAudioDeviceID and compare with my original AudioDeviceID
  

The problem that I am having is that I am not able to create in a consistent way a IOBluetoothRFCOMMAudioController nor IOBluetoothHeadsetDevice. What I meant is that sometimes (for the same device) the objects are been created and other times the objects are not been created. I tried to create the objects either with initForConnectionToDevice or initWithIncomingDevice (I tried both).

Does someone see something wrong in my approach? Is there any easier method to get the IOBluetoothDevice associated to an AudioDeviceID?

Thanks in advance,
Kind regards,
Jesus

 _______________________________________________
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

  • Follow-Ups:
    • Re: AudioDeviceID and IOBluetoothDevice
      • From: Jeff Moore <email@hidden>
  • Prev by Date: Re: MultiChannel Mixer on Snow Leopard, no errors but no sound
  • Next by Date: Re: AudioDeviceID and IOBluetoothDevice
  • Previous by thread: Re: Forcing "Live" mode on a Logic track from Audio Unit
  • Next by thread: Re: AudioDeviceID and IOBluetoothDevice
  • Index(es):
    • Date
    • Thread