const std::string& fullpath,
const std::string& snapshot_name,
BusProfile* bus_profile = 0,
- std::string mix_template = "");
+ std::string mix_template = "",
+ bool with_midi_ui = true);
virtual ~Session ();
void auto_loop_changed (Location *);
void first_stage_init (std::string path, std::string snapshot_name);
- int second_stage_init ();
+ int second_stage_init (bool with_midi_ui = true);
void remove_empty_sounds ();
void setup_midi_control ();
test_receiver.listen_to (fatal);
test_receiver.listen_to (warning);
- AudioEngine* engine = new AudioEngine ("test", "");
+ AudioEngine* engine = 0;
+ try {
+ engine = new AudioEngine ("test", "");
+ } catch (...) {
+ CPPUNIT_ASSERT (false);
+ }
+
MIDI::Manager::create (engine->jack ());
CPPUNIT_ASSERT (engine->start () == 0);
- _session = new Session (*engine, test_session_path, "playlist_layering_test");
+ _session = new Session (*engine, test_session_path, "playlist_layering_test", 0, "", false);
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')
+
if opt.universal:
if not Options.options.nocarbon:
conf.env.append_value('CFLAGS', ["-arch", "i386", "-arch", "ppc"])
help='Build with debugging for the STL')
opt.add_option('--rt-alloc-debug', action='store_true', default=False, dest='rt_alloc_debug',
help='Build with debugging for memory allocation in the real-time thread')
+ opt.add_option('--denormal-exception', action='store_true', default=False, dest='denormal_exception',
+ help='Raise a floating point exception if a denormal is detected')
opt.add_option('--test', action='store_true', default=False, dest='build_tests',
help="Build unit tests")
opt.add_option('--tranzport', action='store_true', default=False, dest='tranzport',
conf.env['PROGRAM_NAME'] = opts.program_name
if opts.rt_alloc_debug:
conf.define('DEBUG_RT_ALLOC', 1)
+ conf.env['DEBUG_RT_ALLOC'] = True
+ if opts.denormal_exception:
+ conf.define('DEBUG_DENORMAL_EXCEPTION', 1)
+ conf.env['DEBUG_DENORMAL_EXCEPTION'] = True
if not conf.is_defined('HAVE_CPPUNIT'):
conf.env['BUILD_TESTS'] = False
write_config_text('AU state support', conf.is_defined('AU_STATE_SUPPORT'))
write_config_text('Build target', conf.env['build_target'])
write_config_text('CoreAudio', conf.is_defined('HAVE_COREAUDIO'))
+ write_config_text('Debug RT allocations', conf.is_defined('DEBUG_RT_ALLOC'))
+ write_config_text('Denormal exceptions', conf.is_defined('DEBUG_DENORMAL_EXCEPTION'))
write_config_text('FLAC', conf.is_defined('HAVE_FLAC'))
write_config_text('FPU optimization', opts.fpu_optimization)
write_config_text('Freedesktop files', opts.freedesktop)