mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-05 22:34:56 +01:00
Fix export commandline tool, wait for latency updates #9915
This commit is contained in:
parent
6fdd603f5c
commit
7cb8140b3a
1 changed files with 7 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue