diff options
author | Robin Gareus <robin@gareus.org> | 2016-06-02 22:02:37 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2016-06-02 22:25:41 +0200 |
commit | ea8521743717a0027f497c416ab3f08fc407a406 (patch) | |
tree | 8798c1002d1031d2abb89b8ab12af4f298c17799 /session_utils/common.cc | |
parent | 8e4c6f7f5ad0e887b3341810b243812494736368 (diff) |
session-utils tweaks
* emulate 256 i/o (don't loose connections)
* allow "silent" start
Diffstat (limited to 'session_utils/common.cc')
-rw-r--r-- | session_utils/common.cc | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/session_utils/common.cc b/session_utils/common.cc index 9353c760bd..2abfb32d3c 100644 --- a/session_utils/common.cc +++ b/session_utils/common.cc @@ -86,7 +86,7 @@ class MyEventLoop : public sigc::trackable, public EventLoop static MyEventLoop *event_loop; void -SessionUtils::init () +SessionUtils::init (bool print_log) { if (!ARDOUR::init (false, true, localedir)) { cerr << "Ardour failed to initialize\n" << endl; @@ -97,10 +97,12 @@ SessionUtils::init () EventLoop::set_event_loop_for_thread (event_loop); SessionEvent::create_per_thread_pool ("util", 512); - test_receiver.listen_to (error); - test_receiver.listen_to (info); - test_receiver.listen_to (fatal); - test_receiver.listen_to (warning); + if (print_log) { + test_receiver.listen_to (error); + test_receiver.listen_to (info); + test_receiver.listen_to (fatal); + test_receiver.listen_to (warning); + } } // TODO return NULL, rather than exit() ?! @@ -113,6 +115,9 @@ static Session * _load_session (string dir, string state) ::exit (EXIT_FAILURE); } + engine->set_input_channels (256); + engine->set_output_channels (256); + float sr; SampleFormat sf; |