user1239775
user1239775

Reputation: 21

iOS record audio error

I am developing ios app for recording video and audio. I implemented the recording audio. But first I record video from camera, then if I am recording audio, I can't record audio. I used follow code. AudioQueueGetProperty(mQueue, kAudioQueueProperty_StreamDescription, &mRecordFormat, &size);

Here I got error(couldn't get input channel). After I started this app and record audio immediately, recording audio was successed. But I recorded video from the camera, then recording audio was failed. I couldn't this reason. Please let me know the reason. Thanks in advance.

Upvotes: 0

Views: 358

Answers (1)

Alex Cio
Alex Cio

Reputation: 6052

Maybe you can provide us with more code in the right format. Or post the solution if you got any.

Did you try to solve the problem with the AV Foundation Framework? With it you can get access to the video and audio stream and put them together.

Upvotes: 0

Related Questions