mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 00:34:59 +01:00
session-utils tweaks
* emulate 256 i/o (don't loose connections) * allow "silent" start
This commit is contained in:
parent
8e4c6f7f5a
commit
ea85217437
2 changed files with 11 additions and 6 deletions
|
|
@ -86,7 +86,7 @@ class MyEventLoop : public sigc::trackable, public EventLoop
|
||||||
static MyEventLoop *event_loop;
|
static MyEventLoop *event_loop;
|
||||||
|
|
||||||
void
|
void
|
||||||
SessionUtils::init ()
|
SessionUtils::init (bool print_log)
|
||||||
{
|
{
|
||||||
if (!ARDOUR::init (false, true, localedir)) {
|
if (!ARDOUR::init (false, true, localedir)) {
|
||||||
cerr << "Ardour failed to initialize\n" << endl;
|
cerr << "Ardour failed to initialize\n" << endl;
|
||||||
|
|
@ -97,10 +97,12 @@ SessionUtils::init ()
|
||||||
EventLoop::set_event_loop_for_thread (event_loop);
|
EventLoop::set_event_loop_for_thread (event_loop);
|
||||||
SessionEvent::create_per_thread_pool ("util", 512);
|
SessionEvent::create_per_thread_pool ("util", 512);
|
||||||
|
|
||||||
|
if (print_log) {
|
||||||
test_receiver.listen_to (error);
|
test_receiver.listen_to (error);
|
||||||
test_receiver.listen_to (info);
|
test_receiver.listen_to (info);
|
||||||
test_receiver.listen_to (fatal);
|
test_receiver.listen_to (fatal);
|
||||||
test_receiver.listen_to (warning);
|
test_receiver.listen_to (warning);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO return NULL, rather than exit() ?!
|
// TODO return NULL, rather than exit() ?!
|
||||||
|
|
@ -113,6 +115,9 @@ static Session * _load_session (string dir, string state)
|
||||||
::exit (EXIT_FAILURE);
|
::exit (EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
engine->set_input_channels (256);
|
||||||
|
engine->set_output_channels (256);
|
||||||
|
|
||||||
float sr;
|
float sr;
|
||||||
SampleFormat sf;
|
SampleFormat sf;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ class TestReceiver : public Receiver
|
||||||
namespace SessionUtils {
|
namespace SessionUtils {
|
||||||
|
|
||||||
/** initialize libardour */
|
/** initialize libardour */
|
||||||
void init ();
|
void init (bool print_log = true);
|
||||||
|
|
||||||
/** clean up, stop Processing Engine
|
/** clean up, stop Processing Engine
|
||||||
* @param s Session to close (may me NULL)
|
* @param s Session to close (may me NULL)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue