make the export graph use the same number of threads as the DSP graph
authorPaul Davis <paul@linuxaudiosystems.com>
Wed, 9 Feb 2011 13:01:23 +0000 (13:01 +0000)
committerPaul Davis <paul@linuxaudiosystems.com>
Wed, 9 Feb 2011 13:01:23 +0000 (13:01 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@8795 d708f5d6-7413-0410-9779-e7cbd77b26cf

libs/ardour/export_graph_builder.cc

index 1180d5eace5776c6cc77f0a31f4d0cf4d7f7fb04..916a4ad265597c958542731556335ca92eedcc68 100644 (file)
@@ -17,6 +17,7 @@
 #include "ardour/export_format_specification.h"
 #include "ardour/export_timespan.h"
 #include "ardour/sndfile_helpers.h"
+#include "ardour/utils.h"
 
 #include "pbd/filesystem.h"
 
@@ -27,7 +28,7 @@ namespace ARDOUR {
 
 ExportGraphBuilder::ExportGraphBuilder (Session const & session)
   : session (session)
-  , thread_pool (4) // FIXME thread amount to cores amount
+  , thread_pool (how_many_dsp_threads()) 
 {
        process_buffer_frames = session.engine().frames_per_cycle();
 }