summaryrefslogtreecommitdiff
path: root/libs/ardour/export_graph_builder.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2011-02-09 13:01:23 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2011-02-09 13:01:23 +0000
commit08e01b85c8f49c1b9dd7af18ba10a0897701545b (patch)
treeb3209b1f243e913e98a2a2994199e6cedf4a866a /libs/ardour/export_graph_builder.cc
parenta2354db3230d0e9408b455ca1c0eab361a33b319 (diff)
make the export graph use the same number of threads as the DSP graph
git-svn-id: svn://localhost/ardour2/branches/3.0@8795 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/export_graph_builder.cc')
-rw-r--r--libs/ardour/export_graph_builder.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/ardour/export_graph_builder.cc b/libs/ardour/export_graph_builder.cc
index 1180d5eace..916a4ad265 100644
--- a/libs/ardour/export_graph_builder.cc
+++ b/libs/ardour/export_graph_builder.cc
@@ -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();
}