Use proper path seperator for LADSPA_PATH

According to http://www.ladspa.org/ladspa_sdk/shared_plugins.html,
LADSPA_PATH is supposed to be delimited by colons.  This patch does so,
except on Windows.  On Windows we use ';' instead of ':' since colon is
a legal character for a path.
This commit is contained in:
Paul Giblock
2010-08-11 21:40:54 -04:00
committed by Tobias Doerffel
parent d8594fad15
commit 09b5bc906e
2 changed files with 8 additions and 1 deletions

View File

@@ -128,6 +128,13 @@ const ch_cnt_t SURROUND_CHANNELS =
#endif
#ifdef LMMS_BUILD_WIN32
#define PATH_SEPERATOR = ';';
#else
#define PATH_SEPERATOR = ':';
#endif
typedef sample_t sampleFrame[DEFAULT_CHANNELS];
typedef sample_t surroundSampleFrame[SURROUND_CHANNELS];

View File

@@ -38,7 +38,7 @@
ladspaManager::ladspaManager()
{
QStringList ladspaDirectories = QString( getenv( "LADSPA_PATH" ) ).
split( ',' );
split( PATH_SEPERATOR );
ladspaDirectories += configManager::inst()->ladspaDir().split( ',' );
ladspaDirectories.push_back( configManager::inst()->pluginDir() + "ladspa" );