aboutsummaryrefslogtreecommitdiff
path: root/midi_inspector.c
diff options
context:
space:
mode:
Diffstat (limited to 'midi_inspector.c')
-rw-r--r--midi_inspector.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/midi_inspector.c b/midi_inspector.c
index 600b8dd..ae60b5e 100644
--- a/midi_inspector.c
+++ b/midi_inspector.c
@@ -151,9 +151,7 @@ run(LV2_Handle instance, uint32_t nsamples)
if(ref)
ref = lv2_atom_forge_frame_time(forge, ev->time.frames);
if(ref)
- ref = lv2_atom_forge_raw(forge, &ev->body, sizeof(LV2_Atom) + ev->body.size);
- if(ref)
- lv2_atom_forge_pad(forge, ev->body.size);
+ ref = lv2_atom_forge_write(forge, &ev->body, sizeof(LV2_Atom) + ev->body.size);
}
}