• 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: CAAudioFileFormats::InferFileFormatFromDataFormat BUG? and more
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CAAudioFileFormats::InferFileFormatFromDataFormat BUG? and more


  • Subject: Re: CAAudioFileFormats::InferFileFormatFromDataFormat BUG? and more
  • From: Mark's Studio <email@hidden>
  • Date: Mon, 6 Jul 2009 22:42:08 +0200

I might have miss understood what the CAAudioFileFormats class was to be used for.

I have a case where the user can choose from a list of available encoders,
i then want to make a new list with writable AudioFileTypes that support the selected encoder type,
and then let the user select the filetype, and then find the extension for the selected filetype.


it look like all the functions are in the api, but i guess i have to roll my own class for this
if it's not in any of the publicUtilities classes.


Thanks




On 06/07/2009, at 19.20, james mccartney wrote:


On Jul 4, 2009, at 3:33 PM, Mark's Studio wrote:

I am trying to get a filetype based on audio format, so i use InferFileFormatFromDataFormat,
but i had to comment out the two lines for it to return anything ?
it might also be better if it returned an array since there must be many filetypes supporting the same format.

It depends on what your use case is. For this particular utility class, originally written to support afconvert, it only wants to infer if there is an unambiguous answer.



Is there an overview somewhere of what formats the files supports ?

You can use AudioFileGetGlobalInfo to find out what files types are supported and what data formats those files support.



Peter Mark

Mark's Recording Studio A/S
Lundeskovsvej 3
2900 Hellerup
Denmark
Tel: +45 35366078
Fax: +45 35366038
Mobile: +45 20416018
www.marks-studio.dk
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


References: 
 >CAAudioFileFormats::InferFileFormatFromDataFormat BUG? and more (From: Mark's Studio <email@hidden>)
 >Re: CAAudioFileFormats::InferFileFormatFromDataFormat BUG? and more (From: james mccartney <email@hidden>)

  • Prev by Date: Re: AQOfflineRenderTest
  • Next by Date: Re: AQOfflineRenderTest
  • Previous by thread: Re: CAAudioFileFormats::InferFileFormatFromDataFormat BUG? and more
  • Next by thread: AudioConverterFillComplexBuffer, '!pkd' error
  • Index(es):
    • Date
    • Thread