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

InputCallbacks and buffer size


  • Subject: InputCallbacks and buffer size
  • From: Hari Seldon <email@hidden>
  • Date: Fri, 18 Aug 2006 13:20:36 -0400



I have an inputCallback registered on an AUConverter and I find that it's polling for data too often (or it feels that way). Each time it asks for 2k of memory (i think it's 512 frames * 4 bytes per frame) but I'd rather have it take more data in each call. Most of the time I have at least 300ms of data available, and wonder if there's a way to force more data to be passed?

Also, currently I copy data (interleaved signed int data) into the buffer provided to the inputcallback; is this the best approach? What alternatives are there? I thought the only alternative is to pass in pointers to buffers, but then I have to determine when those have been played and can be freed, and I'd most likely still have to do a memcopy to get the data into those buffers.

Any thoughts on the fastest (least cpu intensive) approach to getting data into my AUConverter?

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: William Stewart <email@hidden>
  • Prev by Date: Need help deciding what kind of driver is most appropriate
  • Next by Date: Creating an AudioConverter with kAudioFormatFlagIsNonInterleaved
  • Previous by thread: Re: Need help deciding what kind of driver is most appropriate
  • Next by thread: Re: InputCallbacks and buffer size
  • Index(es):
    • Date
    • Thread