Fairly major change to the way in which crossfades are handled;
[ardour.git] / gtk2_ardour / editor_ops.cc
index ee78056b7fd749785481eec0a8715b1e7acdbc4a..fdca00918578ece9c994f291d2d5045a8034969f 100644 (file)
@@ -2510,7 +2510,7 @@ static void
 add_if_covered (RegionView* rv, const AudioRange* ar, RegionSelection* rs)
 {
        switch (rv->region()->coverage (ar->start, ar->end - 1)) {
-       case OverlapNone:
+       case Evoral::OverlapNone:
                break;
        default:
                rs->push_back (rv);
@@ -3263,7 +3263,7 @@ Editor::trim_region_to_location (const Location& loc, const char* str)
 
                /* require region to span proposed trim */
                switch (rv->region()->coverage (loc.start(), loc.end())) {
-               case OverlapInternal:
+               case Evoral::OverlapInternal:
                        break;
                default:
                        continue;
@@ -3389,8 +3389,6 @@ Editor::_freeze_thread (void* arg)
 void*
 Editor::freeze_thread ()
 {
-       /* create per-thread buffers for process() calls */
-       ProcessThread::init ();
        /* create event pool because we may need to talk to the session */
        SessionEvent::create_per_thread_pool ("freeze events", 64);
        /* create per-thread buffers for process() tree to use */
@@ -5247,24 +5245,6 @@ Editor::update_region_fade_visibility ()
        }
 }
 
-/** Update crossfade visibility after its configuration has been changed */
-void
-Editor::update_xfade_visibility ()
-{
-       _xfade_visibility = _session->config.get_xfades_visible ();
-
-       for (TrackViewList::iterator i = track_views.begin(); i != track_views.end(); ++i) {
-               AudioTimeAxisView* v = dynamic_cast<AudioTimeAxisView*>(*i);
-               if (v) {
-                       if (_xfade_visibility) {
-                               v->show_all_xfades ();
-                       } else {
-                               v->hide_all_xfades ();
-                       }
-               }
-       }
-}
-
 void
 Editor::set_edit_point ()
 {