Skip to content

Commit abb5524

Browse files
committed
Align read size to 32-bit word boundary
1 parent f62173a commit abb5524

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Source/OnixSourceEditor.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,8 @@ void OnixSourceEditor::labelTextChanged (Label* l)
237237
readSize = maxReadSize;
238238
}
239239

240+
readSize = (readSize + 3) & ~3; // NB: Round up to the next multiple of four to align with word boundaries in liboni
241+
240242
source->setBlockReadSize (readSize);
241243
l->setText (String (source->getBlockReadSize()), dontSendNotification);
242244
}

Source/OpenEphysLib.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ extern "C" EXPORT void getLibInfo(Plugin::LibraryInfo* info)
4747
info->name = "ONIX Source";
4848

4949
//Version of the library, used only for information
50-
info->libVersion = "0.2.1";
50+
info->libVersion = "0.3.0";
5151
info->numPlugins = NUM_PLUGINS;
5252
}
5353

0 commit comments

Comments
 (0)