# Add .getPreset / .setPreset to AudioUnitClient

**URL:** <https://forum.juce.com/t/add-getpreset-setpreset-to-audiounitclient/61430>\
**Category:** Feature Requests\
**Created:** [May 16, 2024, 1:45am UTC](https://forum.juce.com/t/add-getpreset-setpreset-to-audiounitclient/61430 "2024-05-16T01:45:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![devalias](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/devalias/32/18546_2.png) [@devalias](https://forum.juce.com/u/devalias)\
**Post date:** [May 16, 2024, 1:45am UTC](https://forum.juce.com/t/add-getpreset-setpreset-to-audiounitclient/61430/1 "2024-05-16T01:45:10Z")

</div>

There are dedicated methods for reading/writing VST3 presets, but it would be awesome if we were able to do the same with AudioUnit’s as well.

> [@Loading .vstpresets in VST3 plugins do not load correctly](https://forum.juce.com/t/loading-vstpresets-in-vst3-plugins-do-not-load-correctly/47111/2):
>
> There are now dedicated methods for reading/writing VST3 preset files: To use this, create a derived implementation of ExtensionsVisitor and pass it to AudioPluginInstance::getExtensions. The plugin instance will call visitVST3Client on your extensions instance, and you can then call setPreset on the provided VST3Client argument.

---

<div class="post-metadata">

**Author:** ![devalias](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/devalias/32/18546_2.png) [@devalias](https://forum.juce.com/u/devalias)\
**Post date:** [May 16, 2024, 1:46am UTC](https://forum.juce.com/t/add-getpreset-setpreset-to-audiounitclient/61430/2 "2024-05-16T01:46:08Z")

</div>

Older related thread:

> [@Loading AudioUnit Preset](https://forum.juce.com/t/loading-audiounit-preset/31756):
>
> Hello! I’m sure this is an easy question to answer, but I can’t seem to find the answer in the docs. I want to load an AudioUnit preset into an AudioPluginInstance. I see the methods for loading VST presets with the VSTPluginFormat and VST3PluginFormat classes, but nothing obvious for AudioUnits. How do I do this? Thanks, -ethan

---

<div class="post-metadata">

**Author:** ![devalias](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/devalias/32/18546_2.png) [@devalias](https://forum.juce.com/u/devalias)\
**Post date:** [May 16, 2024, 1:52am UTC](https://forum.juce.com/t/add-getpreset-setpreset-to-audiounitclient/61430/3 "2024-05-16T01:52:04Z")

</div>

Related technical docs:

- [AUAudioUnitPreset | Apple Developer Documentation](https://developer.apple.com/documentation/audiotoolbox/auaudiounitpreset)
  - 

> The `AUAudioUnitPreset` class describes an interface for custom parameter settings provided by the audio unit developer. These presets often produce a useful sound or starting point.

  - 

> For more details on working with Audio Unit presets, see Audio Units - How to correctly save and restore Audio Unit presets. Note that the version 3 fullState property is bridged to the version 2 kAudioUnitProperty\_ClassInfo API. Similarly, the version 3 fullStateForDocument property is bridged to the version 2 kAudioUnitProperty\_ClassInfoFromDocument API.

- [Technical Note TN2157: Audio Units - How to correctly save and restore Audio Unit presets.](https://developer.apple.com/library/archive/technotes/tn2157/_index.html)
