globally change all use of "frame" to refer to audio into "sample".
[ardour.git] / libs / surfaces / tranzport / general.cc
index 2b39aaa2d7fe184376bb4256050f26b718e88b5d..f92d6997be31d1b8f9c0b62b775bac481a1357d3 100644 (file)
@@ -181,7 +181,7 @@ TranzportControlProtocol::update_state ()
 void
 TranzportControlProtocol::prev_marker ()
 {
-       Location *location = session->locations()->first_location_before (session->transport_frame());
+       Location *location = session->locations()->first_location_before (session->transport_sample());
 
        if (location) {
                session->request_locate (location->start(), session->transport_rolling());
@@ -196,13 +196,13 @@ TranzportControlProtocol::prev_marker ()
 void
 TranzportControlProtocol::next_marker ()
 {
-       Location *location = session->locations()->first_location_after (session->transport_frame());
+       Location *location = session->locations()->first_location_after (session->transport_sample());
 
        if (location) {
                session->request_locate (location->start(), session->transport_rolling());
                notify(location->name().c_str());
        } else {
-               session->request_locate (session->current_end_frame());
+               session->request_locate (session->current_end_sample());
                notify("END ");
        }
 }