开发者

How to call recording Callback in custom CFRunLoop in iPhone

开发者 https://www.devze.com 2023-02-01 20:48 出处:网络
I am recording audio in iPhone .. This is my Audio 开发者_如何学GoQueue object AudioQueueNewInput(

I am recording audio in iPhone ..

This is my Audio 开发者_如何学GoQueue object

  AudioQueueNewInput(
                       &audioDescription,
                       recordingCallback, self,
                       CFRunLoopGetCurrent(), kCFRunLoopDefaultMode, 0,
                       &mInputQueue
                       );

But i want to run this in a seperate RunLoop..How to create custom CFRunLoop ? Please help me..Thanks in advance.


You can create a new run loop by creating a new thread, they are thread bound and you shouldn't mess with it. I don't see a reason why you want to have a new run loop anyway, could you please tell us what you want to achieve?

0

精彩评论

暂无评论...
验证码 换一张
取 消