Browse Source

Standardize native audio behaviour for all systems

Signed-off-by: falkTX <falktx@falktx.com>
tags/22.11
falkTX 2 years ago
parent
commit
8cdc958c1e
3 changed files with 12 additions and 3 deletions
  1. +1
    -1
      dpf
  2. +4
    -1
      include/simd-compat/pmmintrin.h
  3. +7
    -1
      src/override/MenuBar.cpp

+ 1
- 1
dpf

@@ -1 +1 @@
Subproject commit 85cd6c40df9b80db20c54c5e558ba3eccf34aef9
Subproject commit cfbc53bf939794fe99c57a4a8e000ec360e14262

+ 4
- 1
include/simd-compat/pmmintrin.h View File

@@ -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


+ 7
- 1
src/override/MenuBar.cpp View File

@@ -670,7 +670,13 @@ struct EngineButton : MenuButton {
}

if (supportsBufferSizeChanges()) {
static const std::vector<uint32_t> bufferSizes = {256, 512, 1024, 2048, 4096, 8192, 16384};
static const std::vector<uint32_t> 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) {


Loading…
Cancel
Save