|
|
@@ -27,6 +27,7 @@ |
|
|
|
#include "CarlaBackendUtils.hpp" |
|
|
|
#include "CarlaBase64Utils.hpp" |
|
|
|
#include "CarlaOscUtils.hpp" |
|
|
|
#include "CarlaThread.hpp" |
|
|
|
|
|
|
|
#include "juce_audio_formats.h" |
|
|
|
|
|
|
@@ -75,9 +76,6 @@ struct CarlaBackendStandalone { |
|
|
|
File binaryDir(File::getSpecialLocation(File::currentExecutableFile).getParentDirectory()); |
|
|
|
engineOptions.binaryDir = carla_strdup_safe(binaryDir.getFullPathName().toRawUTF8()); |
|
|
|
engineOptions.resourceDir = carla_strdup_safe(binaryDir.getChildFile("resources").getFullPathName().toRawUTF8()); |
|
|
|
#else |
|
|
|
if (std::getenv("LADISH_APP_NAME") == nullptr && std::getenv("NSM_URL") == nullptr) |
|
|
|
juce::Thread::setCurrentThreadName("Carla"); |
|
|
|
#endif |
|
|
|
} |
|
|
|
|
|
|
@@ -773,6 +771,11 @@ void carla_set_engine_option(EngineOption option, int value, const char* valueSt |
|
|
|
case CB:: ENGINE_OPTION_NSM_INIT: |
|
|
|
CARLA_SAFE_ASSERT_RETURN(value != 0,); |
|
|
|
CARLA_SAFE_ASSERT_RETURN(valueStr != nullptr && valueStr[0] != '\0',); |
|
|
|
|
|
|
|
// this is only called if we're not a plugin, so it's safe |
|
|
|
CarlaThread::setCurrentThreadName("Carla"); |
|
|
|
juce::Thread::setCurrentThreadName("Carla"); |
|
|
|
|
|
|
|
gNSM.announce(value, valueStr); |
|
|
|
break; |
|
|
|
|
|
|
|