FFT analysis: use actual latency
[ardour.git] / gtk2_ardour / editor_drag.h
index 498488cb50a82b542d3e146978790bcbd239b8c6..db094193c7064ee0073449783feaef6d562ae7a5 100644 (file)
@@ -283,7 +283,7 @@ private:
         *  samplepos. used for relative snap.
         */
        samplepos_t _snap_delta;
-       double     _snap_delta_music;
+       double      _snap_delta_music;
        CursorContext::Handle _cursor_ctx; ///< cursor change context
        bool _constraint_pressed; ///< if the keyboard indicated constraint modifier was pressed on start_grab()
 };
@@ -486,8 +486,8 @@ protected:
        bool y_movement_allowed (int delta_track, double delta_layer, int skip_invisible = 0) const;
 
 private:
-       TimeAxisView *prev_tav;         // where regions were most recently dragged from
-       TimeAxisView *orig_tav;         // where drag started
+       TimeAxisView *prev_tav; // where regions were most recently dragged from
+       TimeAxisView *orig_tav; // where drag started
        ARDOUR::samplecnt_t prev_amount;
        ARDOUR::samplepos_t prev_position;
        ARDOUR::samplecnt_t selection_length;
@@ -636,7 +636,7 @@ private:
        }
 
        MidiRegionView* _region_view;
-       samplepos_t      _last_pos;
+       samplepos_t     _last_pos;
        double          _y;
 
 };
@@ -1244,7 +1244,7 @@ class AutomationRangeDrag : public Drag
 {
 public:
        AutomationRangeDrag (Editor *, AutomationTimeAxisView *, std::list<ARDOUR::AudioRange> const &);
-       AutomationRangeDrag (Editor *, RegionView *, std::list<RegionView*> const &, std::list<ARDOUR::AudioRange> const &);
+       AutomationRangeDrag (Editor *, std::list<RegionView*> const &, std::list<ARDOUR::AudioRange> const &, double y_origin, double y_height);
 
        void start_grab (GdkEvent *, Gdk::Cursor* c = 0);
        void motion (GdkEvent *, bool);
@@ -1257,7 +1257,7 @@ public:
 
 private:
        void setup (std::list<boost::shared_ptr<AutomationLine> > const &);
-       double y_fraction (boost::shared_ptr<AutomationLine>, double global_y_position) const;
+       double y_fraction (double global_y_position) const;
        double value (boost::shared_ptr<ARDOUR::AutomationList> list, double x) const;
 
        std::list<ARDOUR::AudioRange> _ranges;
@@ -1268,11 +1268,11 @@ private:
                std::list<ControlPoint*> points; ///< points to drag on the line
                std::pair<ARDOUR::samplepos_t, ARDOUR::samplepos_t> range; ///< the range of all points on the line, in session samples
                XMLNode* state; ///< the XML state node before the drag
-               double original_fraction; ///< initial y-fraction before the drag
        };
 
        std::list<Line> _lines;
        double          _y_origin;
+       double          _y_height;
        bool            _nothing_to_drag;
        bool            _integral;
 };