summaryrefslogtreecommitdiff
path: root/libs/ardour/session_state.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2013-09-14 16:17:24 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2013-09-14 16:17:24 -0400
commit6b23417ae0a93e5ff26477a62e3abcbcaa5efd64 (patch)
treec73a4cf40c15d849e805afdbe915fc86274ff77b /libs/ardour/session_state.cc
parentdaa31ccc23f50bf3648e30380f4806141945f0a0 (diff)
move creation of Graph till after we have the engine running, since we need access to the backend
Diffstat (limited to 'libs/ardour/session_state.cc')
-rw-r--r--libs/ardour/session_state.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/libs/ardour/session_state.cc b/libs/ardour/session_state.cc
index 7914b21565..e847ba45ce 100644
--- a/libs/ardour/session_state.cc
+++ b/libs/ardour/session_state.cc
@@ -177,13 +177,6 @@ Session::pre_engine_init (string fullpath)
set_history_depth (Config->get_history_depth());
- if (how_many_dsp_threads () > 1) {
- /* For now, only create the graph if we are using >1 DSP threads, as
- it is a bit slower than the old code with 1 thread.
- */
- _process_graph.reset (new Graph (*this));
- }
-
/* default: assume simple stereo speaker configuration */
_speakers->setup_default_speakers (2);
@@ -217,6 +210,13 @@ Session::post_engine_init ()
set_block_size (_engine.samples_per_cycle());
set_frame_rate (_engine.sample_rate());
+ if (how_many_dsp_threads () > 1) {
+ /* For now, only create the graph if we are using >1 DSP threads, as
+ it is a bit slower than the old code with 1 thread.
+ */
+ _process_graph.reset (new Graph (*this));
+ }
+
n_physical_outputs = _engine.n_physical_outputs ();
n_physical_inputs = _engine.n_physical_inputs ();