| 332 | } |
| 333 | |
| 334 | static const char* getPluginPath(const PluginType ptype) |
| 335 | { |
| 336 | switch (ptype) |
| 337 | { |
| 338 | case PLUGIN_LADSPA: |
| 339 | if (const char* const path = std::getenv("LADSPA_PATH")) |
| 340 | return path; |
| 341 | return getPathForLADSPA(); |
| 342 | case PLUGIN_DSSI: |
| 343 | if (const char* const path = std::getenv("DSSI_PATH")) |
| 344 | return path; |
| 345 | return getPathForDSSI(); |
| 346 | case PLUGIN_LV2: |
| 347 | if (const char* const path = std::getenv("LV2_PATH")) |
| 348 | return path; |
| 349 | return getPathForLV2(); |
| 350 | case PLUGIN_VST2: |
| 351 | if (const char* const path = std::getenv("VST_PATH")) |
| 352 | return path; |
| 353 | return getPathForVST2(); |
| 354 | case PLUGIN_VST3: |
| 355 | if (const char* const path = std::getenv("VST3_PATH")) |
| 356 | return path; |
| 357 | return getPathForVST3(); |
| 358 | case PLUGIN_CLAP: |
| 359 | if (const char* const path = std::getenv("CLAP_PATH")) |
| 360 | return path; |
| 361 | return getPathForCLAP(); |
| 362 | case PLUGIN_JSFX: |
| 363 | return getPathForJSFX(); |
| 364 | default: |
| 365 | return nullptr; |
| 366 | } |
| 367 | } |
| 368 | |
| 369 | // -------------------------------------------------------------------------------------------------------------------- |
| 370 |
no test coverage detected