mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 14:54:56 +01:00
Use LV2_SUPPORT define instead of HAVE_SLV2.
git-svn-id: svn://localhost/ardour2/branches/3.0@9510 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
8fc47ac2ae
commit
c78528dcea
9 changed files with 27 additions and 25 deletions
|
|
@ -50,7 +50,7 @@
|
||||||
#include "ardour/vst_plugin.h"
|
#include "ardour/vst_plugin.h"
|
||||||
#include "vst_pluginui.h"
|
#include "vst_pluginui.h"
|
||||||
#endif
|
#endif
|
||||||
#ifdef HAVE_SLV2
|
#ifdef LV2_SUPPORT
|
||||||
#include "ardour/lv2_plugin.h"
|
#include "ardour/lv2_plugin.h"
|
||||||
#include "lv2_plugin_ui.h"
|
#include "lv2_plugin_ui.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
@ -317,7 +317,7 @@ PluginUIWindow::app_activated (bool)
|
||||||
bool
|
bool
|
||||||
PluginUIWindow::create_lv2_editor(boost::shared_ptr<PluginInsert> insert)
|
PluginUIWindow::create_lv2_editor(boost::shared_ptr<PluginInsert> insert)
|
||||||
{
|
{
|
||||||
#ifndef HAVE_SLV2
|
#ifndef LV2_SUPPORT
|
||||||
return false;
|
return false;
|
||||||
#else
|
#else
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -41,7 +41,7 @@ class Buffer;
|
||||||
class AudioBuffer;
|
class AudioBuffer;
|
||||||
class MidiBuffer;
|
class MidiBuffer;
|
||||||
class PortSet;
|
class PortSet;
|
||||||
#ifdef HAVE_SLV2
|
#ifdef LV2_SUPPORT
|
||||||
class LV2EventBuffer;
|
class LV2EventBuffer;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
@ -108,7 +108,7 @@ public:
|
||||||
return (const MidiBuffer&)get(DataType::MIDI, i);
|
return (const MidiBuffer&)get(DataType::MIDI, i);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef HAVE_SLV2
|
#ifdef LV2_SUPPORT
|
||||||
/** Get a MIDI buffer translated into an LV2 MIDI buffer for use with plugins.
|
/** Get a MIDI buffer translated into an LV2 MIDI buffer for use with plugins.
|
||||||
* The index here corresponds directly to MIDI buffer numbers (i.e. the index
|
* The index here corresponds directly to MIDI buffer numbers (i.e. the index
|
||||||
* passed to get_midi), translation back and forth will happen as needed */
|
* passed to get_midi), translation back and forth will happen as needed */
|
||||||
|
|
@ -170,7 +170,7 @@ private:
|
||||||
/// Vector of vectors, indexed by DataType
|
/// Vector of vectors, indexed by DataType
|
||||||
std::vector<BufferVec> _buffers;
|
std::vector<BufferVec> _buffers;
|
||||||
|
|
||||||
#ifdef HAVE_SLV2
|
#ifdef LV2_SUPPORT
|
||||||
/// LV2 MIDI buffers (for conversion to/from MIDI buffers)
|
/// LV2 MIDI buffers (for conversion to/from MIDI buffers)
|
||||||
typedef std::vector< std::pair<bool, LV2EventBuffer*> > LV2Buffers;
|
typedef std::vector< std::pair<bool, LV2EventBuffer*> > LV2Buffers;
|
||||||
LV2Buffers _lv2_buffers;
|
LV2Buffers _lv2_buffers;
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,7 @@
|
||||||
#include "ardour/types.h"
|
#include "ardour/types.h"
|
||||||
#include "ardour/plugin.h"
|
#include "ardour/plugin.h"
|
||||||
|
|
||||||
#ifdef HAVE_SLV2
|
#ifdef LV2_SUPPORT
|
||||||
#include "ardour/lv2_plugin.h"
|
#include "ardour/lv2_plugin.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
@ -56,7 +56,7 @@ class PluginManager : public boost::noncopyable {
|
||||||
int add_ladspa_directory (std::string dirpath);
|
int add_ladspa_directory (std::string dirpath);
|
||||||
int add_vst_directory (std::string dirpath);
|
int add_vst_directory (std::string dirpath);
|
||||||
|
|
||||||
#ifdef HAVE_SLV2
|
#ifdef LV2_SUPPORT
|
||||||
LV2World* lv2_world() { return _lv2_world; }
|
LV2World* lv2_world() { return _lv2_world; }
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
@ -107,7 +107,7 @@ class PluginManager : public boost::noncopyable {
|
||||||
ARDOUR::PluginInfoList* _lv2_plugin_info;
|
ARDOUR::PluginInfoList* _lv2_plugin_info;
|
||||||
ARDOUR::PluginInfoList* _au_plugin_info;
|
ARDOUR::PluginInfoList* _au_plugin_info;
|
||||||
|
|
||||||
#ifdef HAVE_SLV2
|
#ifdef LV2_SUPPORT
|
||||||
LV2World* _lv2_world;
|
LV2World* _lv2_world;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,7 @@
|
||||||
#include "ardour/port.h"
|
#include "ardour/port.h"
|
||||||
#include "ardour/port_set.h"
|
#include "ardour/port_set.h"
|
||||||
#include "ardour/audioengine.h"
|
#include "ardour/audioengine.h"
|
||||||
#ifdef HAVE_SLV2
|
#ifdef LV2_SUPPORT
|
||||||
#include "ardour/lv2_plugin.h"
|
#include "ardour/lv2_plugin.h"
|
||||||
#include "ardour/lv2_event_buffer.h"
|
#include "ardour/lv2_event_buffer.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
@ -178,7 +178,7 @@ BufferSet::ensure_buffers(DataType type, size_t num_buffers, size_t buffer_capac
|
||||||
_count.set (type, num_buffers);
|
_count.set (type, num_buffers);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef HAVE_SLV2
|
#ifdef LV2_SUPPORT
|
||||||
// Ensure enough low level MIDI format buffers are available for conversion
|
// Ensure enough low level MIDI format buffers are available for conversion
|
||||||
// in both directions (input & output, out-of-place)
|
// in both directions (input & output, out-of-place)
|
||||||
if (type == DataType::MIDI && _lv2_buffers.size() < _buffers[type].size() * 2 + 1) {
|
if (type == DataType::MIDI && _lv2_buffers.size() < _buffers[type].size() * 2 + 1) {
|
||||||
|
|
@ -240,7 +240,7 @@ BufferSet::get(DataType type, size_t i) const
|
||||||
return *_buffers[type][i];
|
return *_buffers[type][i];
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef HAVE_SLV2
|
#ifdef LV2_SUPPORT
|
||||||
|
|
||||||
LV2EventBuffer&
|
LV2EventBuffer&
|
||||||
BufferSet::get_lv2_midi(bool input, size_t i)
|
BufferSet::get_lv2_midi(bool input, size_t i)
|
||||||
|
|
@ -293,7 +293,7 @@ BufferSet::flush_lv2_midi(bool input, size_t i)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* HAVE_SLV2 */
|
#endif /* LV2_SUPPORT */
|
||||||
|
|
||||||
#ifdef VST_SUPPORT
|
#ifdef VST_SUPPORT
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -49,7 +49,7 @@
|
||||||
#include "ardour/audio_unit.h"
|
#include "ardour/audio_unit.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_SLV2
|
#ifdef LV2_SUPPORT
|
||||||
#include "ardour/lv2_plugin.h"
|
#include "ardour/lv2_plugin.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
@ -127,7 +127,7 @@ ARDOUR::find_plugin(Session& session, string identifier, PluginType type)
|
||||||
plugs = mgr->ladspa_plugin_info();
|
plugs = mgr->ladspa_plugin_info();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
#ifdef HAVE_SLV2
|
#ifdef LV2_SUPPORT
|
||||||
case ARDOUR::LV2:
|
case ARDOUR::LV2:
|
||||||
plugs = mgr->lv2_plugin_info();
|
plugs = mgr->lv2_plugin_info();
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
|
|
@ -37,7 +37,7 @@
|
||||||
#include "ardour/port.h"
|
#include "ardour/port.h"
|
||||||
#include "ardour/route.h"
|
#include "ardour/route.h"
|
||||||
|
|
||||||
#ifdef HAVE_SLV2
|
#ifdef LV2_SUPPORT
|
||||||
#include "ardour/lv2_plugin.h"
|
#include "ardour/lv2_plugin.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
@ -549,7 +549,7 @@ boost::shared_ptr<Plugin>
|
||||||
PluginInsert::plugin_factory (boost::shared_ptr<Plugin> other)
|
PluginInsert::plugin_factory (boost::shared_ptr<Plugin> other)
|
||||||
{
|
{
|
||||||
boost::shared_ptr<LadspaPlugin> lp;
|
boost::shared_ptr<LadspaPlugin> lp;
|
||||||
#ifdef HAVE_SLV2
|
#ifdef LV2_SUPPORT
|
||||||
boost::shared_ptr<LV2Plugin> lv2p;
|
boost::shared_ptr<LV2Plugin> lv2p;
|
||||||
#endif
|
#endif
|
||||||
#ifdef VST_SUPPORT
|
#ifdef VST_SUPPORT
|
||||||
|
|
@ -561,7 +561,7 @@ PluginInsert::plugin_factory (boost::shared_ptr<Plugin> other)
|
||||||
|
|
||||||
if ((lp = boost::dynamic_pointer_cast<LadspaPlugin> (other)) != 0) {
|
if ((lp = boost::dynamic_pointer_cast<LadspaPlugin> (other)) != 0) {
|
||||||
return boost::shared_ptr<Plugin> (new LadspaPlugin (*lp));
|
return boost::shared_ptr<Plugin> (new LadspaPlugin (*lp));
|
||||||
#ifdef HAVE_SLV2
|
#ifdef LV2_SUPPORT
|
||||||
} else if ((lv2p = boost::dynamic_pointer_cast<LV2Plugin> (other)) != 0) {
|
} else if ((lv2p = boost::dynamic_pointer_cast<LV2Plugin> (other)) != 0) {
|
||||||
return boost::shared_ptr<Plugin> (new LV2Plugin (*lv2p));
|
return boost::shared_ptr<Plugin> (new LV2Plugin (*lv2p));
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -48,8 +48,7 @@
|
||||||
#include "ardour/ladspa_plugin.h"
|
#include "ardour/ladspa_plugin.h"
|
||||||
#include "ardour/filesystem_paths.h"
|
#include "ardour/filesystem_paths.h"
|
||||||
|
|
||||||
#ifdef HAVE_SLV2
|
#ifdef LV2_SUPPORT
|
||||||
#include <slv2/slv2.h>
|
|
||||||
#include "ardour/lv2_plugin.h"
|
#include "ardour/lv2_plugin.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
@ -134,7 +133,7 @@ PluginManager::PluginManager ()
|
||||||
ladspa_plugin_whitelist.push_back (2150); // tap pitch shifter
|
ladspa_plugin_whitelist.push_back (2150); // tap pitch shifter
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef HAVE_SLV2
|
#ifdef LV2_SUPPORT
|
||||||
_lv2_world = new LV2World();
|
_lv2_world = new LV2World();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
@ -144,7 +143,7 @@ PluginManager::PluginManager ()
|
||||||
|
|
||||||
PluginManager::~PluginManager()
|
PluginManager::~PluginManager()
|
||||||
{
|
{
|
||||||
#ifdef HAVE_SLV2
|
#ifdef LV2_SUPPORT
|
||||||
delete _lv2_world;
|
delete _lv2_world;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
@ -154,7 +153,7 @@ void
|
||||||
PluginManager::refresh ()
|
PluginManager::refresh ()
|
||||||
{
|
{
|
||||||
ladspa_refresh ();
|
ladspa_refresh ();
|
||||||
#ifdef HAVE_SLV2
|
#ifdef LV2_SUPPORT
|
||||||
lv2_refresh ();
|
lv2_refresh ();
|
||||||
#endif
|
#endif
|
||||||
#ifdef VST_SUPPORT
|
#ifdef VST_SUPPORT
|
||||||
|
|
@ -471,7 +470,7 @@ PluginManager::get_ladspa_category (uint32_t plugin_id)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef HAVE_SLV2
|
#ifdef LV2_SUPPORT
|
||||||
void
|
void
|
||||||
PluginManager::lv2_refresh ()
|
PluginManager::lv2_refresh ()
|
||||||
{
|
{
|
||||||
|
|
@ -768,7 +767,7 @@ PluginManager::ladspa_plugin_info ()
|
||||||
ARDOUR::PluginInfoList&
|
ARDOUR::PluginInfoList&
|
||||||
PluginManager::lv2_plugin_info ()
|
PluginManager::lv2_plugin_info ()
|
||||||
{
|
{
|
||||||
#ifdef HAVE_SLV2
|
#ifdef LV2_SUPPORT
|
||||||
if (!_lv2_plugin_info)
|
if (!_lv2_plugin_info)
|
||||||
lv2_refresh();
|
lv2_refresh();
|
||||||
return *_lv2_plugin_info;
|
return *_lv2_plugin_info;
|
||||||
|
|
|
||||||
|
|
@ -295,6 +295,9 @@ def configure(conf):
|
||||||
if ogg_supported():
|
if ogg_supported():
|
||||||
conf.define ('HAVE_OGG', 1)
|
conf.define ('HAVE_OGG', 1)
|
||||||
|
|
||||||
|
if conf.env['HAVE_SLV2']:
|
||||||
|
conf.define ('LV2_SUPPORT', 1)
|
||||||
|
|
||||||
conf.write_config_header('libardour-config.h')
|
conf.write_config_header('libardour-config.h')
|
||||||
|
|
||||||
# Boost headers
|
# Boost headers
|
||||||
|
|
|
||||||
2
wscript
2
wscript
|
|
@ -533,7 +533,7 @@ def configure(conf):
|
||||||
autowaf.display_msg(conf, 'Freesound', opts.freesound)
|
autowaf.display_msg(conf, 'Freesound', opts.freesound)
|
||||||
if opts.freesound:
|
if opts.freesound:
|
||||||
conf.define('FREESOUND',1)
|
conf.define('FREESOUND',1)
|
||||||
autowaf.display_msg(conf, 'LV2 Support', bool(conf.env['HAVE_SLV2']))
|
autowaf.display_msg(conf, 'LV2 Support', bool(conf.env['LV2_SUPPORT']))
|
||||||
autowaf.display_msg(conf, 'LV2 UI Embedding', bool(conf.env['HAVE_SUIL']))
|
autowaf.display_msg(conf, 'LV2 UI Embedding', bool(conf.env['HAVE_SUIL']))
|
||||||
autowaf.display_msg(conf, 'OGG', bool(conf.env['HAVE_OGG']))
|
autowaf.display_msg(conf, 'OGG', bool(conf.env['HAVE_OGG']))
|
||||||
autowaf.display_msg(conf, 'Rubberband', bool(conf.env['HAVE_RUBBERBAND']))
|
autowaf.display_msg(conf, 'Rubberband', bool(conf.env['HAVE_RUBBERBAND']))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue