Re: Sharing data between UI and AU
Re: Sharing data between UI and AU
- Subject: Re: Sharing data between UI and AU
- From: Kyle Sluder <email@hidden>
- Date: Wed, 23 Feb 2011 09:43:39 -0800
On Wed, Feb 23, 2011 at 8:16 AM, Muon Software Ltd - Dave
<email@hidden> wrote:
>> What would be easiest would be to be able to simply pass pointers to memory between the two parts, but that's not feasible when the two parts run in separate spaces.
>
> Actually passing pointers via a property works in pretty much everything I can think of, except possibly Logic Node for obvious reasons. In fact, I can't actually think of a good reason *not* to do this, unless you desperately want to enter a whole world of pain just to support Logic Node to the fullest extent possible.
I imagine this won't work if the host and the plugin are different
architectures (32-bit vs 64-bit).
Passing raw pointers around is bad form and should always be avoided
even if it seems to "just work." Why not use a shared memory area? man
shmctl(2)
Obviously, this will not work if the host and AU are not on the same machine.
On Wed, Feb 23, 2011 at 8:45 AM, Ian Kemmish <email@hidden> wrote:
> On a modern computer, several Mb of data is no more burdensome than a few tens of Kb used to be for us old-timers. It's not like you're actually having to copy it by hand, after all.
Except that in today's world of SMP machines, there's a pretty good
chance the AU and host aren't running on the same CPU. So you're
likely to force all the CPUs to a halt to maintain cache coherency.
--Kyle Sluder
_______________________________________________
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