• 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
Remote IO thread and concurrency
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Remote IO thread and concurrency


  • Subject: Remote IO thread and concurrency
  • From: James Navarro <email@hidden>
  • Date: Wed, 07 Oct 2015 14:44:07 -0700

Hello everyone.

Ok I'm going to simplify this as much as possible. I have an app where I am producing audio via a Remote IO callback method. This method needs to play float samples, by copying them from a buffer.

The problem is, that buffer needs to be released by the user sometimes. I cannot find a safe way to do this without:

A) Using locks/mutexes (bleh)
B) Doing audio processing on a GCD queue (bleh)
C) "Signal" to the remote io thread that this buffer needs to be released, and let that thread do the work.

These all seem to be not great solutions. I'm sure that A and C would actually work out Ok, because these buffers would only need to be released sometimes, and if the audio slows down... it's not a tragedy.

But I really don't want to do that, and wondered what people on this list would recommend.

Thank you!


 _______________________________________________
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: Remote IO thread and concurrency
      • From: Ross Bencina <email@hidden>
    • Re: Remote IO thread and concurrency
      • From: Kyle Sluder <email@hidden>
    • Re: Remote IO thread and concurrency
      • From: Dave Fernandes <email@hidden>
  • Prev by Date: Re: MusicPlayer in iOS9
  • Next by Date: Re: Remote IO thread and concurrency
  • Previous by thread: Question regarding MIDIPackets scheduling
  • Next by thread: Re: Remote IO thread and concurrency
  • Index(es):
    • Date
    • Thread