• 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: questions about Logic AU node properties
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: questions about Logic AU node properties


  • Subject: Re: questions about Logic AU node properties
  • From: "Sophia Poirier [dfx]" <email@hidden>
  • Date: Wed, 14 Nov 2007 21:26:34 -0500

Niko,

Thanks for the explanation of endian-swapping responsibilities with the private properties, that clears up all of my questions.



On Nov 6, 2007, at 9:03 AM, Nikolaus Gerteis wrote:

2) Is there a recommended way to handle a custom AU property that references a local file? If an AU is running on a node and it has a remote UI running on the master, and the UI allows the user to open a file selector dialog choosing a local file on the master machine (like perhaps an audio file to load for sampling or other audio manipulation), then if a reference to that file needs to be passed from UI to the active AU via a custom property.

A solution for this is to put the file reading code into the UI component and transfer the loaded data as a private property. This guarantees that all node instances receive exactly the same data. Additionally it allows the user to use files that are on the master machine only.

But this has two significant shortcomings: 1) it means that I can no longer use the ExtendedAudioFile API to read audio files (since they require an FSRef to start from), and 2) the audio files chosen by the user can be arbitrarily large, so in some cases this could result in unreasonably huge data transfer requirements.


Which leaves me wondering, how would I best pass a file reference? Or is this a lost cause and an example of an AU which simply shouldn't be node-enabled?

Passing file references is difficult, as the file might not be accessible from one of the nodes (see above).


Or if there is a good way to reference the file, what are the issues of network file access for a node machine? Will it even have privileges or access to network files given the way that nodes run?

Most likely not. The user would have to configure this, so you shouldn't make any assumption that a file can be accessed over the network.

Sounds like I ought to just mark the AU as explicitly not node- enabled then.


thanks,
Sophia
_______________________________________________
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: User-land CoreAudio driver and Leopard
  • Next by Date: Using OpenGL to create a custom interface
  • Previous by thread: questions about Logic AU node properties
  • Next by thread: Xcode 2.5 CoreAudio SDK breaks UB AU projects
  • Index(es):
    • Date
    • Thread