diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2012-07-11 16:00:40 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2012-07-11 16:00:40 +0000 |
commit | ae62e9443b5fd05454a80311dda6dd3dcc69baeb (patch) | |
tree | 405d1c49d7f428253cd9de3949b16cd5396469d1 /libs | |
parent | 8d6d3c309d75f5280bf32cffcab271a287827c01 (diff) |
try to fix crashes due to not-enough-per-thread-buffers by just using more of them
git-svn-id: svn://localhost/ardour2/branches/3.0@13029 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs')
-rw-r--r-- | libs/ardour/globals.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libs/ardour/globals.cc b/libs/ardour/globals.cc index 91536b1879..8d7b0ae0f5 100644 --- a/libs/ardour/globals.cc +++ b/libs/ardour/globals.cc @@ -299,7 +299,11 @@ ARDOUR::init (bool use_windows_vst, bool try_optimization) (void) PluginManager::instance(); ProcessThread::init (); - BufferManager::init (hardware_concurrency() + 1); + /* the + 4 is a bit of a handwave. i don't actually know + how many more per-thread buffer sets we need above + the h/w concurrency, but its definitely > 1 more. + */ + BufferManager::init (hardware_concurrency() + 4); PannerManager::instance().discover_panners(); |