Re: Available codecs
Re: Available codecs
- Subject: Re: Available codecs
- From: Anders Norlander <email@hidden>
- Date: Thu, 24 Mar 2011 08:23:55 +0100
Read the format property kAudioFormatProperty_EncodeFormatIDs with AudioFormatGetProperty.
To check if a codec is support for a particular file format you should compare it to the results of kAudioFileGlobalInfo_AvailableFormatIDs.
Note there may be more restrictions for a codec and file format combination, like supported sample rates, bit rates etc.
-Anders
On 2011-03-24, at 1:58 , Ethan Funk wrote:
> How can I tell if a CoreAudio codec (via audio format kAudioFormat constants) is supported under a particular OS X installation, other than calling AudioConverterNew and seeing if it fails with a format error. It would be nice to be able to generate a list of available formats to present to the user prior trying a format and having it fail.
>
> Thanks,
> Ethan... _______________________________________________
> 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
_______________________________________________
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