Skip to content

Commit 3e5bf7f

Browse files
committed
Publish Lv2Plugin as a library.
1 parent fa581d5 commit 3e5bf7f

File tree

5 files changed

+15
-7
lines changed

5 files changed

+15
-7
lines changed

src/download_test_plugin/RecordPluginUi.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@
2323
using namespace lv2c::ui;
2424
using namespace lv2c;
2525
using namespace record_plugin;
26-
class RecordPluginUi: public Lv2UI {
26+
class RecordPluginMonoUi: public Lv2UI {
2727
public:
2828
using super=Lv2UI;
29-
RecordPluginUi();
29+
RecordPluginMonoUi();
3030
};
3131

3232

3333

34-
RecordPluginUi::RecordPluginUi() : super(
34+
RecordPluginMonoUi::RecordPluginMonoUi() : super(
3535
RecordPluginUiInfo::Create(),
3636
Lv2cSize(490,360) // default window size.
3737
)
@@ -43,7 +43,7 @@ RecordPluginUi::RecordPluginUi() : super(
4343

4444
// Refereence this variable to get the linker to demand-link the entire .obj.
4545

46-
static REGISTRATION_DECLARATION Lv2UIRegistration<RecordPluginUi> registration { RecordPluginUiInfo::UI_URI};
46+
static REGISTRATION_DECLARATION Lv2UIRegistration<RecordPluginMonoUi> registration { RecordPluginUiInfo::UI_URI};
4747

4848

4949

src/generate_lv2c_plugin_info/ClassFileWriter.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,8 @@ void ClassFileWriter::Write(const Lv2PortInfo &port)
394394
WRITE_PORT_PROPERTY(port, range_steps)
395395
WRITE_PORT_PROPERTY(port, trigger)
396396
WRITE_PORT_PROPERTY(port, integer_property)
397+
WRITE_PORT_PROPERTY(port, mod_momentaryOffByDefault)
398+
WRITE_PORT_PROPERTY(port, mod_momentaryOnByDefault)
397399
WRITE_PORT_PROPERTY(port, enumeration_property)
398400
WRITE_PORT_PROPERTY(port, toggled_property)
399401
WRITE_PORT_PROPERTY(port, not_on_gui)

src/lv2_plugin/Lv2Plugin.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -595,7 +595,7 @@ const std::string&PluginRegistrationBase::getPluginuri() const
595595
}
596596

597597

598-
LV2_Handle
598+
LV2_Handle
599599
Lv2Plugin::instantiate(const LV2_Descriptor *descriptor,
600600
double rate,
601601
const char *bundle_path,
@@ -653,6 +653,7 @@ LV2_Descriptor **Lv2Plugin::GetLv2GetDescriptors()
653653
return &(gDescriptors[0]);
654654
}
655655

656+
656657
// The LV2 Entry point!
657658
extern "C" {
658659
LV2_SYMBOL_EXPORT

src/lv2_plugin/include/lv2_plugin/Lv2Ports.hpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ namespace lv2c::lv2_plugin
102102
bool lastValue = false;
103103
public:
104104
void SetData(void *data) {
105-
this->pData = (const float*)pData;
105+
this->pData = (const float*)data;
106106
this->lastValue = false;
107107
}
108108

@@ -114,7 +114,7 @@ namespace lv2c::lv2_plugin
114114
return result;
115115
}
116116

117-
bool Get() {
117+
bool GetValue() {
118118
bool newValue = (*pData != 0);
119119
lastValue = newValue;
120120
return newValue;

src/lv2c_ui/include/lv2c_ui/Lv2PluginInfo.hpp

+5
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,9 @@ namespace lv2c::ui {
208208
int range_steps_ = 0;
209209
bool trigger_ = false;
210210
bool integer_property_ = false;
211+
bool mod_momentaryOffByDefault_ = false;
212+
bool mod_momentaryOnByDefault_ = false;
213+
211214
bool enumeration_property_ = false;
212215
bool toggled_property_ = false;
213216
bool not_on_gui_ = false;
@@ -296,6 +299,8 @@ namespace lv2c::ui {
296299
LV2_PROPERTY_GETSET_SCALAR(range_steps)
297300
LV2_PROPERTY_GETSET_SCALAR(trigger)
298301
LV2_PROPERTY_GETSET_SCALAR(integer_property)
302+
LV2_PROPERTY_GETSET_SCALAR(mod_momentaryOffByDefault)
303+
LV2_PROPERTY_GETSET_SCALAR(mod_momentaryOnByDefault)
299304
LV2_PROPERTY_GETSET_SCALAR(enumeration_property)
300305
LV2_PROPERTY_GETSET_SCALAR(toggled_property)
301306
LV2_PROPERTY_GETSET_SCALAR(not_on_gui)

0 commit comments

Comments
 (0)