diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2006-05-18 16:44:07 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2006-05-18 16:44:07 +0000 |
commit | 00a106197a69ec1f5edcbc546b8971cba5730e2c (patch) | |
tree | b2bf7738d4565bcf75a22f2643fd13367d0a75f2 /libs/surfaces/tranzport | |
parent | 69aef2cd91ff6cc5f0f633eb49ff71be920b7a4b (diff) |
moved OSC into libardour
git-svn-id: svn://localhost/trunk/ardour2@510 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/surfaces/tranzport')
-rw-r--r-- | libs/surfaces/tranzport/tranzport_control_protocol.cc | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/libs/surfaces/tranzport/tranzport_control_protocol.cc b/libs/surfaces/tranzport/tranzport_control_protocol.cc index 7857744b17..5a4c4fc385 100644 --- a/libs/surfaces/tranzport/tranzport_control_protocol.cc +++ b/libs/surfaces/tranzport/tranzport_control_protocol.cc @@ -297,14 +297,14 @@ TranzportControlProtocol::show_meter () void TranzportControlProtocol::show_transport_time () { - jack_nframes_t where = session.transport_frame(); + jack_nframes_t where = session->transport_frame(); if (where != last_where) { char buf[5]; SMPTE_Time smpte; - session.smpte_time (where, smpte); + session->smpte_time (where, smpte); if (smpte.negative) { sprintf (buf, "-%02ld:", smpte.hours); @@ -698,25 +698,25 @@ TranzportControlProtocol::update_state () /* global */ - if (session.get_auto_loop()) { + if (session->get_auto_loop()) { pending_lights[LightLoop] = true; } else { pending_lights[LightLoop] = false; } - if (session.get_punch_in() || session.get_punch_out()) { + if (session->get_punch_in() || session->get_punch_out()) { pending_lights[LightPunch] = true; } else { pending_lights[LightPunch] = false; } - if (session.get_record_enabled()) { + if (session->get_record_enabled()) { pending_lights[LightRecord] = true; } else { pending_lights[LightRecord] = false; } - if (session.soloing ()) { + if (session->soloing ()) { pending_lights[LightAnysolo] = true; } else { pending_lights[LightAnysolo] = false; @@ -1037,7 +1037,7 @@ TranzportControlProtocol::button_event_tracksolo_press (bool shifted) } if (shifted) { - session.set_all_solo (!session.soloing()); + session->set_all_solo (!session->soloing()); } else { route_set_soloed (0, !route_get_soloed (0)); } @@ -1357,16 +1357,16 @@ void TranzportControlProtocol::shuttle () { if (_datawheel < WheelDirectionThreshold) { - if (session.transport_speed() < 0) { - session.request_transport_speed (1.0); + if (session->transport_speed() < 0) { + session->request_transport_speed (1.0); } else { - session.request_transport_speed (session.transport_speed() + 0.1); + session->request_transport_speed (session->transport_speed() + 0.1); } } else { - if (session.transport_speed() > 0) { - session.request_transport_speed (-1.0); + if (session->transport_speed() > 0) { + session->request_transport_speed (-1.0); } else { - session.request_transport_speed (session.transport_speed() - 0.1); + session->request_transport_speed (session->transport_speed() - 0.1); } } } |