diff options
author | Robin Gareus <robin@gareus.org> | 2020-03-30 06:14:41 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2020-03-30 15:20:54 +0200 |
commit | 23baeee829359bd8ed2e9090743ad82188425f26 (patch) | |
tree | c91a44e86e1fb9e377dea52a83f190826721fc59 /libs/ardour/audioengine.cc | |
parent | 591c219349ad9f36984f9bd650115c8ddb83c069 (diff) |
Tweak engine startup, initial silence
This can help when running with very low latency and the
initial process callback is [indirectly] expensive.
E.g. load a heavy session the a RPi4, initial setup can pull
in a lot of data, which blocks the bus.
In particular with the ALSA backend this can lead to poll timeout
which effectively stops the backend.
Diffstat (limited to 'libs/ardour/audioengine.cc')
-rw-r--r-- | libs/ardour/audioengine.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/ardour/audioengine.cc b/libs/ardour/audioengine.cc index c0350a7802..a4ee9dc587 100644 --- a/libs/ardour/audioengine.cc +++ b/libs/ardour/audioengine.cc @@ -728,7 +728,7 @@ AudioEngine::set_session (Session *s) SessionHandlePtr::set_session (s); if (_session) { - _init_countdown = std::max (8, (int)(_backend->sample_rate () / _backend->buffer_size ()) / 2); + _init_countdown = std::max (8, (int)(_backend->sample_rate () / _backend->buffer_size ()) / 4); } } |