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: Getting PCM data from MP3/AAC/ALAC File
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
][
Date Index
][
Thread Index
]
Re: Getting PCM data from MP3/AAC/ALAC File
Subject
:
Re: Getting PCM data from MP3/AAC/ALAC File
From: William Bates <
email@hidden
>
Date: Sat, 20 Dec 2008 09:08:59 -0600
For better or worse, the designers of Core Audio picked floats as the "natural" representation. I personally think it was the best choice, although some will quibble about the number of bits of resolution and would argue for doubles.
In Core Audio, if you want something other than the canonical stream format (stereo, 44.1, float) you generally obtain it as the output of an AudioConverter. Apple doc is vague about exactly when you need to use AudioConverters, since it depends on what you're doing with the stream.
AudioConverters can be a pain to implement. Fortunately some of the higher-level APIs create reliable AudioConverters for you. ExtAudioFile creates a single AudioConverter for you which, in the input/read case, converts from file format (e.g., mp3) to canonical. AudioQueue also creates one. It's often helpful to ask "where is the converter?" is using these APIs.
_______________________________________________
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: Getting PCM data from MP3/AAC/ALAC File
From:
"Hamish Allan" <email@hidden>
References:
>
Getting PCM data from MP3/AAC/ALAC File
(From: Daniel Staudigel <email@hidden>)
>
Re: Getting PCM data from MP3/AAC/ALAC File
(From: Daniel Staudigel <email@hidden>)
>
Re: Getting PCM data from MP3/AAC/ALAC File
(From: Daniel Staudigel <email@hidden>)
>
Re: Getting PCM data from MP3/AAC/ALAC File
(From: William Bates <email@hidden>)
>
Re: Getting PCM data from MP3/AAC/ALAC File
(From: William Bates <email@hidden>)
>
Re: Getting PCM data from MP3/AAC/ALAC File
(From: Daniel Staudigel <email@hidden>)
Prev by Date:
Re: Synthesizing sound for the iPhone
Next by Date:
Re: Getting PCM data from MP3/AAC/ALAC File
Previous by thread:
Re: Getting PCM data from MP3/AAC/ALAC File
Next by thread:
Re: Getting PCM data from MP3/AAC/ALAC File
Index(es):
Date
Thread