fix visual focus indication in IOSelector; import pays attention to audio file embedd...
[ardour.git] / libs / ardour / ardour / audiofilesource.h
index 53e27b1df901780329e14b135490fd92969ab826..728432db81945ec754847387e55f84624b2f5c51 100644 (file)
@@ -81,6 +81,8 @@ class AudioFileSource : public AudioSource {
        void   mark_take (string);
        string take_id() const { return _take_id; }
 
+       bool is_embedded() const { return _is_embedded; }
+
        static void set_bwf_serial_number (int);
        
        static void set_search_path (string);
@@ -93,6 +95,9 @@ class AudioFileSource : public AudioSource {
        XMLNode& get_state ();
        int set_state (const XMLNode&);
 
+       bool destructive() const { return (_flags & Destructive); }
+       virtual bool set_destructive (bool yn) { return false; }
+
        /* this should really be protected, but C++ is getting stricter
           and creating slots from protected member functions is starting
           to cause issues.
@@ -124,6 +129,9 @@ class AudioFileSource : public AudioSource {
        uint64_t       timeline_position;
        bool           file_is_new;
 
+       bool          _is_embedded;
+       static bool determine_embeddedness(string path);
+
        static string peak_dir;
        static string search_path;