Re: How to read a wav in iPhone
Re: How to read a wav in iPhone
- Subject: Re: How to read a wav in iPhone
- From: Jens Alfke <email@hidden>
- Date: Mon, 23 Feb 2009 19:07:02 -0800
On Feb 23, 2009, at 6:16 PM, Gabriele Palmas wrote:
i'm trying to do the following with an iPhone: Wav file->Mixer-
>Output Obviously Mixer and Output are AU. The default AU that reads
file (type generator) is not available on iPhone. So the only option
remain is to use and InputCallBack for the mixer node. Here starts
my trouble: I have to write this function that feeds the mixer when
it needs packets.
You can use the CAAudioFileStreamer class from the PublicUtility
package in the CA SDK. It will copy the file contents into buffers on
a secondary thread, and let your AU callback read the buffers and send
them to CA. That's how I implemented my file playback code.
—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