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:00:58 -0800
On Feb 13, 2009, at 12:48 PM, Joel Reymont wrote:
I don't think calling sendto from my audio callback is a good idea.
Should I ideally use a CFMessagePort to notify the main thread that
there's data to be sent by registering it as a run loop source?
Any other suggestions?
Use an AudioQueue instead? That way all of your code runs on the main
thread and it's OK to do things like send packets from the callback.
—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