#include <fst.h>
#endif
+#ifdef HAVE_AUDIOUNITS
+#include <ardour/audio_unit.h>
+#endif
+
#ifdef __SSE__
#include <xmmintrin.h>
#endif
return -1;
}
#endif
+
+#ifdef HAVE_AUDIOUNITS
+ AUPluginInfo::load_cached_info ();
+#endif
/* Make VAMP look in our library ahead of anything else */
ARDOUR::get_user_ardour_path ()
{
string path;
- char* envvar;
-
- if ((envvar = getenv ("HOME")) == 0 || strlen (envvar) == 0) {
+
+ path = Glib::get_home_dir();
+
+ if (path.empty()) {
return "/";
}
-
- path = envvar;
+
path += "/.ardour2/";
/* create it if necessary */
path = get_user_ardour_path();
if (subdir.length()) {
- path += subdir + "/";
+ path = Glib::build_filename (path, subdir);
}
- path += name;
- if (access (path.c_str(), R_OK) == 0) {
+ path = Glib::build_filename (path, name);
+
+ if (Glib::file_test (path.c_str(), Glib::FILE_TEST_EXISTS)) {
return path;
}
vector<string*> *found;
string full_path;
+ /* XXX building path, so separators are fixed */
+
full_path = get_user_ardour_path ();
full_path += ':';
full_path = get_system_data_path ();