13
0

Use SessionDirectory and sys::path in Session::peak_path_from_audio_path for portability

git-svn-id: svn://localhost/ardour2/trunk@2003 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Tim Mayberry 2007-06-17 00:46:37 +00:00
parent 238cab0166
commit b2d26fcb9e

View File

@ -2764,13 +2764,11 @@ Session::source_by_path_and_channel (const Glib::ustring& path, uint16_t chn)
string string
Session::peak_path_from_audio_path (string audio_path) const Session::peak_path_from_audio_path (string audio_path) const
{ {
string res; sys::path peakfile_path(_session_dir->peak_path());
res = peak_dir (); peakfile_path /= basename_nosuffix (audio_path) + peakfile_suffix;
res += PBD::basename_nosuffix (audio_path);
res += peakfile_suffix;
return res; return peakfile_path.to_string();
} }
string string