Mailing Lists: Apple Mailing Lists

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

Re: audiounit persistent property (how?)



In addition to what was said below, in the particular case of file references I'd recommend to use the AU file reference format associated with kAUPresetExternalFileRefs.
This system will allow hosts to manage the assets associated with the particular AU setting in the same way it manages the audio files contained in projects, allowing for content-complete project backups etc.
See Tiger's /Developer/Examples/CoreAudio/Documentation/AudioUnits/ AUPresetsAndFileReferences.rtf for more information.


Best,
Stefan


Am 18.12.2007 um 08:43 schrieb Daniel Oberhoff:

Ah, cool, that's easy :).

Daniel

Am 18.12.2007 um 02:49 schrieb William Stewart:

You overide the AUBase Get and Restore State calls, and just add an entry into the dictionary (and retrieve it)... Something like:

SaveState
	- add a path key where the value is a file path

RestoreState
	- retrieve the path key value - and that is your file

Bill

On Dec 17, 2007, at 1:46 PM, Daniel Oberhoff wrote:

Hi,

Can someone tell me, how I can make a property of an AudioUnit persistent, i.e. saved along the parameter settings and also in presets? To give the background: I am making a simple little sampler to play my old amiga samples, and I want to save the path of the audio file.

thx

Daniel




------------------------------------ Stefan Gretscher plug-in development & 3rd party developer support

phone: (+49)-4101-495-586 (Central European Time)
AU developer support: email@hidden
TDM developer support: email@hidden

Apple GmbH
Geschäftsführung: Georges Guyon de Chemilly
Sitz der Gesellschaft: München
Amtsgericht München, HRB 66158



_______________________________________________
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.