Re: Supporting UTIs in audio file component
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