diff options
-rw-r--r-- | plugins/eg-sampler.lv2/sampler_ui.c | 5 | ||||
-rw-r--r-- | plugins/eg-scope.lv2/examploscope_ui.c | 8 |
2 files changed, 13 insertions, 0 deletions
diff --git a/plugins/eg-sampler.lv2/sampler_ui.c b/plugins/eg-sampler.lv2/sampler_ui.c index 8dddd4c..3070828 100644 --- a/plugins/eg-sampler.lv2/sampler_ui.c +++ b/plugins/eg-sampler.lv2/sampler_ui.c @@ -89,6 +89,8 @@ on_file_set(GtkFileChooserButton* widget, void* handle) LV2_Atom* msg = (LV2_Atom*)write_set_file(&ui->forge, &ui->uris, filename, strlen(filename)); + assert(msg); + ui->write(ui->controller, 0, lv2_atom_total_size(msg), ui->uris.atom_eventTransfer, msg); @@ -310,6 +312,9 @@ instantiate(const LV2UI_Descriptor* descriptor, LV2_Atom_Forge_Frame frame; LV2_Atom* msg = (LV2_Atom*)lv2_atom_forge_object( &ui->forge, &frame, 0, ui->uris.patch_Get); + + assert(msg); + lv2_atom_forge_pop(&ui->forge, &frame); ui->write(ui->controller, 0, lv2_atom_total_size(msg), diff --git a/plugins/eg-scope.lv2/examploscope_ui.c b/plugins/eg-scope.lv2/examploscope_ui.c index 48ffec4..32584a4 100644 --- a/plugins/eg-scope.lv2/examploscope_ui.c +++ b/plugins/eg-scope.lv2/examploscope_ui.c @@ -105,6 +105,8 @@ send_ui_state(LV2UI_Handle handle) LV2_Atom* msg = (LV2_Atom*)lv2_atom_forge_object( &ui->forge, &frame, 0, ui->uris.ui_State); + assert(msg); + // msg[samples-per-pixel] = integer lv2_atom_forge_key(&ui->forge, ui->uris.ui_spp); lv2_atom_forge_int(&ui->forge, ui->stride); @@ -137,6 +139,9 @@ send_ui_disable(LV2UI_Handle handle) LV2_Atom_Forge_Frame frame; LV2_Atom* msg = (LV2_Atom*)lv2_atom_forge_object( &ui->forge, &frame, 0, ui->uris.ui_Off); + + assert(msg); + lv2_atom_forge_pop(&ui->forge, &frame); ui->write(ui->controller, 0, @@ -161,6 +166,9 @@ send_ui_enable(LV2UI_Handle handle) LV2_Atom_Forge_Frame frame; LV2_Atom* msg = (LV2_Atom*)lv2_atom_forge_object( &ui->forge, &frame, 0, ui->uris.ui_On); + + assert(msg); + lv2_atom_forge_pop(&ui->forge, &frame); ui->write(ui->controller, 0, |