diff options
author | Robin Gareus <robin@gareus.org> | 2015-09-10 16:39:35 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2015-09-10 16:47:26 +0200 |
commit | a86aa9e5bc4d2520087310caa4afb3508480b0d7 (patch) | |
tree | 6106ebc5a7c623e60c7b8b7a9791eaa1a985dd13 /libs/ardour/audiosource.cc | |
parent | b3e84956627f09c679021449bacbab6d2d601139 (diff) |
use FileSource::within_session() for peak-files
Diffstat (limited to 'libs/ardour/audiosource.cc')
-rw-r--r-- | libs/ardour/audiosource.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/ardour/audiosource.cc b/libs/ardour/audiosource.cc index c79cbbbe26..4439669c4f 100644 --- a/libs/ardour/audiosource.cc +++ b/libs/ardour/audiosource.cc @@ -237,14 +237,14 @@ AudioSource::rename_peakfile (string newpath) } int -AudioSource::initialize_peakfile (const string& audio_path) +AudioSource::initialize_peakfile (const string& audio_path, const bool in_session) { GStatBuf statbuf; - _peakpath = construct_peak_filepath (audio_path); + _peakpath = construct_peak_filepath (audio_path, in_session); if (!empty() && !Glib::file_test (_peakpath.c_str(), Glib::FILE_TEST_EXISTS)) { - string oldpeak = construct_peak_filepath (audio_path, true); + string oldpeak = construct_peak_filepath (audio_path, in_session, true); DEBUG_TRACE(DEBUG::Peaks, string_compose ("Looking for old peak file %1 for Audio file %2\n", oldpeak, audio_path)); if (Glib::file_test (oldpeak.c_str(), Glib::FILE_TEST_EXISTS)) { // TODO use hard-link if possible |