Expose standalone controls on all builds, when available

This commit is contained in:
falkTX 2022-07-22 15:45:31 +01:00
parent 46acfbf2d1
commit ba342d24b6
2 changed files with 35 additions and 38 deletions

2
dpf

@ -1 +1 @@
Subproject commit ad3c5dae30b548134635873ee05e021d18da2e5e Subproject commit ab2cde1758d457bf481747e720f245c879ef678d

View file

@ -52,15 +52,12 @@
#include <library.hpp> #include <library.hpp>
#include "../CardinalCommon.hpp" #include "../CardinalCommon.hpp"
#include "DistrhoStandaloneUtils.hpp"
#ifdef HAVE_LIBLO #ifdef HAVE_LIBLO
# include <lo/lo.h> # include <lo/lo.h>
#endif #endif
#ifdef DISTRHO_OS_WASM
# include "DistrhoStandaloneUtils.hpp"
#endif
void switchDarkMode(bool darkMode); void switchDarkMode(bool darkMode);
namespace rack { namespace rack {
@ -645,7 +642,7 @@ struct EngineButton : MenuButton {
settings::cpuMeter ^= true; settings::cpuMeter ^= true;
})); }));
#ifdef DISTRHO_OS_WASM if (isUsingNativeAudio()) {
if (supportsAudioInput()) { if (supportsAudioInput()) {
const bool enabled = isAudioInputEnabled(); const bool enabled = isAudioInputEnabled();
std::string rightText; std::string rightText;
@ -680,7 +677,7 @@ struct EngineButton : MenuButton {
} }
})); }));
} }
#endif }
} }
}; };