6

因此,iPhone 可以与蓝牙耳机配对并使用它来拨打电话(尽管带有 3.0 OS 的iPod Touch无法与耳机配对,请看图)。

但是我可以编写一个应用程序来访问配对的蓝牙设备及其功能(例如来自耳机的麦克风输入)吗?

这在VoIP应用程序甚至通过可以使用语音聊天的 Wi-Fi 玩的多人游戏中非常有用。

4

5 回答 5

6

如果兼容的蓝牙耳机与设备配对,如果您使用 Core Audio API,它将被透明地使用;您无需在应用程序中添加对蓝牙耳机的特定支持。

If you want to integrate specifically with Bluetooth devices, you will need to join the "Made for iPod" / "Works with iPhone" program, but that's still not going to let you talk to any arbitrary Bluetooth device. Compatible Bluetooth devices require a special Apple authentication chip, which usually means you'd need to build a custom device specifically for the iPhone/iPod (for example, TomTom's in-car navigation device).

于 2009-06-21T08:07:30.487 回答
1

我想是的,但我不确定。

非常高级的信息在这里:http: //developer.apple.com/iphone/program/sdk/

新框架的文档在这里,您可能需要登录 iPhone 开发程序才能查看它,我不确定:

http://developer.apple.com/iphone/library/documentation/ExternalAccessory/Reference/ExternalAccessoryFrameworkReference/ExternalAccessoryFrameworkReference.pdf

希望这可以帮助。

于 2009-06-20T01:00:52.650 回答
0

不,我不这么认为。

但您仍然可以使用麦克风。如果有耳机,它将使用它。

于 2009-06-20T00:54:39.420 回答
0

硬件制造商必须为您提供一些规格以允许您使用它。

于 2009-06-20T03:59:03.953 回答
0

As Nathan said, if it's already paired you use Core Audio.

If you need more advanced stuff (more than audio) I guess you were thinking of using the GameKit Framework to connect to the bluetooth devices. In this case forget it, since Apple allows you to connect only to "other iPhones or iPod Touches"...

于 2009-06-24T12:35:59.433 回答