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;
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() ?!
::exit (EXIT_FAILURE);
}
+ engine->set_input_channels (256);
+ engine->set_output_channels (256);
+
float sr;
SampleFormat sf;
namespace SessionUtils {
/** initialize libardour */
- void init ();
+ void init (bool print_log = true);
/** clean up, stop Processing Engine
* @param s Session to close (may me NULL)