InputCallbacks and buffer size
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