• 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
Re: Supporting UTIs in audio file component
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Supporting UTIs in audio file component


  • Subject: Re: Supporting UTIs in audio file component
  • From: James McCartney <email@hidden>
  • Date: Fri, 22 Oct 2010 14:28:40 -0700

For example:

void MyAudioFormat::GetUTIs(CFArrayRef *outArray)
{
	const int size = 1;
	CFStringRef data[size];

	data[0] = CFSTR("com.mycompany.myformat");

	*outArray = CFArrayCreate(kCFAllocatorDefault, (const void**)data, size, &kCFTypeArrayCallBacks);
}


On Oct 22, 2010, at 2:17 PM, James McCartney wrote:

>
> Are you overriding this method in your AudioFileFormat subclass?
>
> 	virtual void GetUTIs(CFArrayRef *outArray) {}
>
> See AudioFileFormat.h
>
>
>
> On Oct 22, 2010, at 10:06 AM, Anders Norlander wrote:
>
>> Hi,
>>
>> does anyone know how an 'afil' component can return information for kAudioFileGlobalInfo_UTIsForType?
>>
>> Trying to retrieve that value for my custom component just results in kAudioFileInvalidFileError
>> from AudioFileGetGlobalInfo.
>> However, when the call is made the component entry point is not even called.
>> Perhaps it should be specified in the component Info property list?
>> The same applies to kAudioFileGlobalInfo_MIMETypesForType.
>>
>> Thanks,
>> Anders
>>

James McCartney
Apple CoreAudio
email@hidden



 _______________________________________________
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

  • Follow-Ups:
    • Re: Supporting UTIs in audio file component
      • From: James McCartney <email@hidden>
References: 
 >Supporting UTIs in audio file component (From: Anders Norlander <email@hidden>)
 >Re: Supporting UTIs in audio file component (From: James McCartney <email@hidden>)

  • Prev by Date: Re: Supporting UTIs in audio file component
  • Next by Date: Re: Supporting UTIs in audio file component
  • Previous by thread: Re: Supporting UTIs in audio file component
  • Next by thread: Re: Supporting UTIs in audio file component
  • Index(es):
    • Date
    • Thread