From 7fb5846d75854feaaf364e364b84fa85772532af Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 22 May 2020 15:18:13 +0200 Subject: eg-sampler: Fix size of note-on atom sent from UI --- plugins/eg-sampler.lv2/sampler_ui.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins') diff --git a/plugins/eg-sampler.lv2/sampler_ui.c b/plugins/eg-sampler.lv2/sampler_ui.c index b5e40db..13a8cd4 100644 --- a/plugins/eg-sampler.lv2/sampler_ui.c +++ b/plugins/eg-sampler.lv2/sampler_ui.c @@ -120,7 +120,7 @@ on_play_clicked(GtkFileChooserButton* widget, void* handle) note_on.msg[0] = LV2_MIDI_MSG_NOTE_ON; note_on.msg[1] = 60; note_on.msg[2] = 60; - ui->write(ui->controller, 0, sizeof(note_on), + ui->write(ui->controller, 0, sizeof(LV2_Atom) + 3, ui->uris.atom_eventTransfer, ¬e_on); } -- cgit v1.2.1