Fix export commandline tool, wait for latency updates #9915

This commit is contained in:
Robin Gareus 2025-04-10 05:44:20 +02:00
parent 6fdd603f5c
commit 7cb8140b3a
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04

View file

@ -31,6 +31,7 @@
#include "ardour/audioengine.h"
#include "ardour/filename_extensions.h"
#include "ardour/lua_api.h"
#include "ardour/types.h"
#include "common.h"
@ -169,6 +170,12 @@ static Session * _load_session (string dir, string state)
Session* session = new Session (*engine, dir, state);
engine->set_session (session);
/* Wait for a few cycle, apply latency compensation, push port info back to backend.
* Theoretically 1 cycle is sufficient, but we can warm up caches, too ..
*/
ARDOUR::LuaAPI::wait_for_process_callback (4, 1000);
return session;
}