• 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: InputCallbacks and buffer size
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: InputCallbacks and buffer size


  • Subject: Re: InputCallbacks and buffer size
  • From: Hari Seldon <email@hidden>
  • Date: Tue, 29 Aug 2006 20:46:33 -0400

Quoting William Stewart <email@hidden>:


On 18/08/2006, at 10:20 AM, Hari Seldon wrote:

Also, currently I copy data (interleaved signed int data) into the buffer provided to the inputcallback; is this the best approach?

You can reset the data pointers provided to you in the ABL - you then have to keep those pointers valid until the next time the AU calls you for data - that is the only clear time that you know that the AU is finished processing your input.


How do you mean? I can setup the input callback to read the data from a buffer that I own, just by passing it pointers to the buffer? How is this done, as I haven't seen an example of it. I would be interested in something like this as I'd prefer not to slow the system down with another memcpy, if I already have the data awaiting playback in a circular buffer.


Thanks
_______________________________________________
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: InputCallbacks and buffer size
      • From: Hari Seldon <email@hidden>
References: 
 >InputCallbacks and buffer size (From: Hari Seldon <email@hidden>)
 >Re: InputCallbacks and buffer size (From: William Stewart <email@hidden>)

  • Prev by Date: Re: Total Newbie Needs Help!!!
  • Next by Date: Flush existing sound data?
  • Previous by thread: Re: InputCallbacks and buffer size
  • Next by thread: Re: InputCallbacks and buffer size
  • Index(es):
    • Date
    • Thread