diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2009-10-09 13:48:40 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2009-10-09 13:48:40 +0000 |
commit | 14d12cf4f48aee8f65f6d9639ae376c00af79f85 (patch) | |
tree | c22d559a8abca05bb1648c08a147ddf7d4daab7f /libs/ardour/ardour/audio_unit.h | |
parent | 7a69f3157f4593fdb069e454101cc1769ebe1e9a (diff) |
handle AU Factory presets along with user presets2.8.3
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@5763 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/ardour/audio_unit.h')
-rw-r--r-- | libs/ardour/ardour/audio_unit.h | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/libs/ardour/ardour/audio_unit.h b/libs/ardour/ardour/audio_unit.h index 50c7c5fcbc..ec9c82a663 100644 --- a/libs/ardour/ardour/audio_unit.h +++ b/libs/ardour/ardour/audio_unit.h @@ -33,6 +33,7 @@ #include <ardour/plugin.h> #include <AudioUnit/AudioUnit.h> +#include <AudioUnit/AudioUnitProperties.h> #include <appleutility/AUParamInfo.h> #include <boost/shared_ptr.hpp> @@ -124,10 +125,18 @@ class AUPlugin : public ARDOUR::Plugin std::vector<std::pair<int,int> > io_configs; AudioBufferList* buffers; - /* XXX this should really be shared across all AUPlugin instances */ + /* despite all the cool work that apple did on their AU preset + system, they left factory presets and user presets as two + entirely different kinds of things, handled by two entirely + different parts of the API. Resolve this. + */ - typedef std::map<std::string,std::string> PresetMap; - PresetMap preset_map; + /* XXX these two maps should really be shared across all instances of this AUPlugin */ + + typedef std::map<std::string,std::string> UserPresetMap; + UserPresetMap user_preset_map; + typedef std::map<std::string,int> FactoryPresetMap; + FactoryPresetMap factory_preset_map; UInt32 global_elements; UInt32 output_elements; @@ -148,6 +157,8 @@ class AUPlugin : public ARDOUR::Plugin std::vector<AUParameterDescriptor> descriptors; void init (); + + void discover_factory_presets (); }; typedef boost::shared_ptr<AUPlugin> AUPluginPtr; |