diff system/System.h @ 186:06ad01f3e553

* Add system-specific LADSPA and DSSI plugin paths (for OS/X and Windows) * Add ability to open more than one audio file at once from the command line * Add plugin input source selection (with some caveats) * Show name of file being decoded in Ogg/mp3 decode progress dialog
author Chris Cannam
date Thu, 12 Oct 2006 14:56:28 +0000
parents b23eea68357e
children 91fdc752e540
line wrap: on
line diff
--- a/system/System.h	Wed Oct 11 16:18:51 2006 +0000
+++ b/system/System.h	Thu Oct 12 14:56:28 2006 +0000
@@ -32,8 +32,12 @@
 #define DLERROR()    ""
 
 #define PLUGIN_GLOB  "*.dll"
-#define PATH_SEPARATOR ';'
-#define DEFAULT_VAMP_PATH "%ProgramFiles%\\Vamp Plugins"
+
+// The default Vamp plugin path is obtained from a function in the Vamp SDK
+// (Vamp::PluginHostAdapter::getPluginPath).
+
+#define DEFAULT_LADSPA_PATH "%ProgramFiles%\\LADSPA Plugins"
+#define DEFAULT_DSSI_PATH   "%ProgramFiles%\\DSSI Plugins"
 
 #define getpid _getpid
 
@@ -56,17 +60,19 @@
 #define DLCLOSE(a)   dlclose((a))
 #define DLERROR()    dlerror()
 
-#define PATH_SEPARATOR ':'
-
 #ifdef __APPLE__
 
 #define PLUGIN_GLOB  "*.dylib"
-#define DEFAULT_VAMP_PATH "/Library/Audio/Plug-Ins/Vamp/:$HOME/Library/Audio/Plug-Ins/Vamp"
+
+#define DEFAULT_LADSPA_PATH "$HOME/Library/Audio/Plug-Ins/LADSPA:/Library/Audio/Plug-Ins/LADSPA"
+#define DEFAULT_DSSI_PATH   "$HOME/Library/Audio/Plug-Ins/DSSI:/Library/Audio/Plug-Ins/DSSI"
 
 #else 
 
 #define PLUGIN_GLOB  "*.so"
-#define DEFAULT_VAMP_PATH "/usr/local/lib/vamp:/usr/lib/vamp:$HOME/vamp:$HOME/.vamp"
+
+#define DEFAULT_LADSPA_PATH "$HOME/ladspa:$HOME/.ladspa:/usr/local/lib/ladspa:/usr/lib/ladspa"
+#define DEFAULT_DSSI_PATH "$HOME/dssi:$HOME/.dssi:/usr/local/lib/dssi:/usr/lib/dssi"
 
 #endif /* __APPLE__ */