mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 08:36:32 +01:00
Fix MIDI Capture alignment
When recording audio, simply not writing to the ringbuffer offsets the recording accordingly. When recording MIDI, absolute timestamps are used, so the recording has to be offset by the accumulated difference. Previously this went unnoticed because tests using the Dummy backend the accumulated offset never exceeded 1 cycle.
This commit is contained in:
parent
cdd48926d1
commit
b326b8e462
1 changed files with 2 additions and 0 deletions
|
|
@ -484,6 +484,8 @@ DiskWriter::run (BufferSet& bufs, samplepos_t start_sample, samplepos_t end_samp
|
|||
*/
|
||||
if (rec_nframes) {
|
||||
_accumulated_capture_offset += rec_offset;
|
||||
} else {
|
||||
_accumulated_capture_offset += nframes;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue