• 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: more AudioFile Questions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: more AudioFile Questions


  • Subject: Re: more AudioFile Questions
  • From: Jens Alfke <email@hidden>
  • Date: Wed, 1 Apr 2009 13:25:23 -0700


On Apr 1, 2009, at 1:13 PM, Ashley Allen wrote:

The AudioFile documentation states that you can read or write a wide variety of audio data to or from a disk or a buffer. I have successfully loaded a sample from a URL using CFURLCreateDataAndPropertiesFromResource which gives me a CFDataRef to the sample. How do I load the buffer into an AudioFile object given that all the AudioFileOpen requires a FSRef object?

Use AudioFileOpenWithCallbacks, which lets you supply your own I/O callbacks. It's then simple to hook it up to functions that return data from your buffer.

—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: 
 >more AudioFile Questions (From: Ashley Allen <email@hidden>)

  • Prev by Date: Re: AudioFileOpenURL
  • Next by Date: Re: track location information
  • Previous by thread: more AudioFile Questions
  • Next by thread: Re: track location information
  • Index(es):
    • Date
    • Thread