Core Audio
Core Audio的官方网站位址:https://developer.apple.com/library/mac/documentation/MusicAudio/Conceptual/CoreAudioOverview/Introduction/Introduction.html
启用Core Audio模组
定义
如果您想要启用Core Audio模组,您的C++编译必须定义以下:ENABLE_HOST_COREAUDIO
程序原始档
C++文件必须包含以下两个:- CiosAudio/Platforms/MacOSX/CaCoreAudio.hpp
- CiosAudio/Platforms/MacOSX/CaCoreAudio.cpp
Qt
如果您使用Qt,在以下设定档内:CiosAudio/Platforms/MacOSX/HostAPIs.pri
将以下设定打开即可:HostAPIs += CoreAudio
链结
Core Audio必须与以下四个Framework链结:- CoreAudio
- CoreServices
- AudioUnit
- AudioToolBox