comparison system/System.h @ 223:bf753a9abf0c

* Add slice layers (so you can display a slice of a colour 3d plot as if it were a spectrum) * Make spectrum layer a subclass of slice layer
author Chris Cannam
date Fri, 26 Jan 2007 16:59:57 +0000
parents c399785358c8
children 03a24547cf3c
comparison
equal deleted inserted replaced
222:c7122e70f8ec 223:bf753a9abf0c
26 #define MUNLOCK(a,b) 1 26 #define MUNLOCK(a,b) 1
27 #define MUNLOCK_SAMPLEBLOCK(a) 1 27 #define MUNLOCK_SAMPLEBLOCK(a) 1
28 28
29 #define DLOPEN(a,b) LoadLibrary((a).toStdWString().c_str()) 29 #define DLOPEN(a,b) LoadLibrary((a).toStdWString().c_str())
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
36 // The default Vamp plugin path is obtained from a function in the 37 // The default Vamp plugin path is obtained from a function in the
37 // Vamp SDK (Vamp::PluginHostAdapter::getPluginPath). 38 // Vamp SDK (Vamp::PluginHostAdapter::getPluginPath).
38 39
39 // At the time of writing, at least, the vast majority of LADSPA 40 // At the time of writing, at least, the vast majority of LADSPA
44 // found in Steinberg's Program Files directory. Anyway, we can 45 // found in Steinberg's Program Files directory. Anyway, we can
45 // greatly increase our chances of picking up some LADSPA plugins by 46 // greatly increase our chances of picking up some LADSPA plugins by
46 // default if we include the Audacity plugin location as well as an 47 // default if we include the Audacity plugin location as well as an
47 // (imho) more sensible place. 48 // (imho) more sensible place.
48 49
49 #define DEFAULT_LADSPA_PATH "%ProgramFiles%\\LADSPA Plugins:%ProgramFiles%\\Audacity\\Plug-Ins" 50 #define DEFAULT_LADSPA_PATH "%ProgramFiles%\\LADSPA Plugins;%ProgramFiles%\\Audacity\\Plug-Ins"
50 #define DEFAULT_DSSI_PATH "%ProgramFiles%\\DSSI Plugins" 51 #define DEFAULT_DSSI_PATH "%ProgramFiles%\\DSSI Plugins"
51 52
52 #define getpid _getpid 53 #define getpid _getpid
53 54
54 extern "C" { 55 extern "C" {
71 #define DLERROR() dlerror() 72 #define DLERROR() dlerror()
72 73
73 #ifdef __APPLE__ 74 #ifdef __APPLE__
74 75
75 #define PLUGIN_GLOB "*.dylib" 76 #define PLUGIN_GLOB "*.dylib"
77 #define PATH_SEPARATOR ':'
76 78
77 #define DEFAULT_LADSPA_PATH "$HOME/Library/Audio/Plug-Ins/LADSPA:/Library/Audio/Plug-Ins/LADSPA" 79 #define DEFAULT_LADSPA_PATH "$HOME/Library/Audio/Plug-Ins/LADSPA:/Library/Audio/Plug-Ins/LADSPA"
78 #define DEFAULT_DSSI_PATH "$HOME/Library/Audio/Plug-Ins/DSSI:/Library/Audio/Plug-Ins/DSSI" 80 #define DEFAULT_DSSI_PATH "$HOME/Library/Audio/Plug-Ins/DSSI:/Library/Audio/Plug-Ins/DSSI"
79 81
80 #else 82 #else
81 83
82 #define PLUGIN_GLOB "*.so" 84 #define PLUGIN_GLOB "*.so"
85 #define PATH_SEPARATOR ':'
83 86
84 #define DEFAULT_LADSPA_PATH "$HOME/ladspa:$HOME/.ladspa:/usr/local/lib/ladspa:/usr/lib/ladspa" 87 #define DEFAULT_LADSPA_PATH "$HOME/ladspa:$HOME/.ladspa:/usr/local/lib/ladspa:/usr/lib/ladspa"
85 #define DEFAULT_DSSI_PATH "$HOME/dssi:$HOME/.dssi:/usr/local/lib/dssi:/usr/lib/dssi" 88 #define DEFAULT_DSSI_PATH "$HOME/dssi:$HOME/.dssi:/usr/local/lib/dssi:/usr/lib/dssi"
86 89
87 #endif /* __APPLE__ */ 90 #endif /* __APPLE__ */