我想从AudioFileID
读取,然后使用此方法写入结尾(使其循环):
UInt64 outDataSize = 0;
UInt32 thePropSize = sizeof(UInt64);
OSStatus result = AudioFileGetProperty(mBackupRecordFile, kAudioFilePropertyAudioDataByteCount, &thePropSize, &outDataSize);
UInt32 readPoint = outDataSize;
void* theData = malloc(outDataSize);
OSStatus result2 = AudioFileReadBytes(mBackupRecordFile, FALSE, 0, &readPoint, theData);
UInt32 writeBytes = readPoint;
OSStatus result3 = AudioFileWriteBytes(mBackupRecordFile, FALSE, readPoint, &writeBytes, theData);
问题是在result3中我得到一个大数而不是0,文件不会增加。 result3的值是1869627199 = kAudioFileOperationNotSupportedError