Fix MIDI capture alignment
authorRobin Gareus <robin@gareus.org>
Sat, 18 Jan 2020 14:52:28 +0000 (15:52 +0100)
committerRobin Gareus <robin@gareus.org>
Sat, 18 Jan 2020 14:52:28 +0000 (15:52 +0100)
commit3fe87b9fa1417cfcf6636ff9bf4c8c2abcb6f796
tree4d08b4a509f4259835549e524fee4f40df7547dc
parent7c8072b0b7500bd8b1dc75dd42142bb76a51ea89
Fix MIDI capture alignment

This fixes Audio/MIDI alignment when recording normally.
Loop and/or Punch-in recording is still not aligned properly
(both audio and MIDI).

_accumulated_capture_offset is initialized once, accumulated
offsets (rec_nframes) are kept, even when ::check_record_status()
is called multiple times.
libs/ardour/disk_writer.cc