From 1c1b359ff21aac57bd71d291049d657f66cf31f5 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Thu, 22 Jul 2010 14:52:05 +0000 Subject: second (and hopefully) final part of changes to respond to header format changes sensibly: lookup existing files correctly, and don't end up with gapped "take" numbers for successive files since we now remove ::removable() sources when switching to new ones (for audio) git-svn-id: svn://localhost/ardour2/branches/3.0@7470 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/ardour/file_source.h | 3 +-- libs/ardour/ardour/utils.h | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'libs/ardour/ardour') diff --git a/libs/ardour/ardour/file_source.h b/libs/ardour/ardour/file_source.h index dfb1b43e58..379d391c73 100644 --- a/libs/ardour/ardour/file_source.h +++ b/libs/ardour/ardour/file_source.h @@ -61,6 +61,7 @@ public: Glib::ustring& found_path); void inc_use_count (); + bool removable () const; protected: FileSource (Session& session, DataType type, @@ -75,8 +76,6 @@ protected: virtual int move_dependents_to_trash() { return 0; } void set_within_session_from_path (const std::string&); - bool removable () const; - Glib::ustring _path; Glib::ustring _take_id; bool _file_is_new; diff --git a/libs/ardour/ardour/utils.h b/libs/ardour/ardour/utils.h index b91a6500db..f3f9c4182c 100644 --- a/libs/ardour/ardour/utils.h +++ b/libs/ardour/ardour/utils.h @@ -105,6 +105,7 @@ ARDOUR::MeterFalloff meter_falloff_from_float (float); float meter_falloff_to_db_per_sec (float); const char* native_header_format_extension (ARDOUR::HeaderFormat, const ARDOUR::DataType& type); +bool matching_unsuffixed_filename_exists_in (const std::string& dir, const std::string& name); #if defined(HAVE_COREAUDIO) || defined(HAVE_AUDIOUNITS) std::string CFStringRefToStdString(CFStringRef stringRef); -- cgit v1.2.3