MCPcopy Create free account
hub / github.com/DISTRHO/Cardinal / getPathForLADSPA

Function getPathForLADSPA

plugins/Cardinal/src/Ildaeil.cpp:120–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118// --------------------------------------------------------------------------------------------------------------------
119
120static const char* getPathForLADSPA()
121{
122 static std::string path;
123
124 if (path.empty())
125 {
126 #if defined(CARLA_OS_HAIKU)
127 path = homeDir() + "/.ladspa:/system/add-ons/media/ladspaplugins:/system/lib/ladspa";
128 #elif defined(CARLA_OS_MAC)
129 path = homeDir() + "/Library/Audio/Plug-Ins/LADSPA:/Library/Audio/Plug-Ins/LADSPA";
130 #elif defined(CARLA_OS_WASM)
131 path = "/ladspa";
132 #elif defined(CARLA_OS_WIN)
133 path = getSpecialPath(kSpecialPathAppData) + "\\LADSPA;";
134 path += getSpecialPath(kSpecialPathProgramFiles) + "\\LADSPA";
135 #else
136 path = homeDir() + "/.ladspa:/usr/lib/ladspa:/usr/local/lib/ladspa";
137 #endif
138 }
139
140 return path.c_str();
141}
142
143static const char* getPathForDSSI()
144{

Callers 1

getPluginPathFunction · 0.85

Calls 4

c_strMethod · 0.80
homeDirFunction · 0.50
getSpecialPathFunction · 0.50
emptyMethod · 0.45

Tested by

no test coverage detected