diff options
author | Robin Gareus <robin@gareus.org> | 2020-05-07 17:22:40 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2020-05-07 20:42:53 +0200 |
commit | d9caa7fd9a55e5b21a35971f17e26d8c26838a6b (patch) | |
tree | a43073baca894a5659237751c0edd548f19cec4d /libs/ardour/audio_port.cc | |
parent | 9604e64c35bfd13bcf22a29f60db3fbc26411a80 (diff) |
Prepare timecode-generator direct-out
Generator ports (like TransportMaster slaves), should not be
re-sampled when vari-speeding. Instead the Timecode/Clock should
directly use the engine-speed.
For this to happen, they need to be special-cased: no re-sampler
latency, direct access to engine-buffers.
Diffstat (limited to 'libs/ardour/audio_port.cc')
-rw-r--r-- | libs/ardour/audio_port.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/ardour/audio_port.cc b/libs/ardour/audio_port.cc index 6d0a90a187..ddbb2238df 100644 --- a/libs/ardour/audio_port.cc +++ b/libs/ardour/audio_port.cc @@ -136,7 +136,7 @@ AudioPort::get_audio_buffer (pframes_t nframes) Sample* addr; - if (!externally_connected ()) { + if (!externally_connected () || 0 != (flags() & TransportSyncPort)) { addr = (Sample *) port_engine.get_buffer (_port_handle, nframes); } else { /* _data was read and resampled as necessary in ::cycle_start */ |