• 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: How to read a wav in iPhone
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >How to read a wav in iPhone (From: Gabriele Palmas <email@hidden>)

  • Prev by Date: Re: how to unregister interuptListener registered in AudioSessionInitialize() on iPhone
  • Next by Date: Re: how to unregister interuptListener registered in AudioSessionInitialize() on iPhone
  • Previous by thread: How to read a wav in iPhone
  • Next by thread: how to unregister interuptListener registered in AudioSessionInitialize() on iPhone
  • Index(es):
    • Date
    • Thread