• 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: AudioFileCreate() - Supported Stream Formats
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AudioFileCreate() - Supported Stream Formats


  • Subject: Re: AudioFileCreate() - Supported Stream Formats
  • From: Doug Wyatt <email@hidden>
  • Date: Thu, 1 Dec 2005 17:48:57 -0800

On Nov 29, 2005, at 7:59, Manuel Holtgrewe wrote:
Hi list.

I wonder if there is any documentation about which combinations of file type (e.g. "AIFF") and "AudioStreamBasicDescription" values are supported when calling AudioFileCreate().

I searched for this information on the ADC page and on the internet but found no hints. I had a case here where I could call AudioFileCreate with the stream description of my sound card only for "AIFF-C" but not with "AIFF".

I suspect the data format you're trying to write is floating point. AIFF does not support floating point, but AIFC does; however you probably want to use 16 or 24-bit integers.


In any case, to answer your question:

AudioFileGetGlobalInfo - kAudioFileGlobalInfo_WritableTypes
	to discover writable file types

AudioFileGetGlobalInfo - kAudioFileGlobalInfo_AvailableFormatIDs
	to discover format IDs supported by a filetype

AudioFileGetGlobalInfo - kAudioFileGlobalInfo_AvailableStreamDescriptionsForFormat
to discover stream descriptions for a format ID supported by a filetype


In PublicUtility, CAAudioFileFormats (a C++ class) is an example of how to fetch all of this information. You could use this to build a dialog where the user can select file and data formats.

--
Doug Wyatt
Core Audio, Apple

_______________________________________________
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: About USB Audio Device's Volume
  • Next by Date: Re: AudioDriver to User Application
  • Previous by thread: Re: About USB Audio Device's Volume
  • Next by thread: AudioFileOpenWithCallbacks
  • Index(es):
    • Date
    • Thread