From 6b9ba0d6ecfaf6a2c11fc0ab4a647ac823acad2e Mon Sep 17 00:00:00 2001 From: MiranDMC Date: Sat, 12 Oct 2024 23:59:09 +0200 Subject: [PATCH] Update cleo_plugins/Audio/C3DAudioStream.cpp Co-authored-by: Seemann --- cleo_plugins/Audio/C3DAudioStream.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cleo_plugins/Audio/C3DAudioStream.cpp b/cleo_plugins/Audio/C3DAudioStream.cpp index d7a46eb8..258ba472 100644 --- a/cleo_plugins/Audio/C3DAudioStream.cpp +++ b/cleo_plugins/Audio/C3DAudioStream.cpp @@ -6,7 +6,8 @@ using namespace CLEO; C3DAudioStream::C3DAudioStream(const char* filepath) : CAudioStream() { - static_assert(offsetof(C3DAudioStream, streamInternal) == 4, "C3DAudioStream compatibility with CLEO4 broken!"); + // see https://github.com/cleolibrary/CLEO5/pull/230 + static_assert(offsetof(C3DAudioStream, streamInternal) == 4 && alignof(C3DAudioStream) == 4, "C3DAudioStream compatibility with CLEO4 broken!"); if (isNetworkSource(filepath) && !CSoundSystem::allowNetworkSources) {