我可能失去了一些東西簡單,但試圖建立的時候,我發現了以下鏈接錯誤:無法連結添Bolstad的核心音頻實例
Undefined symbols for architecture i386:
"CAStreamBasicDescription::CAStreamBasicDescription()", referenced from:
-[AudioController initializeAUGraph] in AudioController.o
-[AudioController .cxx_construct] in AudioController.o
"CAStreamBasicDescription::AsString(char*, unsigned long) const", referenced from:
CAStreamBasicDescription::PrintFormat(__sFILE*, char const*, char const*) const in AudioController.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
我想不通這是怎麼回事作爲編譯器發現CAStreamBasicDescription.h就好了。在遇到這種類型的錯誤時,我已經看到了清除框架搜索路徑的建議,但在該路徑中沒有任何內容。可能有些簡單,但我覺得我正在用消防水帶喝水。謝謝!
我不會去調用這個解決方案,我可以解決這個問題,並通過修改它來使用'AudioStreamBasicDescription'來代替'CAStreamBasicDescription'來獲取Tim的示例。除了多行更改外,您只需複製'SetAUCanonical'的功能即可。 – yuji