Re: CFMessagePort, audio sampling and sending UDP packets
Re: CFMessagePort, audio sampling and sending UDP packets
- Subject: Re: CFMessagePort, audio sampling and sending UDP packets
- From: Jens Alfke <email@hidden>
- Date: Fri, 13 Feb 2009 14:36:24 -0800
On Feb 13, 2009, at 2:15 PM, Joel Reymont wrote:
Latency too high.
Oh right, not good for real-time talk.
Then I would just use a thread-safe queue. Have your audio thread push
buffers into it, and another thread pull them out the other end,
package them into packets, and send them off.
There's a CAAtomicFIFO class in the CA PublicSDK. Just read the
comments carefully, because it's sort of misnamed, and the basic usage
is actually a stack, not a queue. But there is a method to pull all
the items out in order, which will do what you want.
—Jens _______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden