• 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: CFMessagePort, audio sampling and sending UDP packets
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: CFMessagePort, audio sampling and sending UDP packets
      • From: Joel Reymont <email@hidden>
References: 
 >CFMessagePort, audio sampling and sending UDP packets (From: Joel Reymont <email@hidden>)

  • Prev by Date: CFMessagePort, audio sampling and sending UDP packets
  • Next by Date: Re: CFMessagePort, audio sampling and sending UDP packets
  • Previous by thread: CFMessagePort, audio sampling and sending UDP packets
  • Next by thread: Re: CFMessagePort, audio sampling and sending UDP packets
  • Index(es):
    • Date
    • Thread