From abb5524585252f92950efa1b1a29dbf84f0a2001 Mon Sep 17 00:00:00 2001 From: bparks13 Date: Mon, 27 Oct 2025 15:22:33 -0400 Subject: [PATCH] Align read size to 32-bit word boundary --- Source/OnixSourceEditor.cpp | 2 ++ Source/OpenEphysLib.cpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Source/OnixSourceEditor.cpp b/Source/OnixSourceEditor.cpp index 01a4668..80cff19 100644 --- a/Source/OnixSourceEditor.cpp +++ b/Source/OnixSourceEditor.cpp @@ -237,6 +237,8 @@ void OnixSourceEditor::labelTextChanged (Label* l) readSize = maxReadSize; } + readSize = (readSize + 3) & ~3; // NB: Round up to the next multiple of four to align with word boundaries in liboni + source->setBlockReadSize (readSize); l->setText (String (source->getBlockReadSize()), dontSendNotification); } diff --git a/Source/OpenEphysLib.cpp b/Source/OpenEphysLib.cpp index ad6e41a..6796524 100644 --- a/Source/OpenEphysLib.cpp +++ b/Source/OpenEphysLib.cpp @@ -47,7 +47,7 @@ extern "C" EXPORT void getLibInfo(Plugin::LibraryInfo* info) info->name = "ONIX Source"; //Version of the library, used only for information - info->libVersion = "0.2.1"; + info->libVersion = "0.3.0"; info->numPlugins = NUM_PLUGINS; }