From 021ff2044ae0514241ee895c6ee7dc5c3ea4aa2d Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Mon, 24 Feb 2020 22:21:18 +0100 Subject: [PATCH] Zero x-run count after session-load and engine restart --- libs/ardour/session_state.cc | 3 +++ libs/ardour/session_transport.cc | 1 + 2 files changed, 4 insertions(+) diff --git a/libs/ardour/session_state.cc b/libs/ardour/session_state.cc index ce9c7aa625..5ffe951cfc 100644 --- a/libs/ardour/session_state.cc +++ b/libs/ardour/session_state.cc @@ -415,6 +415,7 @@ Session::post_engine_init () } } + reset_xrun_count (); return 0; } @@ -436,6 +437,7 @@ Session::session_loaded () BootMessage (_("Filling playback buffers")); force_locate (_transport_sample, MustStop); + reset_xrun_count (); } string @@ -665,6 +667,7 @@ Session::create (const string& session_template, BusProfile const * bus_profile) } set_clean (); + reset_xrun_count (); return 0; } diff --git a/libs/ardour/session_transport.cc b/libs/ardour/session_transport.cc index 80d4cda0ea..b48079318a 100644 --- a/libs/ardour/session_transport.cc +++ b/libs/ardour/session_transport.cc @@ -1807,6 +1807,7 @@ void Session::engine_running () { _transport_fsm->start (); + reset_xrun_count (); } void