[問題] Audio Unit Process Graph問題

看板MacDev作者 (Rebellionyu)時間12年前 (2013/04/20 14:45), 編輯推噓2(202)
留言4則, 2人參與, 最新討論串1/1
我主要是利用http://ppt.cc/fLmx這個網頁的code 在simulator上都可以順利的跑,但我output到iPad上卻出現問題… 我設了中斷點發現出現這個地方 - (void)initializeAndStartProcessingGraph { OSStatus result = AUGraphInitialize(processingGraph); if (result >= 0) { AUGraphStart(processingGraph); } else { XThrow(result, "error initializing processing graph"); } } 當執行到AUGraphInitialize(processingGraph)跟AUGraphStart(processingGraph)時, NSLog裡面就會出現 2013-04-20 14:33:24.923 Indoor[769:907] 14:33:24.923 <com.apple.main-thread> AURemoteIO::Initialize failed: -10851 (enable 1, outf< 1 ch, 44100 Hz, Int16> inf< 1 ch, 44100 Hz, Int16>) 2013-04-20 14:33:35.419 Indoor[769:907] 14:33:35.420 <com.apple.main-thread> AURemoteIO::Initialize failed: -10851 (enable 1, outf< 1 ch, 44100 Hz, Int16> inf< 1 ch, 44100 Hz, Int16>) 我google了一下,但是都找不到同樣是 -10851錯誤的情形。 想請問一下有沒有人知道如何解決? 另外,這份code主要功能就是把mic收到的聲音轉成頻率數值。 謝謝各位。 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 116.59.254.191

04/21 14:30, , 1F
你是直接抓他在github 的proj嗎?
04/21 14:30, 1F

04/22 13:55, , 2F
對,底下有人回說放到device上也不能跑,
04/22 13:55, 2F

04/22 13:55, , 3F
但他們的問題似乎是會回傳什麼-50,與我的不一樣
04/22 13:55, 3F

04/23 11:48, , 4F
我這邊直接跑沒有任何問題,用的是iPhone 5
04/23 11:48, 4F
文章代碼(AID): #1HSZcOGh (MacDev)
文章代碼(AID): #1HSZcOGh (MacDev)