export graph uses as many threads as there are cores, not the number of DSP threads
authorPaul Davis <paul@linuxaudiosystems.com>
Wed, 9 Feb 2011 13:11:14 +0000 (13:11 +0000)
committerPaul Davis <paul@linuxaudiosystems.com>
Wed, 9 Feb 2011 13:11:14 +0000 (13:11 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@8796 d708f5d6-7413-0410-9779-e7cbd77b26cf

libs/ardour/export_graph_builder.cc

index 916a4ad265597c958542731556335ca92eedcc68..9a6a9da81b1565f3ff596e1b36e65da3015671c9 100644 (file)
@@ -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();
 }