Standardize native audio behaviour for all systems

Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
falkTX 2022-11-25 19:35:55 +00:00
parent 16acb8079a
commit 8cdc958c1e
3 changed files with 12 additions and 3 deletions

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) {