From 54bc1018d51eedab16da6b2148a145b445af0b03 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Thu, 23 Apr 2020 05:19:01 +0200 Subject: Fix MIDI auditioning The Auditioner is not part of the session route-list and the auditioner route's I/O latency is never updated. Session::process_audition() does not handle pre-roll either, so it need to be zeroed, otherwise Route::roll skips samples. This has lead to initial samples being skipped, IFF the auditioner's output-port had non-zero latency. Since private port-latencies are usually only set for routes in the route-list, and _remaining_latency_preroll is reset at transport-stop, this *usually* worked... Last but not least, MIDI notes need to be resolved when seeking. --- libs/ardour/ardour/auditioner.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libs/ardour/ardour') diff --git a/libs/ardour/ardour/auditioner.h b/libs/ardour/ardour/auditioner.h index 624df0c0d1..6ca51fc0d6 100644 --- a/libs/ardour/ardour/auditioner.h +++ b/libs/ardour/ardour/auditioner.h @@ -91,6 +91,8 @@ public: void set_audition_synth_info(PluginInfoPtr in) { audition_synth_info = in; } + samplecnt_t output_latency () const { return 0; } + private: PluginInfoPtr audition_synth_info; //we will use this to create a new synth on-the-fly each time an audition is requested -- cgit v1.2.3