• 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: AIFF to AudioBuffer?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AIFF to AudioBuffer?


  • Subject: Re: AIFF to AudioBuffer?
  • From: David Duncan <email@hidden>
  • Date: Sun, 30 Jul 2006 09:20:12 -0400

On Jul 30, 2006, at 01:09 AM, Paul Fredlein wrote:

I have the contents of an aiff file read into an NSData object, how do I convert/copy it to an AudioBuffer? (For various reasons I have to read the file into an NSData object - no choice.)

Do you mean that you block copy the entire file into an NSData object, or that you parse it and read the audio data into one? If you mean the latter, then you can use an AudioConverter to convert the audio and you'll get an AudioBufferList along the way (which contains AudioBuffers).


Either way, creating AudioBuffers of data is fairly trivial on it's own, just malloc() the memory for it and fill it in (typically you do this as part of allocating an AudioBufferList).
--
Reality is what, when you stop believing in it, doesn't go away.
Failure is not an option. It is a privilege reserved for those who try.


David Duncan

_______________________________________________
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: 
 >AIFF to AudioBuffer? (From: Paul Fredlein <email@hidden>)

  • Prev by Date: AIFF to AudioBuffer?
  • Next by Date: New Member
  • Previous by thread: AIFF to AudioBuffer?
  • Next by thread: New Member
  • Index(es):
    • Date
    • Thread