meet rhythm ferret: cute, furry and always on time (ardour build now requires fftw3...
[ardour.git] / libs / ardour / ardour / session.h
index 42ad79f3c0fb414275202d7071ec40ace4c46b13..acb9f5f53f3e7227a266cbd850cd8d8a8565605c 100644 (file)
@@ -252,6 +252,9 @@ class Session : public PBD::StatefulDestructible
        std::string peak_dir () const;
        std::string dead_sound_dir () const;
        std::string automation_dir () const;
+       std::string analysis_dir() const;
+       
+       int ensure_subdirs ();
 
        Glib::ustring peak_path (Glib::ustring) const;
 
@@ -578,7 +581,7 @@ class Session : public PBD::StatefulDestructible
            
        };
 
-       int import_audiofile (import_status&);
+       void import_audiofiles (import_status&);
        bool sample_rate_convert (import_status&, string infile, string& outfile);
        string build_tmp_convert_name (string file);
 
@@ -695,6 +698,13 @@ class Session : public PBD::StatefulDestructible
        uint32_t n_plugin_inserts() const { return _plugin_inserts.size(); }
        uint32_t n_sends() const { return _sends.size(); }
 
+       static void set_disable_all_loaded_plugins (bool yn) { 
+               _disable_all_loaded_plugins = yn;
+       }
+       static bool get_disable_all_loaded_plugins() { 
+               return _disable_all_loaded_plugins;
+       }
+
        uint32_t next_send_id();
        uint32_t next_insert_id();
        void mark_send_id (uint32_t);
@@ -966,35 +976,35 @@ class Session : public PBD::StatefulDestructible
 
        typedef void (Session::*process_function_type)(nframes_t);
 
-       AudioEngine            &_engine;
-       mutable gint            processing_prohibited;
+       AudioEngine&            _engine;
+       mutable gint             processing_prohibited;
        process_function_type    process_function;
        process_function_type    last_process_function;
        bool                     waiting_for_sync_offset;
-       nframes_t          _base_frame_rate;
-       nframes_t          _current_frame_rate;  //this includes video pullup offset
+       nframes_t               _base_frame_rate;
+       nframes_t               _current_frame_rate;  //this includes video pullup offset
        int                      transport_sub_state;
-       mutable gint           _record_status;
-       nframes_t          _transport_frame;
+       mutable gint            _record_status;
+       volatile nframes_t      _transport_frame;
        Location*                end_location;
        Location*                start_location;
-       Slave                  *_slave;
+       Slave*                  _slave;
        bool                    _silent;
        volatile float          _transport_speed;
        volatile float          _desired_transport_speed;
        float                   _last_transport_speed;
        bool                     auto_play_legal;
-       nframes_t          _last_slave_transport_frame;
-       nframes_t           maximum_output_latency;
-       nframes_t           last_stop_frame;
-       nframes64_t             _requested_return_frame;
+       nframes_t               _last_slave_transport_frame;
+       nframes_t                maximum_output_latency;
+       nframes_t                last_stop_frame;
+       volatile nframes64_t    _requested_return_frame;
        vector<Sample *>        _passthru_buffers;
        vector<Sample *>        _silent_buffers;
        vector<Sample *>        _send_buffers;
-       nframes_t           current_block_size;
-       nframes_t          _worst_output_latency;
-       nframes_t          _worst_input_latency;
-       nframes_t          _worst_track_latency;
+       nframes_t                current_block_size;
+       nframes_t               _worst_output_latency;
+       nframes_t               _worst_input_latency;
+       nframes_t               _worst_track_latency;
        bool                    _have_captured;
        float                   _meter_hold;
        float                   _meter_falloff;
@@ -1434,7 +1444,7 @@ class Session : public PBD::StatefulDestructible
 
        SerializedRCUManager<RouteList>  routes;
 
-       void   add_routes (RouteList&, bool save = true);
+       void   add_routes (RouteList&, bool save);
        uint32_t destructive_index;
 
        int load_routes (const XMLNode&);
@@ -1711,6 +1721,8 @@ class Session : public PBD::StatefulDestructible
        
        void set_history_depth (uint32_t depth);
        void sync_order_keys ();
+
+       static bool _disable_all_loaded_plugins;
 };
 
 } // namespace ARDOUR