diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2007-08-07 21:37:29 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2007-08-07 21:37:29 +0000 |
commit | e2af5ea6fc846990aaa7646e0ccaccb943ca576e (patch) | |
tree | 5b44b8f9b2a88bc3d9e5e9ef8e18ee749e653082 /libs/ardour/session_midi.cc | |
parent | 84df4c61afb6dbc1b2c16a59c3efbba33fe76060 (diff) |
fix unconditional use of MMC object
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@2266 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/session_midi.cc')
-rw-r--r-- | libs/ardour/session_midi.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libs/ardour/session_midi.cc b/libs/ardour/session_midi.cc index b6396a6bca..8af45eef0f 100644 --- a/libs/ardour/session_midi.cc +++ b/libs/ardour/session_midi.cc @@ -398,7 +398,7 @@ Session::setup_midi_control () mmc_buffer[0] = 0xf0; // SysEx mmc_buffer[1] = 0x7f; // Real Time SysEx ID for MMC - mmc_buffer[2] = mmc->send_device_id(); + mmc_buffer[2] = (mmc ? mmc->send_device_id() : 0x7f); mmc_buffer[3] = 0x6; // MCC /* Set up the qtr frame message */ @@ -932,6 +932,8 @@ Session::deliver_mmc (MIDI::MachineControl::Command cmd, nframes_t where) return; } + cerr << "delivering MMC, ID = " << (int) mmc_buffer[2] << endl; + mmc_buffer[nbytes++] = cmd; // cerr << "delivering MMC, cmd = " << hex << (int) cmd << dec << endl; |