AVAudioSessioninitializatin需要时间 - AVAudioSession initializatin takes time

- 此内容更新于:2016-02-03
主题:

我用AVAudioSessioniOS记录。当我第一次初始化它的时候,它需要大约5-10秒钟,然后中断UI(只有第一次初始化)。然后开始,立即响应。任何线索如何解决它。谢谢,阿卜杜勒

原文:

I'm using AVAudioSession for recording on iOS. When I first initialize it, it takes around 5-10 seconds and then interrupts UI (only first time it's initialized). Then onwards, it immediately responds. Any clue how to resolve it.

Thanks, Abdul

网友:你能提前准备它使用后台线程?

(原文:Could you prepare it ahead of use on a background thread?)