• 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: scheduling a block from a render callback
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: scheduling a block from a render callback


  • Subject: Re: scheduling a block from a render callback
  • From: Paul Davis <email@hidden>
  • Date: Tue, 14 Jan 2014 21:57:02 -0500




On Tue, Jan 14, 2014 at 1:01 PM, Kyle Sluder <email@hidden> wrote:
On Jan 14, 2014, at 8:27 AM, Paul Davis <email@hidden>
wrote:
>
> The problem is lack of knowledge about how to use the API(s) that exist already, combined with programmer reluctance to use NonCamelCase APIs, combined with Apple reluctance (Doug notably excluded) to recommend using NonCamelCase APIs.

I daresay you, developer of a cross-platform audio routing library and a
DAW built atop of it, are far more familiar and comfortable with POSIX
synchronization APIs than the typical programmer using Audio Units. ;-)

You do have a point there (though just as a technical aside, as of a couple months ago, Ardour is no longer dependent on JACK and you will see "native" audio backends appear).
 
The sad reality about multithreading in C is that the wrong thing often
works (or seems to work) and is far easier than doing the right thing.
Why do you think we have so many people trying to call ObjC methods or
allocate memory within their render callbacks?

Because not enough people link to Ross Bencina's article ? :)
 
As for the rest, you're right there too. And to be honest, we implemented such a system inside ardour too, via a templated class called AbstractUI which can have functors invoked within *its* own event loop from any RT thread (or any other thread). So I think your idea is actually a very good one.


 _______________________________________________
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

References: 
 >scheduling a block from a render callback (From: Lucas Ives <email@hidden>)
 >RE: scheduling a block from a render callback (From: Tim Dorcey <email@hidden>)
 >Re: scheduling a block from a render callback (From: Paul Davis <email@hidden>)
 >RE: scheduling a block from a render callback (From: Tim Dorcey <email@hidden>)
 >Re: scheduling a block from a render callback (From: Doug Wyatt <email@hidden>)
 >Re: scheduling a block from a render callback (From: Paul Davis <email@hidden>)
 >Re: scheduling a block from a render callback (From: Kyle Sluder <email@hidden>)
 >Re: scheduling a block from a render callback (From: Paul Davis <email@hidden>)
 >Re: scheduling a block from a render callback (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: scheduling a block from a render callback
  • Next by Date: Re: scheduling a block from a render callback
  • Previous by thread: Re: scheduling a block from a render callback
  • Next by thread: Re: scheduling a block from a render callback
  • Index(es):
    • Date
    • Thread