Fix build of evoral tests
[ardour.git] / libs / ardour / test / test_common.cc
index 5f802fbf5af8a4099c85c8b0117dcf802025bafe..71eba65bbbc23104866a71c2304ec1013b69b91e 100644 (file)
@@ -37,13 +37,14 @@ test_search_path ()
 }
 
 std::string
-new_test_output_dir ()
+new_test_output_dir (std::string prefix)
 {
        std::string tmp_dir = Glib::build_filename (g_get_tmp_dir(), "ardour_test");
        std::string dir_name;
        std::string new_test_dir;
        do {
                ostringstream oss;
+               oss << prefix;
                oss << g_random_int ();
                dir_name = oss.str();
                new_test_dir = Glib::build_filename (tmp_dir, dir_name);
@@ -51,3 +52,9 @@ new_test_output_dir ()
        } while (g_mkdir_with_parents (new_test_dir.c_str(), 0755) != 0);
        return new_test_dir;
 }
+
+int
+get_test_sample_rate ()
+{
+       return 44100;
+}