From e460208d227312f1451db7db3f8ece835c797f45 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Wed, 9 Feb 2011 13:11:14 +0000 Subject: [PATCH] export graph uses as many threads as there are cores, not the number of DSP threads git-svn-id: svn://localhost/ardour2/branches/3.0@8796 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/export_graph_builder.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/ardour/export_graph_builder.cc b/libs/ardour/export_graph_builder.cc index 916a4ad265..9a6a9da81b 100644 --- a/libs/ardour/export_graph_builder.cc +++ b/libs/ardour/export_graph_builder.cc @@ -20,6 +20,7 @@ #include "ardour/utils.h" #include "pbd/filesystem.h" +#include "pbd/cpus.h" using namespace AudioGrapher; using std::string; @@ -28,7 +29,7 @@ namespace ARDOUR { ExportGraphBuilder::ExportGraphBuilder (Session const & session) : session (session) - , thread_pool (how_many_dsp_threads()) + , thread_pool (hardware_concurrency()) { process_buffer_frames = session.engine().frames_per_cycle(); }