Re: more AudioFile Questions
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