Fix buffer-overflow when vari-speeding
authorRobin Gareus <robin@gareus.org>
Thu, 21 Nov 2019 22:37:31 +0000 (23:37 +0100)
committerRobin Gareus <robin@gareus.org>
Thu, 21 Nov 2019 22:37:31 +0000 (23:37 +0100)
commit512c27d27770f6d27b8e10ac606302d784919c35
treecbc7d5e4f855f9d79d42e8385d9820df01fccd43
parent6ee21fb77e12ca11f0fc29af9b34a1b64501e5a1
Fix buffer-overflow when vari-speeding

Session::process() can call split-cycle which offset the
buffer pointers. When vari-speeding at speed > 1.0, the
engine also splits the cycle every n_samples, to not exceed
the configured buffersize. This needs to take prior buffer
offsets into account.
libs/ardour/audioengine.cc