Reading Core Audio as an array of floats

I'm trying to read a .caf file as an array of float values in order to perform an FFT and retrieve some pitch data. The .caf file is saved as LinearPCM using the AVRecorder class. How in the world do I go about doing this? Reading up on the structure of the .caf files I understand that their is a file header which will need to be ignored, as well as many headers for individual 'chunks' of audio data. Is there any way to determine where the headers are? The recorded audio files are only going to be a few seconds long so their shouldn't be more than one chunk, but I can't seem to find a reference for .caf structure which goes into more details than the Apple Reference Library.


You want to use the Extended Audio File API

This will do it really easily. There is no reason to try to parse the file manually.

Need Your Help

JSON date, display original date in the server's timezone

javascript json date momentjs

For example, I have a string date like this (I'm getting this from the server in json, from rails app)

How to update cart quantity using ajax,jquery,php and sessions

javascript php jquery ajax

I am facing a problem updating the quantity of cart items,click the + or - button to increase or decrease the quantity of an item, the quantity of every item is affected.