mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 23:05:04 +01:00
Allow to compile w/o LV2 support (trax)
This commit is contained in:
parent
dcb732f07c
commit
5f7ecf59a5
3 changed files with 10 additions and 2 deletions
|
|
@ -3010,8 +3010,11 @@ PluginManager::ladspa_plugin_info ()
|
||||||
const ARDOUR::PluginInfoList&
|
const ARDOUR::PluginInfoList&
|
||||||
PluginManager::lv2_plugin_info ()
|
PluginManager::lv2_plugin_info ()
|
||||||
{
|
{
|
||||||
|
#ifdef LV2_SUPPORT
|
||||||
assert(_lv2_plugin_info);
|
assert(_lv2_plugin_info);
|
||||||
return *_lv2_plugin_info;
|
return *_lv2_plugin_info;
|
||||||
|
#endif
|
||||||
|
return _empty_plugin_info;
|
||||||
}
|
}
|
||||||
|
|
||||||
const ARDOUR::PluginInfoList&
|
const ARDOUR::PluginInfoList&
|
||||||
|
|
|
||||||
|
|
@ -1425,7 +1425,7 @@ Session::vapor_barrier ()
|
||||||
{
|
{
|
||||||
#if !(defined (LV2_EXTENDED) && defined (HAVE_LV2_1_10_0))
|
#if !(defined (LV2_EXTENDED) && defined (HAVE_LV2_1_10_0))
|
||||||
return false;
|
return false;
|
||||||
#endif
|
#else
|
||||||
if (_vapor_available.has_value ()) {
|
if (_vapor_available.has_value ()) {
|
||||||
return _vapor_available.value ();
|
return _vapor_available.value ();
|
||||||
}
|
}
|
||||||
|
|
@ -1458,6 +1458,7 @@ Session::vapor_barrier ()
|
||||||
_vapor_available = ok;
|
_vapor_available = ok;
|
||||||
|
|
||||||
return ok;
|
return ok;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
bool
|
bool
|
||||||
|
|
|
||||||
|
|
@ -750,9 +750,9 @@ SurroundReturn::maybe_send_metadata (size_t id, pframes_t sample, pan_t const v[
|
||||||
if (!changed && !force) {
|
if (!changed && !force) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
#if defined(LV2_EXTENDED) && defined(HAVE_LV2_1_10_0)
|
||||||
URIMap::URIDs const& urids = URIMap::instance ().urids;
|
URIMap::URIDs const& urids = URIMap::instance ().urids;
|
||||||
|
|
||||||
#if defined(LV2_EXTENDED) && defined(HAVE_LV2_1_10_0)
|
|
||||||
LV2_Atom_Forge_Frame frame;
|
LV2_Atom_Forge_Frame frame;
|
||||||
lv2_atom_forge_set_buffer (&_forge, _atom_buf, sizeof (_atom_buf));
|
lv2_atom_forge_set_buffer (&_forge, _atom_buf, sizeof (_atom_buf));
|
||||||
lv2_atom_forge_frame_time (&_forge, 0);
|
lv2_atom_forge_frame_time (&_forge, 0);
|
||||||
|
|
@ -829,6 +829,7 @@ SurroundReturn::set_playback_offset (samplecnt_t cnt)
|
||||||
void
|
void
|
||||||
SurroundReturn::setup_export (std::string const& fn, samplepos_t ss, samplepos_t es)
|
SurroundReturn::setup_export (std::string const& fn, samplepos_t ss, samplepos_t es)
|
||||||
{
|
{
|
||||||
|
#if defined(LV2_EXTENDED) && defined(HAVE_LV2_1_10_0)
|
||||||
URIMap::URIDs const& urids = URIMap::instance ().urids;
|
URIMap::URIDs const& urids = URIMap::instance ().urids;
|
||||||
|
|
||||||
bool have_ref = !_export_reference.empty () && Glib::file_test (_export_reference, Glib::FileTest (Glib::FILE_TEST_EXISTS | Glib::FILE_TEST_IS_REGULAR));
|
bool have_ref = !_export_reference.empty () && Glib::file_test (_export_reference, Glib::FileTest (Glib::FILE_TEST_EXISTS | Glib::FILE_TEST_IS_REGULAR));
|
||||||
|
|
@ -875,13 +876,16 @@ SurroundReturn::setup_export (std::string const& fn, samplepos_t ss, samplepos_t
|
||||||
_export_start = ss - effective_latency ();
|
_export_start = ss - effective_latency ();
|
||||||
_export_end = es - effective_latency ();
|
_export_end = es - effective_latency ();
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
SurroundReturn::finalize_export ()
|
SurroundReturn::finalize_export ()
|
||||||
{
|
{
|
||||||
|
#if defined(LV2_EXTENDED) && defined(HAVE_LV2_1_10_0)
|
||||||
//std::cout << "SurroundReturn::finalize_export\n";
|
//std::cout << "SurroundReturn::finalize_export\n";
|
||||||
_surround_processor->finalize_export ();
|
_surround_processor->finalize_export ();
|
||||||
|
#endif
|
||||||
_exporting = false;
|
_exporting = false;
|
||||||
_export_start = _export_end = 0;
|
_export_start = _export_end = 0;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue