Fix flow for latency measurements that needs an engine stop.
authorRobin Gareus <robin@gareus.org>
Thu, 27 Apr 2017 17:43:34 +0000 (19:43 +0200)
committerRobin Gareus <robin@gareus.org>
Thu, 27 Apr 2017 17:43:34 +0000 (19:43 +0200)
commitc25640f3364478e91c135936644f264f143f1f43
tree1816a56a6bb3ccaa853b421cc335b271dc33a518
parent410f94cf1b9c647c869d1cdd2b7e6fc415ebe0d0
Fix flow for latency measurements that needs an engine stop.

Make AudioEngine::prepare_for_latency_measurement() idempotent. There are
multple calls (when switching to the measurement page and every time
a measurement is preformed).

Also the Stopped() signal is important for the Dialog state regardless
if the engine was stopped for latency or not.
libs/ardour/audioengine.cc