mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 23:05:04 +01:00
Use rubberband 3.0 API if available
This commit is contained in:
parent
a009307a3d
commit
be096edd8c
1 changed files with 5 additions and 0 deletions
|
|
@ -1899,8 +1899,13 @@ AudioTrigger::audio_run (BufferSet& bufs, samplepos_t start_sample, samplepos_t
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if (!got_stretcher_padding) {
|
if (!got_stretcher_padding) {
|
||||||
|
#ifdef HAVE_RUBBERBAND_3_0_0
|
||||||
|
to_pad = _stretcher->getPreferredStartPad();
|
||||||
|
to_drop = _stretcher->getStartDelay();
|
||||||
|
#else
|
||||||
to_pad = _stretcher->getLatency();
|
to_pad = _stretcher->getLatency();
|
||||||
to_drop = to_pad;
|
to_drop = to_pad;
|
||||||
|
#endif
|
||||||
got_stretcher_padding = true;
|
got_stretcher_padding = true;
|
||||||
DEBUG_TRACE (DEBUG::Triggers, string_compose ("%1 requires %2 padding %3\n", name(), to_pad));
|
DEBUG_TRACE (DEBUG::Triggers, string_compose ("%1 requires %2 padding %3\n", name(), to_pad));
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue