summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libs/ardour/ardour/session_directory.h6
-rw-r--r--libs/ardour/session_directory.cc7
2 files changed, 13 insertions, 0 deletions
diff --git a/libs/ardour/ardour/session_directory.h b/libs/ardour/ardour/session_directory.h
index a5eecffe99..131812c130 100644
--- a/libs/ardour/ardour/session_directory.h
+++ b/libs/ardour/ardour/session_directory.h
@@ -68,6 +68,12 @@ public:
const path dead_sound_path () const;
/**
+ * @return The absolute path to the directory that audio
+ * files are created in by default when exporting.
+ */
+ const path export_path () const;
+
+ /**
* @return true if session directory and all the required
* subdirectories exist.
*/
diff --git a/libs/ardour/session_directory.cc b/libs/ardour/session_directory.cc
index a4dbc286e6..e871b84244 100644
--- a/libs/ardour/session_directory.cc
+++ b/libs/ardour/session_directory.cc
@@ -111,6 +111,12 @@ SessionDirectory::dead_sound_path () const
return path(m_root_path) /= dead_sound_dir_name;
}
+const path
+SessionDirectory::export_path () const
+{
+ return path(m_root_path) /= export_dir_name;
+}
+
const vector<path>
SessionDirectory::sub_directories () const
{
@@ -119,6 +125,7 @@ SessionDirectory::sub_directories () const
tmp_paths.push_back ( sound_path () );
tmp_paths.push_back ( peak_path () );
tmp_paths.push_back ( dead_sound_path () );
+ tmp_paths.push_back ( export_path () );
return tmp_paths;
}