aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/eg05-scope.lv2/examploscope_ui.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/eg05-scope.lv2/examploscope_ui.c')
-rw-r--r--plugins/eg05-scope.lv2/examploscope_ui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/eg05-scope.lv2/examploscope_ui.c b/plugins/eg05-scope.lv2/examploscope_ui.c
index 3e014f0..4061ff9 100644
--- a/plugins/eg05-scope.lv2/examploscope_ui.c
+++ b/plugins/eg05-scope.lv2/examploscope_ui.c
@@ -553,7 +553,7 @@ recv_raw_audio(EgScopeUI* ui, const LV2_Atom_Object* obj)
}
// Number of elements = (total size - header size) / element size
- const size_t n_elem = ((data_val->size - sizeof(LV2_Atom_Vector))
+ const size_t n_elem = ((data_val->size - sizeof(LV2_Atom_Vector_Body))
/ sizeof(float));
// Float elements immediately follow the vector body header