Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/iphone/40.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
iphone使用音频队列服务录制时捕获图像_Iphone_Uiimagepickercontroller - Fatal编程技术网

iphone使用音频队列服务录制时捕获图像

iphone使用音频队列服务录制时捕获图像,iphone,uiimagepickercontroller,Iphone,Uiimagepickercontroller,我有一个录音程序,它是使用音频队列服务实现的。它通过以下方式捕获音频数据: void AudioOutputCallback(void* inUserData, AudioQueueRef outAQ, AudioQueueBufferRef outBuffer) 方法。但我的目标是在录制音频文件的同时捕获图像。然后,我将UIImagePickerController集成到同一个ViewController中,以启动图像捕获过程 -(IBAc

我有一个录音程序,它是使用音频队列服务实现的。它通过以下方式捕获音频数据:

void AudioOutputCallback(void* inUserData,
             AudioQueueRef outAQ,
             AudioQueueBufferRef outBuffer)
方法。但我的目标是在录制音频文件的同时捕获图像。然后,我将UIImagePickerController集成到同一个ViewController中,以启动图像捕获过程

-(IBAction)captureImage:(id)sender{
    UIImagePickerController *picker = [[UIImagePickerController alloc] init];
    picker.delegate = self;
    picker.allowsEditing = NO;
    picker.sourceType = UIImagePickerControllerSourceTypeCamera;
    [self presentModalViewController:picker animated:YES];
}
但问题是,当我启动captureImage方法时,录音过程停止了。 请向我解释一下,这是否是一项可能的任务。有没有其他方法可以达到这个目标