From ae62e9443b5fd05454a80311dda6dd3dcc69baeb Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Wed, 11 Jul 2012 16:00:40 +0000 Subject: [PATCH] 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 --- libs/ardour/globals.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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();