我使用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);
请帮我解决这个问题。