SetProperty/GetProperty
SetProperty/GetProperty
- Subject: SetProperty/GetProperty
- From: "Art Gillespie" <email@hidden>
- Date: Wed, 15 Nov 2006 16:36:05 -0700
In an effort to make sure my Views don't make any assumptions about running in the same address space as their AU, I'm looking to GetProperty/SetProperty to replace direct method calls.
Obviously in testing on current hosts, I can use the void* parameter in either call and treat it as an io param:
...
float32 MyView::SomeMethodProxy(uint32 inParam)
{
struct someMethodParams params;
params.p1 = inParam;
params.retval = NO_VALUE;
s = sizeof(params);
AudioUnitGetProperty(mEditAudioUnit,
kMyProperty_SomeMethodOnTheAU,
kAudioUnitScope_Global,
0,
¶ms,
&s);
return param.retval;
}
...
since all the current hosts do run views in the same address space.
My question is whether we can reasonably expect this behavior to be reproduced by a host marshaling parameters across process/machine boundaries, or whether these void* parameters are intended to be one direction only.
Thanks,
Art
_______________________________________________
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