globally change all use of "frame" to refer to audio into "sample".
[ardour.git] / libs / surfaces / cc121 / cc121.cc
index 8a8cfb6597d443d4f3c837be9c38d2216c92cd85..ac4acf3439e34e349bf019e5317f14a207f18fd8 100644 (file)
@@ -309,7 +309,7 @@ CC121::button_press_handler (MIDI::Parser &, MIDI::EventTwoBytes* tb)
                if (_current_stripable) {
                        boost::shared_ptr<AutomationControl> gain = _current_stripable->gain_control ();
                        if (gain) {
-                         framepos_t now = session->engine().sample_time();
+                         samplepos_t now = session->engine().sample_time();
                          gain->start_touch (now);
                        }
                }
@@ -356,7 +356,7 @@ CC121::button_release_handler (MIDI::Parser &, MIDI::EventTwoBytes* tb)
          if (_current_stripable) {
            boost::shared_ptr<AutomationControl> gain = _current_stripable->gain_control ();
            if (gain) {
-             framepos_t now = session->engine().sample_time();
+             samplepos_t now = session->engine().sample_time();
              gain->stop_touch (now);
            }
          }
@@ -694,7 +694,7 @@ CC121::midi_input_handler (Glib::IOCondition ioc, boost::shared_ptr<ARDOUR::Asyn
 
                port->clear ();
                DEBUG_TRACE (DEBUG::CC121, string_compose ("data available on %1\n", boost::shared_ptr<MIDI::Port>(port)->name()));
-               framepos_t now = session->engine().sample_time();
+               samplepos_t now = session->engine().sample_time();
                port->parse (now);
        }