diff options
author | Robin Gareus <robin@gareus.org> | 2016-11-13 16:31:15 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2016-11-13 16:35:06 +0100 |
commit | 8b93fb02f38148c25c91ed41a4f12735be38dbf0 (patch) | |
tree | 3c10f8bc025cc8ec5489bd289b5eb27c9c6e5079 /libs/ardour/ardour/mac_vst_plugin.h | |
parent | 43bd7f5db18e2bf4c7de0bcf7f614399576712ab (diff) |
Mac VST-2.x support
Diffstat (limited to 'libs/ardour/ardour/mac_vst_plugin.h')
-rw-r--r-- | libs/ardour/ardour/mac_vst_plugin.h | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/libs/ardour/ardour/mac_vst_plugin.h b/libs/ardour/ardour/mac_vst_plugin.h new file mode 100644 index 0000000000..e5afab5e30 --- /dev/null +++ b/libs/ardour/ardour/mac_vst_plugin.h @@ -0,0 +1,55 @@ +/* + * Copyright (C) 2016 Robin Gareus <robin@gareus.org> + * Copyright (C) 2004 Paul Davis + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software Foundation, + * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + */ + +#ifndef __ardour_mac_vst_plugin_h__ +#define __ardour_mac_vst_plugin_h__ + +#include "ardour/vst_plugin.h" + +struct LIBARDOUR_API _VSTHandle; +typedef struct _VSTHandle VSTHandle; + +namespace ARDOUR { + +class AudioEngine; +class Session; + +class LIBARDOUR_API MacVSTPlugin : public VSTPlugin +{ +public: + MacVSTPlugin (AudioEngine &, Session &, VSTHandle *, int unique_id); + MacVSTPlugin (const MacVSTPlugin &); + ~MacVSTPlugin (); + + std::string state_node_name () const { return "mac-vst"; } +}; + +class LIBARDOUR_API MacVSTPluginInfo : public PluginInfo +{ +public: + MacVSTPluginInfo (); + ~MacVSTPluginInfo () {} + + PluginPtr load (Session& session); + std::vector<Plugin::PresetRecord> get_presets (bool user_only) const; +}; + +} // namespace ARDOUR + +#endif /* __ardour_mac_vst_plugin_h__ */ |