From 8cdc958c1e91143d72f555ea285067c6cf5c0d9d Mon Sep 17 00:00:00 2001 From: falkTX Date: Fri, 25 Nov 2022 19:35:55 +0000 Subject: [PATCH] Standardize native audio behaviour for all systems Signed-off-by: falkTX --- dpf | 2 +- include/simd-compat/pmmintrin.h | 5 ++++- src/override/MenuBar.cpp | 8 +++++++- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/dpf b/dpf index 85cd6c4..cfbc53b 160000 --- a/dpf +++ b/dpf @@ -1 +1 @@ -Subproject commit 85cd6c40df9b80db20c54c5e558ba3eccf34aef9 +Subproject commit cfbc53bf939794fe99c57a4a8e000ec360e14262 diff --git a/include/simd-compat/pmmintrin.h b/include/simd-compat/pmmintrin.h index fe72b9e..1f7da29 100644 --- a/include/simd-compat/pmmintrin.h +++ b/include/simd-compat/pmmintrin.h @@ -30,7 +30,10 @@ # undef _WIN32 # endif -# include "../simde/simde/x86/sse3.h" +// assume SSE3 only on macOS +# ifndef ARCH_MAC +# include "../simde/simde/x86/sse3.h" +# endif # ifdef _WIN32_WAS_DEFINED # define _WIN32 diff --git a/src/override/MenuBar.cpp b/src/override/MenuBar.cpp index 1b2326e..c848e05 100644 --- a/src/override/MenuBar.cpp +++ b/src/override/MenuBar.cpp @@ -670,7 +670,13 @@ struct EngineButton : MenuButton { } if (supportsBufferSizeChanges()) { - static const std::vector bufferSizes = {256, 512, 1024, 2048, 4096, 8192, 16384}; + static const std::vector bufferSizes = { + #ifdef DISTRHO_OS_WASM + 256, 512, 1024, 2048, 4096, 8192, 16384 + #else + 128, 256, 512, 1024, 2048, 4096, 8192 + #endif + }; const uint32_t currentBufferSize = getBufferSize(); menu->addChild(createSubmenuItem("Buffer Size", std::to_string(currentBufferSize), [=](ui::Menu* menu) { for (uint32_t bufferSize : bufferSizes) {