• 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
ExtAudioFileRead: how to create AudioBufferList
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ExtAudioFileRead: how to create AudioBufferList


  • Subject: ExtAudioFileRead: how to create AudioBufferList
  • From: maximilian marcoll <email@hidden>
  • Date: Sat, 18 Nov 2006 14:34:52 +0100

hi!

i don't understand how i should do this:

ExtAudioFileRead needs an AudioBufferList for storing data in.
but i just can't figure out how to create an appropiate buffer list.
i can't allocate memory for the mBuffers field of the buffer list,
because mBuffers actually is no pointer.
if i don't allocate, it doesn't work either
(of course it doesn't  - there is no memory for ExtrAudioFile to write to.)

the only way i got it to read the file was using the first AudioBuffer in the
bufferlist (which seems to be allocated by default), and set the mData pointer
to a part of memory big enough to hold the entire file.
then i could read the file at once, but i would actually prefer to read the data in sequential steps.
is there an AudioBufferList - initialiser or something i have overlooked?

thank you so much!

max
_____________________________________________

m a x i m i l i a n   m a r c o l l
http://www.maximilianmarcoll.de

d i s . p l a y c e
http://dis.playce.info




 _______________________________________________
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

  • Follow-Ups:
    • Re: ExtAudioFileRead: how to create AudioBufferList
      • From: David Duncan <email@hidden>
  • Prev by Date: Sending sound across the Network
  • Next by Date: Re: ExtAudioFileRead: how to create AudioBufferList
  • Previous by thread: Sending sound across the Network
  • Next by thread: Re: ExtAudioFileRead: how to create AudioBufferList
  • Index(es):
    • Date
    • Thread