Re: Simple Audio Player
Re: Simple Audio Player
- Subject: Re: Simple Audio Player
- From: Jens Alfke <email@hidden>
- Date: Mon, 9 Feb 2009 17:19:33 -0800
On Feb 9, 2009, at 4:54 PM, Gabriele Palmas wrote:
I'm a beginner working with CoreAudio and iPhone and I would like to
make a very easy coreAudio chain in an iPhone app.
"Easy" and "CoreAudio" can't be used in the same sentence. :P
CoreAudio is very powerful, very complex, and under-documented. Be
prepared for a steep learning curve, APIs with millions of tiny little
pieces, and puzzling things out from sample code rather than reading
high-level documentation.
I'm stuck at the very beginning of the process: open the audio files
and make my audio buffers.
/Developer/Examples/CoreAudio is where all the good stuff is. Look at
SimpleSDK/PlayFile, which creates a simple AUGraph to play audio from
a file. (However, I'm unsure of whether all this stuff, like AUGraph,
is available on iPhone...)
For just reading samples from arbitrary audio files, the API you want
is <AudioToolbox/ExtAudioFile.h>. There are several examples that show
how to use it, such as ConvertFile.
—Jens
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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