diff options
author | Robin Gareus <robin@gareus.org> | 2017-10-01 03:03:44 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2017-10-01 03:03:44 +0200 |
commit | 05ab7a46b5cf4482ca999625da7405d47fd700a6 (patch) | |
tree | e5caae0434d5fa192ae6593bce112a89679d2d6e /libs/ardour/midi_track.cc | |
parent | 0431ed3d3e1d91a19f9ce382a5531f71449b2d0c (diff) |
Fix recording MIDI
- Fix API call to add region(midi_region) -- set count to "1"
- Forward DataRecorded() signal
- remove botched merge/rebase"
a4a87f56 accidentally brought back code from old-destructive API
which was removed in af103cf3 and 08c13007
There is no per track NonLayered record mode anymore, it's session global.
- set can_record correctly to not accidentally clear last capture sources
for cont'd recording (toggle track's rec-arm)
Diffstat (limited to 'libs/ardour/midi_track.cc')
-rw-r--r-- | libs/ardour/midi_track.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libs/ardour/midi_track.cc b/libs/ardour/midi_track.cc index 20faa80bc8..e6734ed08c 100644 --- a/libs/ardour/midi_track.cc +++ b/libs/ardour/midi_track.cc @@ -98,9 +98,17 @@ MidiTrack::init () _disk_writer->set_note_mode (_note_mode); _disk_reader->reset_tracker (); + _disk_writer->DataRecorded.connect_same_thread (*this, boost::bind (&MidiTrack::data_recorded, this, _1)); + return 0; } +void +MidiTrack::data_recorded (boost::weak_ptr<MidiSource> src) +{ + DataRecorded (src); /* EMIT SIGNAL */ +} + bool MidiTrack::can_be_record_safe () { |