我AudioFileWritePackets()
用来写数据,在录制过程中它没有返回错误。我使用的数据格式标志是:
if(appDelegate.screenRecording){
cPacket = 0;inNumPackets = inCompleteAQBuffer->mPacketDescriptionCount;
if (AudioFileWritePackets(nAudioFile, false, numBytes, mPacketDescs, mPacketIndex, &nPackets, inCompleteAQBuffer->mAudioData) == noErr)
{
mPacketIndex += nPackets;
NSLog(@"sample result");
}
else {
NSLog(@"ext err");
}
}
每次打电话Nslog(ext err);
请帮我解决这个问题。