[問題] Audio Unit Process Graph問題
我主要是利用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
04/21 14:30, 1F
→
04/22 13:55, , 2F
04/22 13:55, 2F
→
04/22 13:55, , 3F
04/22 13:55, 3F
推
04/23 11:48, , 4F
04/23 11:48, 4F
MacDev 近期熱門文章
PTT數位生活區 即時熱門文章