【发布时间】:2011-11-18 16:10:16
【问题描述】:
我正在开发一个在 OsX 上播放音频的应用程序。我可以使用 CodeAudio 列出可用的输出设备,但是蓝牙耳机有问题;即使设备已关闭且未连接,它仍会列在 OsX 声音首选项窗格中,因此被 CoreAudio 拾取为有效输出。 如果相应的设备尚未连接,我希望不显示蓝牙输出。
我尝试过检查 CoreAudio 的这些属性:
kAudioDevicePropertyDeviceIsAlive
kAudioDevicePropertyDeviceIsRunning
kAudioDevicePropertyDeviceIsRunningSomewhere
但默认输出和蓝牙输出没有区别。
Coreaudio 可以进行这种检测吗?
【问题讨论】:
-
我也想知道这个。你可能已经看到了:lists.apple.com/archives/coreaudio-api/2010/Oct/msg00171.html
标签: macos cocoa bluetooth core-audio