diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2012-10-23 14:52:26 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2012-10-23 14:52:26 +0000 |
commit | 35c6b52c36ca047ada5b1b127128c03049ebfc89 (patch) | |
tree | 0ae4967ae71420d94bf1053dbb44d725689d8734 /libs/ardour/ardour/session_directory.h | |
parent | 506adcb7a2cd237cecdac151fd2682506a55ac89 (diff) |
probable fix for not being able to find audio files in a 2.X session that had "illegal" characters in the session name - adds the 2.X version of the search path to the audio file search path, if it exists
git-svn-id: svn://localhost/ardour2/branches/3.0@13321 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/ardour/session_directory.h')
-rw-r--r-- | libs/ardour/ardour/session_directory.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/libs/ardour/ardour/session_directory.h b/libs/ardour/ardour/session_directory.h index 6f8f24386f..9f4410ce69 100644 --- a/libs/ardour/ardour/session_directory.h +++ b/libs/ardour/ardour/session_directory.h @@ -56,6 +56,17 @@ public: /** * @return the absolute path to the directory in which + * the session stores audio files for Ardour 2.X. + * + * If the session is an older session with an existing + * "sounds" directory then it will return a path to that + * directory otherwise it will return the new location + * of root_path()/interchange/session_name/audiofiles + */ + const std::string sound_path_2X () const; + + /** + * @return the absolute path to the directory in which * the session stores MIDI files, ie * root_path()/interchange/session_name/midifiles */ @@ -110,6 +121,13 @@ public: */ const std::string sources_root() const; + /** + * @return The path to the directory under which source directories + * are created for different source types in Ardour 2.X + * i.e root_path()/interchange/session_name + */ + const std::string sources_root_2X() const; + private: /** |