• 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
SetProperty/GetProperty
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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,
      &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:

This email sent to email@hidden

  • Follow-Ups:
    • Re: SetProperty/GetProperty
      • From: William Stewart <email@hidden>
  • Prev by Date: Re: Execption using JDIC Misc (v0.1.3) Volume on MacOSX
  • Next by Date: Re: Mixing arbitrary numbers of sounds out an AUHAL unit (was: MOTU devices on Intel machines)
  • Previous by thread: Re: Execption using JDIC Misc (v0.1.3) Volume on MacOSX
  • Next by thread: Re: SetProperty/GetProperty
  • Index(es):
    • Date
    • Thread