diff options
author | Robin Gareus <robin@gareus.org> | 2019-11-14 21:37:14 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2019-11-14 21:37:14 +0100 |
commit | 32cfed62530035bebacbb59603bd0813b918dd3e (patch) | |
tree | 0d91ac0f9c6a74dcc5f3141c57bd68ec1c310024 /libs/ardour/lv2_plugin.cc | |
parent | 6481437f0a7e46941a7e998c160f0fdb8337f84b (diff) |
Relax LV2 time-info re-transmission condition
Allow beat (quarter-note count) to drift by 1/100 beat before re-sync.
This prevents excessive re-transmissions
Diffstat (limited to 'libs/ardour/lv2_plugin.cc')
-rw-r--r-- | libs/ardour/lv2_plugin.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/ardour/lv2_plugin.cc b/libs/ardour/lv2_plugin.cc index 514496e788..bf30353b6b 100644 --- a/libs/ardour/lv2_plugin.cc +++ b/libs/ardour/lv2_plugin.cc @@ -2740,7 +2740,7 @@ LV2Plugin::connect_and_run(BufferSet& bufs, if (start != _next_cycle_start || speed != _next_cycle_speed || time_scale != _prev_time_scale || - rint (1000 * beatpos) != rint(1000 * _next_cycle_beat) || + rint (100 * beatpos) != rint(100 * _next_cycle_beat) || bpm != _current_bpm) { // Transport or Tempo has changed, write position at cycle start write_position(&_impl->forge, _ev_buffers[port_index], |