summaryrefslogtreecommitdiff
path: root/libs/ardour/session_transport.cc
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2006-06-16 02:28:41 +0000
committerDavid Robillard <d@drobilla.net>2006-06-16 02:28:41 +0000
commit6a1f2919f20286b7d51de8e9c02107ab42f8e763 (patch)
tree5cd9cabfb69b5bd6d6a0239d3b22479a601aa961 /libs/ardour/session_transport.cc
parente13e84677a9213fb54d641483a7fcf5ecf2feb0d (diff)
Preliminary MMC sending
git-svn-id: svn://localhost/ardour2/branches/midi@614 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/session_transport.cc')
-rw-r--r--libs/ardour/session_transport.cc15
1 files changed, 6 insertions, 9 deletions
diff --git a/libs/ardour/session_transport.cc b/libs/ardour/session_transport.cc
index c05f8f4054..30a23a70cd 100644
--- a/libs/ardour/session_transport.cc
+++ b/libs/ardour/session_transport.cc
@@ -147,6 +147,11 @@ void
Session::realtime_stop (bool abort)
{
/* assume that when we start, we'll be moving forwards */
+
+ // FIXME: where should this really be? [DR]
+ //send_full_time_code();
+ deliver_mmc (MIDI::MachineControl::cmdStop, _transport_frame);
+ deliver_mmc (MIDI::MachineControl::cmdLocate, _transport_frame);
if (_transport_speed < 0.0f) {
post_transport_work = PostTransportWork (post_transport_work | PostTransportStop | PostTransportReverse);
@@ -384,12 +389,6 @@ Session::non_realtime_stop (bool abort)
last_stop_frame = _transport_frame;
- /* FIXME
- send_full_time_code();
- deliver_mmc (MIDI::MachineControl::cmdStop, 0);
- deliver_mmc (MIDI::MachineControl::cmdLocate, _transport_frame);
- */
-
if (did_record) {
/* XXX its a little odd that we're doing this here
@@ -885,9 +884,7 @@ Session::actually_start_transport ()
(*i)->realtime_set_speed ((*i)->speed(), true);
}
- /* FIXME
- send_mmc_in_another_thread (MIDI::MachineControl::cmdDeferredPlay, 0);
- */
+ deliver_mmc(MIDI::MachineControl::cmdDeferredPlay, _transport_frame);
TransportStateChange (); /* EMIT SIGNAL */
}