13
0

Vapor/LV2: API to pass options to exporter

This commit is contained in:
Robin Gareus 2024-02-23 15:51:47 +01:00
parent 0fa8c5add4
commit 22fef5ab2b
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
2 changed files with 4 additions and 3 deletions

View File

@ -94,7 +94,7 @@ class LIBARDOUR_API LV2Plugin : public ARDOUR::Plugin, public ARDOUR::Workee
const void* extension_data (const char* uri) const; const void* extension_data (const char* uri) const;
#ifdef LV2_EXTENDED #ifdef LV2_EXTENDED
int setup_export (const char*); int setup_export (const char*, LV2_Options_Option const* options = NULL);
int finalize_export (); int finalize_export ();
bool can_export () const { return _export_interface; } bool can_export () const { return _export_interface; }
#endif #endif

View File

@ -1216,12 +1216,13 @@ LV2Plugin::midnam_model () {
} }
int int
LV2Plugin::setup_export (const char* fn) LV2Plugin::setup_export (const char* fn, LV2_Options_Option const* options)
{ {
if (!_export_interface) { if (!_export_interface) {
return -1; return -1;
} }
return _export_interface->setup ((void*)_impl->instance->lv2_handle, fn, NULL);
return _export_interface->setup ((void*)_impl->instance->lv2_handle, fn, options);
} }
int int