Hi, trying the following code results in datasize = 0 and removing the if(){} results in a regions array (null). It is checking this property on a playing AudioFileID which had a region already set to it. Am I using this correctly?
Mike
OSStatus result; UInt32 dataSize; result = AudioFileGetPropertyInfo (fAudioFile, kAudioFilePropertyRegionList, &dataSize, NULL); NSLog(@"regionlist datasize %d", dataSize); if (result == noErr) {
CFArrayRef regions = NULL; result = AudioFileGetProperty(fAudioFile, kAudioFilePropertyRegionList, &dataSize, ®ions);
NSLog(@"regions array %@", (NSArray *)regions); }
|