29 #define MUNLOCK(a,b) 1 30 #define MUNLOCK_SAMPLEBLOCK(a) 1 31 #define MUNLOCKALL() 1 34 #define MBARRIER() SystemMemoryBarrier() 36 #define DLOPEN(a,b) LoadLibrary((a).toStdWString().c_str()) 37 #define DLSYM(a,b) GetProcAddress((HINSTANCE)(a),(b)) 38 #define DLCLOSE(a) (!FreeLibrary((HINSTANCE)(a))) 41 #define PLUGIN_GLOB "*.dll" 42 #define PATH_SEPARATOR ';' 57 #define DEFAULT_LADSPA_PATH "%ProgramFiles%\\LADSPA Plugins;%ProgramFiles%\\Audacity\\Plug-Ins" 58 #define DEFAULT_DSSI_PATH "%ProgramFiles%\\DSSI Plugins" 60 #define getpid _getpid 66 int gettimeofday(
struct timeval *p,
void *tz);
69 #define ISNAN std::isnan 70 #define ISINF std::isinf 79 #define MLOCK(a,b) ::mlock((a),(b)) 80 #define MUNLOCK(a,b) (::munlock((a),(b)) ? (::perror("munlock failed"), 0) : 0) 81 #define MUNLOCK_SAMPLEBLOCK(a) do { if (!(a).empty()) { const float &b = *(a).begin(); MUNLOCK(&b, (a).capacity() * sizeof(float)); } } while(0); 86 #define DLOPEN(a,b) dlopen((a).toStdString().c_str(),(b)) 87 #define DLSYM(a,b) dlsym((a),(b)) 88 #define DLCLOSE(a) dlclose((a)) 89 #define DLERROR() dlerror() 92 #define ISNAN std::isnan 93 #define ISINF std::isinf 97 #define PLUGIN_GLOB "*.dylib *.so" 98 #define PATH_SEPARATOR ':' 100 #define DEFAULT_LADSPA_PATH "$HOME/Library/Audio/Plug-Ins/LADSPA:/Library/Audio/Plug-Ins/LADSPA" 101 #define DEFAULT_DSSI_PATH "$HOME/Library/Audio/Plug-Ins/DSSI:/Library/Audio/Plug-Ins/DSSI" 103 #define MUNLOCKALL() 1 105 #include <libkern/OSAtomic.h> 106 #define MBARRIER() OSMemoryBarrier() 113 #define MLOCK(a,b) ::mlock((char *)a,b) 114 #define MUNLOCK(a,b) ::munlock((char *)a,b) 118 #define ISNAN(x) ((x)!=(x)) 123 #define PLUGIN_GLOB "*.so" 124 #define PATH_SEPARATOR ':' 126 #define DEFAULT_LADSPA_PATH "$HOME/ladspa:$HOME/.ladspa:/usr/local/lib/ladspa:/usr/lib/ladspa" 127 #define DEFAULT_DSSI_PATH "$HOME/dssi:$HOME/.dssi:/usr/local/lib/dssi:/usr/lib/dssi" 129 #define MUNLOCKALL() ::munlockall() 131 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 1) 132 #define MBARRIER() __sync_synchronize() 135 #define MBARRIER() SystemMemoryBarrier() 158 extern double mod(
double x,
double y);
159 extern float modf(
float x,
float y);
ProcessStatus GetProcessStatus(int pid)
void GetRealMemoryMBAvailable(int &available, int &total)
void StoreStartupLocale()
double princarg(double a)
void SystemMemoryBarrier()
int GetDiscSpaceMBAvailable(const char *path)
double mod(double x, double y)
void RestoreStartupLocale()
float modf(float x, float y)