const std::string& fullpath,
const std::string& snapshot_name,
BusProfile* bus_profile = 0,
- std::string mix_template = "",
- bool with_midi_ui = true);
+ std::string mix_template = "");
virtual ~Session ();
void auto_loop_changed (Location *);
void first_stage_init (std::string path, std::string snapshot_name);
- int second_stage_init (bool with_midi_ui = true);
+ int second_stage_init ();
void remove_empty_sounds ();
void setup_midi_control ();
g_atomic_int_set (&m_meter_exit, 0);
if (connect_to_jack (client_name, session_uuid)) {
- _instance = 0;
throw NoBackendAvailable ();
}
const string& fullpath,
const string& snapshot_name,
BusProfile* bus_profile,
- string mix_template,
- bool with_midi_ui)
+ string mix_template)
: _engine (eng)
, _target_transport_speed (0.0)
, _requested_return_frame (-1)
}
}
- if (second_stage_init (with_midi_ui)) {
+ if (second_stage_init ()) {
destroy ();
throw failed_constructor ();
}
}
int
-Session::second_stage_init (bool with_midi_ui)
+Session::second_stage_init ()
{
AudioFileSource::set_peak_dir (_session_dir->peak_path().to_string());
return -1;
}
- if (with_midi_ui) {
- if (start_midi_thread ()) {
- return -1;
- }
+ if (start_midi_thread ()) {
+ return -1;
}
setup_midi_machine_control ();
test_receiver.listen_to (fatal);
test_receiver.listen_to (warning);
- AudioEngine* engine = 0;
- try {
- engine = new AudioEngine ("test", "");
- } catch (...) {
- CPPUNIT_ASSERT (false);
- }
-
+ AudioEngine* engine = new AudioEngine ("test", "");
MIDI::Manager::create (engine->jack ());
CPPUNIT_ASSERT (engine->start () == 0);
- _session = new Session (*engine, test_session_path, "playlist_layering_test", 0, "", false);
+ _session = new Session (*engine, test_session_path, "playlist_layering_test");
engine->set_session (_session);
_playlist = PlaylistFactory::create (DataType::AUDIO, *_session, "test");
conf.env.append_value('CXXFLAGS', '-DDEBUG_RT_ALLOC')
conf.env.append_value('LINKFLAGS', '-ldl')
- print 'bar'
if conf.env['DEBUG_DENORMAL_EXCEPTION']:
- print 'foo'
conf.env.append_value('CFLAGS', '-DDEBUG_DENORMAL_EXCEPTION')
conf.env.append_value('CXXFLAGS', '-DDEBUG_DENORMAL_EXCEPTION')