• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
get a region list
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

get a region list


  • Subject: get a region list
  • From: Mike Hanna <email@hidden>
  • Date: Sun, 13 Aug 2006 20:13:04 -0700

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, &regions);


NSLog(@"regions array %@", (NSArray *)regions);
}

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: Re: playing mp2 files
  • Next by Date: AU incorrectly reports Dynamic Configuration capability ???
  • Previous by thread: Re: playing mp2 files
  • Next by thread: AU incorrectly reports Dynamic Configuration capability ???
  • Index(es):
    • Date
    • Thread