Getting raw audio data from an AIFF file
Getting raw audio data from an AIFF file
- Subject: Getting raw audio data from an AIFF file
- From: "Andrew GFunk" <email@hidden>
- Date: Sat, 08 Feb 2003 16:42:56 -0800
Hi! I'm a newbie to audio app development. Under OS X, is there an easy way
to get at the raw audio data (PCM) of an AIFF (or similar type) file? All I
need besides the raw audio data is the sample-rate, resolution, and number
of channels of the sound... all the other headers that might be included in
the file can be ditched. Is there some kind of simple service I can use to
store the PCM portion of the file as an NSData object?
I plan on doing some DSP stuff on the raw audio data, then saving the result
as a new file with the same sample rate, resolution and # of channels as the
original (44.1KHz, 16-bit, stereo in most cases).
I'm writing the app in Objective-C.
Also, how would you go about spliting up the stereo data of an AIFF file
into 2 seperate NSData objects (left and right)? Then how would you
recombine the 2 (after doing some DSP on each) to form a stereo AIFF file
again?
Any help at all would be awesome :)
_________________________________________________________________
Add photos to your messages with MSN 8. Get 2 months FREE*.
http://join.msn.com/?page=features/featuredemail
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.