Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SetProperty/GetProperty



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,
      &params,
      &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:
http://lists.apple.com/mailman/options/coreaudio-api/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.