| 118 | // -------------------------------------------------------------------------------------------------------------------- |
| 119 | |
| 120 | static 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 | |
| 143 | static const char* getPathForDSSI() |
| 144 | { |
no test coverage detected