comparison base/System.h @ 78:c983dda79f72

* Replace crash with warning when a transform could not be automatically re-run * More sensible default paths for Vamp plugin lookup (at least on Linux and OS/X) * A start to making the y coords for time value layers etc align * Set sensible y coords for text labels in time instant and value layers
author Chris Cannam
date Thu, 13 Apr 2006 18:29:10 +0000
parents d26c85099215
children 8739096929dd
comparison
equal deleted inserted replaced
77:2beca8ddcdc3 78:c983dda79f72
29 #define DLSYM(a,b) GetProcAddress((HINSTANCE)(a),(b)) 29 #define DLSYM(a,b) GetProcAddress((HINSTANCE)(a),(b))
30 #define DLCLOSE(a) FreeLibrary((HINSTANCE)(a)) 30 #define DLCLOSE(a) FreeLibrary((HINSTANCE)(a))
31 #define DLERROR() "" 31 #define DLERROR() ""
32 32
33 #define PLUGIN_GLOB "*.dll" 33 #define PLUGIN_GLOB "*.dll"
34 #define PATH_SEPARATOR ';'
35 #define DEFAULT_VAMP_PATH ""
34 36
35 extern "C" { 37 extern "C" {
36 void gettimeofday(struct timeval *p, void *tz); 38 void gettimeofday(struct timeval *p, void *tz);
37 } 39 }
38 40
48 #define DLOPEN(a,b) dlopen((a).toStdString().c_str(),(b)) 50 #define DLOPEN(a,b) dlopen((a).toStdString().c_str(),(b))
49 #define DLSYM(a,b) dlsym((a),(b)) 51 #define DLSYM(a,b) dlsym((a),(b))
50 #define DLCLOSE(a) dlclose((a)) 52 #define DLCLOSE(a) dlclose((a))
51 #define DLERROR() dlerror() 53 #define DLERROR() dlerror()
52 54
55 #define PATH_SEPARATOR ':'
56
53 #ifdef __APPLE__ 57 #ifdef __APPLE__
54 58
55 #define PLUGIN_GLOB "*.dylib" 59 #define PLUGIN_GLOB "*.dylib"
60 #define DEFAULT_VAMP_PATH "/Library/Audio/Plug-Ins/VAMP/:$HOME/Library/Audio/Plug-Ins/VAMP"
56 61
57 #else 62 #else
58 63
59 #define PLUGIN_GLOB "*.so" 64 #define PLUGIN_GLOB "*.so"
65 #define DEFAULT_VAMP_PATH "/usr/local/lib/vamp:/usr/lib/vamp:$HOME/vamp:$HOME/.vamp"
60 66
61 #endif /* __APPLE__ */ 67 #endif /* __APPLE__ */
62 68
63 #endif /* ! _WIN32 */ 69 #endif /* ! _WIN32 */
64 70