Commit 3e5bf7f 1 parent fa581d5 commit 3e5bf7f Copy full SHA for 3e5bf7f
File tree 5 files changed +15
-7
lines changed
generate_lv2c_plugin_info
5 files changed +15
-7
lines changed Original file line number Diff line number Diff line change 23
23
using namespace lv2c ::ui;
24
24
using namespace lv2c ;
25
25
using namespace record_plugin ;
26
- class RecordPluginUi : public Lv2UI {
26
+ class RecordPluginMonoUi : public Lv2UI {
27
27
public:
28
28
using super=Lv2UI;
29
- RecordPluginUi ();
29
+ RecordPluginMonoUi ();
30
30
};
31
31
32
32
33
33
34
- RecordPluginUi::RecordPluginUi () : super(
34
+ RecordPluginMonoUi::RecordPluginMonoUi () : super(
35
35
RecordPluginUiInfo::Create (),
36
36
Lv2cSize(490 ,360 ) // default window size.
37
37
)
@@ -43,7 +43,7 @@ RecordPluginUi::RecordPluginUi() : super(
43
43
44
44
// Refereence this variable to get the linker to demand-link the entire .obj.
45
45
46
- static REGISTRATION_DECLARATION Lv2UIRegistration<RecordPluginUi > registration { RecordPluginUiInfo::UI_URI};
46
+ static REGISTRATION_DECLARATION Lv2UIRegistration<RecordPluginMonoUi > registration { RecordPluginUiInfo::UI_URI};
47
47
48
48
49
49
Original file line number Diff line number Diff line change @@ -394,6 +394,8 @@ void ClassFileWriter::Write(const Lv2PortInfo &port)
394
394
WRITE_PORT_PROPERTY (port, range_steps)
395
395
WRITE_PORT_PROPERTY (port, trigger)
396
396
WRITE_PORT_PROPERTY (port, integer_property)
397
+ WRITE_PORT_PROPERTY (port, mod_momentaryOffByDefault)
398
+ WRITE_PORT_PROPERTY (port, mod_momentaryOnByDefault)
397
399
WRITE_PORT_PROPERTY (port, enumeration_property)
398
400
WRITE_PORT_PROPERTY (port, toggled_property)
399
401
WRITE_PORT_PROPERTY (port, not_on_gui)
Original file line number Diff line number Diff line change @@ -595,7 +595,7 @@ const std::string&PluginRegistrationBase::getPluginuri() const
595
595
}
596
596
597
597
598
- LV2_Handle
598
+ LV2_Handle
599
599
Lv2Plugin::instantiate (const LV2_Descriptor *descriptor,
600
600
double rate,
601
601
const char *bundle_path,
@@ -653,6 +653,7 @@ LV2_Descriptor **Lv2Plugin::GetLv2GetDescriptors()
653
653
return &(gDescriptors [0 ]);
654
654
}
655
655
656
+
656
657
// The LV2 Entry point!
657
658
extern " C" {
658
659
LV2_SYMBOL_EXPORT
Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ namespace lv2c::lv2_plugin
102
102
bool lastValue = false ;
103
103
public:
104
104
void SetData (void *data) {
105
- this ->pData = (const float *)pData ;
105
+ this ->pData = (const float *)data ;
106
106
this ->lastValue = false ;
107
107
}
108
108
@@ -114,7 +114,7 @@ namespace lv2c::lv2_plugin
114
114
return result;
115
115
}
116
116
117
- bool Get () {
117
+ bool GetValue () {
118
118
bool newValue = (*pData != 0 );
119
119
lastValue = newValue;
120
120
return newValue;
Original file line number Diff line number Diff line change @@ -208,6 +208,9 @@ namespace lv2c::ui {
208
208
int range_steps_ = 0 ;
209
209
bool trigger_ = false ;
210
210
bool integer_property_ = false ;
211
+ bool mod_momentaryOffByDefault_ = false ;
212
+ bool mod_momentaryOnByDefault_ = false ;
213
+
211
214
bool enumeration_property_ = false ;
212
215
bool toggled_property_ = false ;
213
216
bool not_on_gui_ = false ;
@@ -296,6 +299,8 @@ namespace lv2c::ui {
296
299
LV2_PROPERTY_GETSET_SCALAR (range_steps)
297
300
LV2_PROPERTY_GETSET_SCALAR (trigger)
298
301
LV2_PROPERTY_GETSET_SCALAR (integer_property)
302
+ LV2_PROPERTY_GETSET_SCALAR (mod_momentaryOffByDefault)
303
+ LV2_PROPERTY_GETSET_SCALAR (mod_momentaryOnByDefault)
299
304
LV2_PROPERTY_GETSET_SCALAR (enumeration_property)
300
305
LV2_PROPERTY_GETSET_SCALAR (toggled_property)
301
306
LV2_PROPERTY_GETSET_SCALAR (not_on_gui)
You can’t perform that action at this time.
0 commit comments