projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
238cab0
)
Use SessionDirectory and sys::path in Session::peak_path_from_audio_path for portability
author
Tim Mayberry
<mojofunk@gmail.com>
Sun, 17 Jun 2007 00:46:37 +0000
(
00:46
+0000)
committer
Tim Mayberry
<mojofunk@gmail.com>
Sun, 17 Jun 2007 00:46:37 +0000
(
00:46
+0000)
git-svn-id: svn://localhost/ardour2/trunk@2003
d708f5d6
-7413-0410-9779-
e7cbd77b26cf
libs/ardour/session.cc
patch
|
blob
|
history
diff --git
a/libs/ardour/session.cc
b/libs/ardour/session.cc
index fd1b7b14b9e9d6af5487ec110a7b6084d0a04788..b80e09d53658f280d0593fcc2042fdb6a547e931 100644
(file)
--- a/
libs/ardour/session.cc
+++ b/
libs/ardour/session.cc
@@
-2764,13
+2764,11
@@
Session::source_by_path_and_channel (const Glib::ustring& path, uint16_t chn)
string
Session::peak_path_from_audio_path (string audio_path) const
{
- s
tring res
;
+ s
ys::path peakfile_path(_session_dir->peak_path())
;
- res = peak_dir ();
- res += PBD::basename_nosuffix (audio_path);
- res += peakfile_suffix;
+ peakfile_path /= basename_nosuffix (audio_path) + peakfile_suffix;
- return
res
;
+ return
peakfile_path.to_string()
;
}
string