comparison 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
comparison
equal deleted inserted replaced
185:d5052b5fea9c 186:06ad01f3e553
30 #define DLSYM(a,b) GetProcAddress((HINSTANCE)(a),(b)) 30 #define DLSYM(a,b) GetProcAddress((HINSTANCE)(a),(b))
31 #define DLCLOSE(a) FreeLibrary((HINSTANCE)(a)) 31 #define DLCLOSE(a) FreeLibrary((HINSTANCE)(a))
32 #define DLERROR() "" 32 #define DLERROR() ""
33 33
34 #define PLUGIN_GLOB "*.dll" 34 #define PLUGIN_GLOB "*.dll"
35 #define PATH_SEPARATOR ';' 35
36 #define DEFAULT_VAMP_PATH "%ProgramFiles%\\Vamp Plugins" 36 // The default Vamp plugin path is obtained from a function in the Vamp SDK
37 // (Vamp::PluginHostAdapter::getPluginPath).
38
39 #define DEFAULT_LADSPA_PATH "%ProgramFiles%\\LADSPA Plugins"
40 #define DEFAULT_DSSI_PATH "%ProgramFiles%\\DSSI Plugins"
37 41
38 #define getpid _getpid 42 #define getpid _getpid
39 43
40 extern "C" { 44 extern "C" {
41 void usleep(unsigned long usec); 45 void usleep(unsigned long usec);
54 #define DLOPEN(a,b) dlopen((a).toStdString().c_str(),(b)) 58 #define DLOPEN(a,b) dlopen((a).toStdString().c_str(),(b))
55 #define DLSYM(a,b) dlsym((a),(b)) 59 #define DLSYM(a,b) dlsym((a),(b))
56 #define DLCLOSE(a) dlclose((a)) 60 #define DLCLOSE(a) dlclose((a))
57 #define DLERROR() dlerror() 61 #define DLERROR() dlerror()
58 62
59 #define PATH_SEPARATOR ':'
60
61 #ifdef __APPLE__ 63 #ifdef __APPLE__
62 64
63 #define PLUGIN_GLOB "*.dylib" 65 #define PLUGIN_GLOB "*.dylib"
64 #define DEFAULT_VAMP_PATH "/Library/Audio/Plug-Ins/Vamp/:$HOME/Library/Audio/Plug-Ins/Vamp" 66
67 #define DEFAULT_LADSPA_PATH "$HOME/Library/Audio/Plug-Ins/LADSPA:/Library/Audio/Plug-Ins/LADSPA"
68 #define DEFAULT_DSSI_PATH "$HOME/Library/Audio/Plug-Ins/DSSI:/Library/Audio/Plug-Ins/DSSI"
65 69
66 #else 70 #else
67 71
68 #define PLUGIN_GLOB "*.so" 72 #define PLUGIN_GLOB "*.so"
69 #define DEFAULT_VAMP_PATH "/usr/local/lib/vamp:/usr/lib/vamp:$HOME/vamp:$HOME/.vamp" 73
74 #define DEFAULT_LADSPA_PATH "$HOME/ladspa:$HOME/.ladspa:/usr/local/lib/ladspa:/usr/lib/ladspa"
75 #define DEFAULT_DSSI_PATH "$HOME/dssi:$HOME/.dssi:/usr/local/lib/dssi:/usr/lib/dssi"
70 76
71 #endif /* __APPLE__ */ 77 #endif /* __APPLE__ */
72 78
73 #endif /* ! _WIN32 */ 79 #endif /* ! _WIN32 */
74 80