13
0

Zero capture-offset regardless of data-type

_accumulated_capture_offset is only used for MIDI,
however this is helpful when debugging.
Previously audio kept accumulating the offset indefinitely.
This commit is contained in:
Robin Gareus 2020-01-18 15:49:22 +01:00
parent 33f71677eb
commit 7c8072b0b7
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -1082,9 +1082,9 @@ DiskWriter::reset_write_sources (bool mark_write_complete, bool /*force*/)
int
DiskWriter::use_new_write_source (DataType dt, uint32_t n)
{
if (dt == DataType::MIDI) {
_accumulated_capture_offset = 0;
if (dt == DataType::MIDI) {
_midi_write_source.reset();
try {