• 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: Is there something wrong here (AU Properties)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is there something wrong here (AU Properties)


  • Subject: Re: Is there something wrong here (AU Properties)
  • From: Ian Kemmish <email@hidden>
  • Date: Sat, 29 Oct 2011 07:44:53 +0100


On 26 Oct 2011, at 11:09 Stephen Blinkhorn <email@hidden> wrote:


In the code below I'm passing a pointer to a C struct from the GUI to
the AU. The AU uses the pointer to fill in struct data in a
GetProperty() call. Does this approach break the AU/view separation
concept where the view could feasibly be running on a different
machine? Seems like it must do. Any suggestions on the best alternative?


No, you're all right (or should be). As far as everything except your code is concerned, the structure is just a string of bytes. As long as you're not putting the wrong numbers in outDataSize, Apple's code has everything it needs to deliver the string of bytes from one end of the universe to the other.

Just make sure that you keep proper track of whether the AU or the view "owns" all your structures, in terms of allocating and freeing memory.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Ian Kemmish 18 Durham Close, Biggleswade, Beds SG18 8HZ
email@hidden Tel: +44 1767 601361 Mob: +44 7952 854387
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



_______________________________________________ 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
  • Prev by Date: Re: how to get number of frames ahead of render process?
  • Next by Date: Re: kAudioSessionProperty_InputGainScalar default value?
  • Previous by thread: Re: Is there something wrong here (AU Properties)
  • Next by thread: Please Ignore: This is only a test
  • Index(es):
    • Date
    • Thread