const std::string cpu_arch = _("32-bit"); // ARM, ALPHA,..
#endif
std::string codename = CODENAME;
- if (ARDOUR::Profile->get_mixbus() || ARDOUR::Profile->get_trx()) {
+ if (ARDOUR::Profile->get_mixbus()) {
codename = "";
}
msg.run ();
return;
}
- if (Profile->get_trx()) {
- roll = trx_record_enable_all_tracks ();
- }
_session->maybe_enable_record ();
if (roll) {
transport_roll ();
_session->master_out() &&
_session->master_out()->n_outputs().n(DataType::AUDIO) > 0) {
- if (!ARDOUR::Profile->get_trx()) {
- editor_meter = new LevelMeterHBox(_session);
- editor_meter->set_meter (_session->master_out()->shared_peak_meter().get());
- editor_meter->clear_meters();
- editor_meter->setup_meters (30, 10, 6);
- editor_meter->show();
-
- editor_meter_table.set_spacings(3);
- editor_meter_table.attach(*editor_meter, 0,1, 0,1, FILL, FILL);
- editor_meter_table.attach(editor_meter_peak_display, 0,1, 1,2, FILL, EXPAND|FILL);
-
- editor_meter->show();
- editor_meter_peak_display.show();
- }
+ editor_meter = new LevelMeterHBox(_session);
+ editor_meter->set_meter (_session->master_out()->shared_peak_meter().get());
+ editor_meter->clear_meters();
+ editor_meter->setup_meters (30, 10, 6);
+ editor_meter->show();
+
+ editor_meter_table.set_spacings(3);
+ editor_meter_table.attach(*editor_meter, 0,1, 0,1, FILL, FILL);
+ editor_meter_table.attach(editor_meter_peak_display, 0,1, 1,2, FILL, EXPAND|FILL);
+
+ editor_meter->show();
+ editor_meter_peak_display.show();
ArdourMeter::ResetAllPeakDisplays.connect (sigc::mem_fun(*this, &ARDOUR_UI::reset_peak_display));
ArdourMeter::ResetRoutePeakDisplays.connect (sigc::mem_fun(*this, &ARDOUR_UI::reset_route_peak_display));
return false;
}
-
void
ARDOUR_UI::setup_profile ()
{
Profile->set_small_screen ();
}
- if (g_getenv ("TRX")) {
- Profile->set_trx ();
- }
-
if (g_getenv ("MIXBUS")) {
Profile->set_mixbus ();
}
meter_label.hide();
meter_label.set_no_show_all();
- if (Profile->get_trx()) {
- mark_label.set_text (_("Markers"));
- }
mark_label.set_name ("EditorRulerLabel");
mark_label.set_size_request (-1, (int)timebar_height);
mark_label.set_alignment (1.0, 0.5);
HBox* h = manage (new HBox);
_group_tabs = new EditorGroupTabs (this);
- if (!ARDOUR::Profile->get_trx()) {
- h->pack_start (*_group_tabs, PACK_SHRINK);
- }
+ h->pack_start (*_group_tabs, PACK_SHRINK);
h->pack_start (edit_controls_vbox);
controls_layout.add (*h);
_summary_hbox.pack_start (*summary_frame, true, true);
_summary_hbox.pack_start (*summary_arrows_right, false, false);
- if (!ARDOUR::Profile->get_trx()) {
- editor_summary_pane.add (_summary_hbox);
- }
-
+ editor_summary_pane.add (_summary_hbox);
edit_pane.set_check_divider_position (true);
edit_pane.add (editor_summary_pane);
- if (!ARDOUR::Profile->get_trx()) {
- _editor_list_vbox.pack_start (*_time_info_box, false, false, 0);
- _editor_list_vbox.pack_start (_the_notebook);
- edit_pane.add (_editor_list_vbox);
- edit_pane.set_child_minsize (_editor_list_vbox, 30); /* rough guess at width of notebook tabs */
- }
+ _editor_list_vbox.pack_start (*_time_info_box, false, false, 0);
+ _editor_list_vbox.pack_start (_the_notebook);
+ edit_pane.add (_editor_list_vbox);
+ edit_pane.set_child_minsize (_editor_list_vbox, 30); /* rough guess at width of notebook tabs */
edit_pane.set_drag_cursor (*_cursors->expand_left_right);
editor_summary_pane.set_drag_cursor (*_cursors->expand_up_down);
mouse_mode_size_group->add_widget (nudge_backward_button);
mouse_mode_hbox->set_spacing (2);
-
- if (!ARDOUR::Profile->get_trx()) {
- mouse_mode_hbox->pack_start (smart_mode_button, false, false);
- }
+ mouse_mode_hbox->pack_start (smart_mode_button, false, false);
mouse_mode_hbox->pack_start (mouse_move_button, false, false);
mouse_mode_hbox->pack_start (mouse_select_button, false, false);
mouse_mode_hbox->pack_start (mouse_audition_button, false, false);
}
- if (!ARDOUR::Profile->get_trx()) {
- mouse_mode_hbox->pack_start (mouse_timefx_button, false, false);
- mouse_mode_hbox->pack_start (mouse_draw_button, false, false);
- mouse_mode_hbox->pack_start (mouse_content_button, false, false);
- }
+ mouse_mode_hbox->pack_start (mouse_timefx_button, false, false);
+ mouse_mode_hbox->pack_start (mouse_draw_button, false, false);
+ mouse_mode_hbox->pack_start (mouse_content_button, false, false);
mouse_mode_vbox->pack_start (*mouse_mode_hbox);
edit_mode_selector.set_name ("mouse mode button");
- if (!ARDOUR::Profile->get_trx()) {
- mode_box->pack_start (edit_mode_selector, false, false);
- mode_box->pack_start (*(manage (new ArdourVSpacer ())), false, false, 3);
- mode_box->pack_start (edit_point_selector, false, false);
- mode_box->pack_start (*(manage (new ArdourVSpacer ())), false, false, 3);
- }
+ mode_box->pack_start (edit_mode_selector, false, false);
+ mode_box->pack_start (*(manage (new ArdourVSpacer ())), false, false, 3);
+ mode_box->pack_start (edit_point_selector, false, false);
+ mode_box->pack_start (*(manage (new ArdourVSpacer ())), false, false, 3);
mode_box->pack_start (*mouse_mode_box, false, false);
if (ARDOUR::Profile->get_mixbus()) {
_zoom_box.pack_start (zoom_preset_selector, false, false);
- } else if (ARDOUR::Profile->get_trx()) {
- mode_box->pack_start (zoom_out_button, false, false);
- mode_box->pack_start (zoom_in_button, false, false);
} else {
_zoom_box.pack_start (zoom_out_button, false, false);
_zoom_box.pack_start (zoom_in_button, false, false);
if (ARDOUR::Profile->get_mixbus()) {
_track_box.pack_start (visible_tracks_selector);
- } else if (ARDOUR::Profile->get_trx()) {
- _track_box.pack_start (tav_shrink_button);
- _track_box.pack_start (tav_expand_button);
} else {
_track_box.pack_start (visible_tracks_selector);
_track_box.pack_start (tav_shrink_button);
ebox_vpacker.show();
toolbar_hbox.pack_start (*mode_box, false, false);
-
- if (!ARDOUR::Profile->get_trx()) {
-
- toolbar_hbox.pack_start (*(manage (new ArdourVSpacer ())), false, false, 3);
-
- toolbar_hbox.pack_start (snap_box, false, false);
-
- toolbar_hbox.pack_start (*(manage (new ArdourVSpacer ())), false, false, 3);
-
- toolbar_hbox.pack_start (*nudge_box, false, false);
-
- toolbar_hbox.pack_end (_zoom_box, false, false, 2);
-
- toolbar_hbox.pack_end (*(manage (new ArdourVSpacer ())), false, false, 3);
-
- toolbar_hbox.pack_end (_track_box, false, false);
-
- }
+ toolbar_hbox.pack_start (*(manage (new ArdourVSpacer ())), false, false, 3);
+ toolbar_hbox.pack_start (snap_box, false, false);
+ toolbar_hbox.pack_start (*(manage (new ArdourVSpacer ())), false, false, 3);
+ toolbar_hbox.pack_start (*nudge_box, false, false);
+ toolbar_hbox.pack_end (_zoom_box, false, false, 2);
+ toolbar_hbox.pack_end (*(manage (new ArdourVSpacer ())), false, false, 3);
+ toolbar_hbox.pack_end (_track_box, false, false);
toolbar_hbox.show_all ();
}
no_ruler_shown_update = true;
- if (Profile->get_trx()) {
- ruler_marker_action->set_active (true);
- ruler_meter_action->set_active (false);
- ruler_tempo_action->set_active (false);
- ruler_range_action->set_active (false);
- ruler_loop_punch_action->set_active (false);
- ruler_loop_punch_action->set_active (false);
- ruler_bbt_action->set_active (true);
- ruler_cd_marker_action->set_active (false);
- ruler_timecode_action->set_active (false);
- ruler_minsec_action->set_active (true);
- } else {
- ruler_marker_action->set_active (true);
- ruler_meter_action->set_active (true);
- ruler_tempo_action->set_active (true);
- ruler_range_action->set_active (true);
- ruler_loop_punch_action->set_active (true);
- ruler_loop_punch_action->set_active (true);
- ruler_bbt_action->set_active (true);
- ruler_cd_marker_action->set_active (true);
- ruler_timecode_action->set_active (true);
- ruler_minsec_action->set_active (false);
- }
+ ruler_marker_action->set_active (true);
+ ruler_meter_action->set_active (true);
+ ruler_tempo_action->set_active (true);
+ ruler_range_action->set_active (true);
+ ruler_loop_punch_action->set_active (true);
+ ruler_loop_punch_action->set_active (true);
+ ruler_bbt_action->set_active (true);
+ ruler_cd_marker_action->set_active (true);
+ ruler_timecode_action->set_active (true);
+ ruler_minsec_action->set_active (false);
ruler_video_action->set_active (false);
xjadeo_proc_action->set_active (false);
solo_iso_table.set_homogeneous (true);
solo_iso_table.set_spacings (2);
- if (!ARDOUR::Profile->get_trx()) {
- solo_iso_table.attach (*solo_isolated_led, 0, 1, 0, 1);
- solo_iso_table.attach (*solo_safe_led, 1, 2, 0, 1);
- }
+ solo_iso_table.attach (*solo_isolated_led, 0, 1, 0, 1);
+ solo_iso_table.attach (*solo_safe_led, 1, 2, 0, 1);
solo_iso_table.show ();
rec_mon_table.set_homogeneous (true);
rec_mon_table.resize (1, 3);
rec_mon_table.attach (*monitor_input_button, 1, 2, 0, 1);
rec_mon_table.attach (*monitor_disk_button, 2, 3, 0, 1);
- } else if (!ARDOUR::Profile->get_trx()) {
- rec_mon_table.attach (*monitor_input_button, 1, 2, 0, 1);
- rec_mon_table.attach (*monitor_disk_button, 1, 2, 1, 2);
}
rec_mon_table.show ();
number_label.set_tweaks (ArdourButton::OccasionalText);
global_vpacker.set_spacing (2);
- if (!ARDOUR::Profile->get_trx()) {
- global_vpacker.pack_start (width_hide_box, Gtk::PACK_SHRINK);
- global_vpacker.pack_start (name_button, Gtk::PACK_SHRINK);
- global_vpacker.pack_start (input_button_box, Gtk::PACK_SHRINK);
- global_vpacker.pack_start (_invert_button_box, Gtk::PACK_SHRINK);
- global_vpacker.pack_start (processor_box, true, true);
- }
+ global_vpacker.pack_start (width_hide_box, Gtk::PACK_SHRINK);
+ global_vpacker.pack_start (name_button, Gtk::PACK_SHRINK);
+ global_vpacker.pack_start (input_button_box, Gtk::PACK_SHRINK);
+ global_vpacker.pack_start (_invert_button_box, Gtk::PACK_SHRINK);
+ global_vpacker.pack_start (processor_box, true, true);
global_vpacker.pack_start (panners, Gtk::PACK_SHRINK);
global_vpacker.pack_start (rec_mon_table, Gtk::PACK_SHRINK);
global_vpacker.pack_start (solo_iso_table, Gtk::PACK_SHRINK);
global_vpacker.pack_start (gpm, Gtk::PACK_SHRINK);
global_vpacker.pack_start (control_slave_ui, Gtk::PACK_SHRINK);
global_vpacker.pack_start (bottom_button_table, Gtk::PACK_SHRINK);
- if (!ARDOUR::Profile->get_trx()) {
- global_vpacker.pack_start (output_button, Gtk::PACK_SHRINK);
- global_vpacker.pack_start (_comment_button, Gtk::PACK_SHRINK);
- } else {
- global_vpacker.pack_start (name_button, Gtk::PACK_SHRINK);
- }
+ global_vpacker.pack_start (output_button, Gtk::PACK_SHRINK);
+ global_vpacker.pack_start (_comment_button, Gtk::PACK_SHRINK);
#ifndef MIXBUS
//add a spacer underneath the master bus;
if (ARDOUR::Profile->get_mixbus()) {
rec_mon_table.attach (*monitor_input_button, 1, 2, 0, 1);
rec_mon_table.attach (*monitor_disk_button, 2, 3, 0, 1);
- } else if (ARDOUR::Profile->get_trx()) {
- rec_mon_table.attach (*monitor_input_button, 1, 2, 0, 2);
} else {
rec_mon_table.attach (*monitor_input_button, 1, 2, 0, 1);
rec_mon_table.attach (*monitor_disk_button, 1, 2, 1, 2);
/* we own this port (named after the program) */
- /* Hide scene ports from non-Tracks Live builds */
- if (!ARDOUR::Profile->get_trx()) {
- if (p.find (_("Scene ")) != string::npos) {
- ++s;
- continue;
- }
+ /* Hide scene ports for now */
+ if (p.find (_("Scene ")) != string::npos) {
+ ++s;
+ continue;
}
extra_program[t].push_back (p);
controls_table.attach (route_group_button, 2, 3, 2, 3, Gtk::SHRINK, Gtk::SHRINK, 0, 0);
controls_table.attach (gm.get_gain_slider(), 3, 5, 2, 3, Gtk::FILL|Gtk::EXPAND, Gtk::FILL|Gtk::EXPAND, 1, 0);
}
- else if (!ARDOUR::Profile->get_trx()) {
- controls_table.attach (route_group_button, 4, 5, 2, 3, Gtk::SHRINK, Gtk::SHRINK, 0, 0);
- controls_table.attach (gm.get_gain_slider(), 0, 2, 2, 3, Gtk::FILL|Gtk::EXPAND, Gtk::FILL|Gtk::EXPAND, 1, 0);
- }
set_tooltip(*solo_button,_("Solo"));
set_tooltip(*mute_button,_("Mute"));
if (ARDOUR::Profile->get_mixbus()) {
controls_table.attach (automation_button, 1, 2, 2, 3, Gtk::SHRINK, Gtk::SHRINK);
}
- else if (!ARDOUR::Profile->get_trx()) {
- controls_table.attach (automation_button, 3, 4, 2, 3, Gtk::SHRINK, Gtk::SHRINK);
- }
if (is_track() && track()->mode() == ARDOUR::Normal) {
if (ARDOUR::Profile->get_mixbus()) {
controls_table.attach (playlist_button, 0, 1, 2, 3, Gtk::SHRINK, Gtk::SHRINK);
}
- else if (!ARDOUR::Profile->get_trx()) {
- controls_table.attach (playlist_button, 2, 3, 2, 3, Gtk::SHRINK, Gtk::SHRINK);
- }
}
_y_position = -1;
enum Element {
SmallScreen,
SinglePackage,
- Trx,
Mixbus,
LastElement,
};
void set_small_screen() { bits[SmallScreen] = true; }
bool get_small_screen() const { return bits[SmallScreen]; }
- bool get_trx() const { return bits[Trx]; }
- void set_trx() { bits[Trx] = true; }
-
bool get_mixbus() const { return bits[Mixbus]; }
void set_mixbus() { bits[Mixbus] = true; }
_mode = Normal;
}
- if (Profile->get_trx() && _mode == Destructive) {
- /* Tracks does not support destructive tracks and trying to
- handle it as a normal track would be wrong.
- */
- error << string_compose (_("%1: this session uses destructive tracks, which are not supported"), PROGRAM_NAME) << endmsg;
- return -1;
- }
-
if (Track::set_state (node, version)) {
return -1;
}
// Add session as default selection
Location * session_range;
- if (Profile->get_trx()) {
- session_range = (session.get_play_loop () ? session.locations()->auto_loop_location () : session.locations()->session_range_location());
- } else {
- session_range = session.locations()->session_range_location();
+ if ((session_range = session.locations()->session_range_location()) != 0) {
+ return false;
}
- if (!session_range) { return false; }
-
ExportTimespanPtr timespan = handler->add_timespan();
timespan->set_name (session_range->name());
timespan->set_range_id (session_range->id().to_s());
connection_legal_c.disconnect ();
- // it's not required for TracksLive, as long as TracksLive's session does all the connections when it's being loaded
- if (!Profile->get_trx() ) {
- ret = make_connections (*pending_state_node, pending_state_node_version, pending_state_node_in);
- }
+ ret = make_connections (*pending_state_node, pending_state_node_version, pending_state_node_in);
delete pending_state_node;
pending_state_node = 0;
{
boost::shared_ptr<Ports> p = ports.reader ();
- if (!Profile->get_trx()) {
- /* re-establish connections */
+ /* re-establish connections */
- DEBUG_TRACE (DEBUG::Ports, string_compose ("reconnect %1 ports\n", p->size()));
+ DEBUG_TRACE (DEBUG::Ports, string_compose ("reconnect %1 ports\n", p->size()));
- for (Ports::iterator i = p->begin(); i != p->end(); ++i) {
- i->second->reconnect ();
- }
+ for (Ports::iterator i = p->begin(); i != p->end(); ++i) {
+ i->second->reconnect ();
}
return 0;
return;
}
- // Waves Tracks: Do not connect master bas for Tracks if AutoConnectMaster option is not set
- // In this case it means "Multi Out" output mode
- if (ARDOUR::Profile->get_trx() && !(Config->get_output_auto_connect() & AutoConnectMaster) ) {
- return;
- }
-
/* if requested auto-connect the outputs to the first N physical ports.
*/
void
Session::remove_monitor_section ()
{
- if (!_monitor_out || Profile->get_trx()) {
+ if (!_monitor_out) {
return;
}
return;
}
- if (_monitor_out || !_master_out || Profile->get_trx()) {
+ if (_monitor_out || !_master_out) {
return;
}
{
/* Process lock should be held by the caller.*/
- if (!_monitor_out || Profile->get_trx()) {
+ if (!_monitor_out) {
return;
}
{
switch (t) {
case DataType::AUDIO:
- if (Profile->get_trx()) {
- return _("Track ");
- } else {
- return _("Audio ");
- }
+ return _("Audio ");
break;
case DataType::MIDI:
failed:
if (!new_routes.empty()) {
StateProtector sp (this);
- if (Profile->get_trx()) {
- add_routes (new_routes, false, false, false, order);
- } else {
- add_routes (new_routes, true, true, false, order);
- }
+ add_routes (new_routes, true, true, false, order);
if (instrument) {
for (RouteList::iterator r = new_routes.begin(); r != new_routes.end(); ++r) {
track->set_strict_io (true);
}
- if (ARDOUR::Profile->get_trx ()) {
- // TRACKS considers it's not a USE CASE, it's
- // a piece of behavior of the session model:
- //
- // Gain for a newly created route depends on
- // the current output_auto_connect mode:
- //
- // 0 for Stereo Out mode
- // 0 Multi Out mode
- if (Config->get_output_auto_connect() & AutoConnectMaster) {
- track->gain_control()->set_value (dB_to_coefficient (0), Controllable::NoGroup);
- }
- }
-
BOOST_MARK_TRACK (track);
{
failed:
if (!new_routes.empty()) {
StateProtector sp (this);
- if (Profile->get_trx()) {
- add_routes (new_routes, false, false, false, order);
- } else {
- add_routes (new_routes, true, true, false, order);
- }
+ add_routes (new_routes, true, true, false, order);
}
return ret;
failure:
if (!ret.empty()) {
StateProtector sp (this);
- if (Profile->get_trx()) {
- add_routes (ret, false, false, false, order);
- } else if (flags == PresentationInfo::FoldbackBus) {
+
+ if (flags == PresentationInfo::FoldbackBus) {
add_routes (ret, false, false, true, order); // no autoconnect
} else {
add_routes (ret, false, true, true, order); // autoconnect // outputs only
out:
if (!ret.empty()) {
StateProtector sp (this);
- if (Profile->get_trx()) {
- add_routes (ret, false, false, false, insert_at);
- } else {
- add_routes (ret, true, true, false, insert_at);
- }
+
+ add_routes (ret, true, true, false, insert_at);
}
IO::enable_connecting ();
ostringstream sstr;
const string ext = native_header_format_extension (config.get_native_file_header_format(), DataType::AUDIO);
- if (Profile->get_trx() && destructive) {
- sstr << 'T';
- sstr << setfill ('0') << setw (4) << cnt;
- sstr << legalized_base;
- } else {
- sstr << legalized_base;
+ sstr << legalized_base;
- if (take_required || related_exists) {
- sstr << '-';
- sstr << cnt;
- }
+ if (take_required || related_exists) {
+ sstr << '-';
+ sstr << cnt;
}
if (nchan == 2) {
for (uint32_t i = ar.output_start.get(*t); i < route->n_outputs().get(*t); ++i) {
string port;
- /* Waves Tracks:
- * do not create new connections if we reached the limit of physical outputs
- * in Multi Out mode
- */
- if (!(Config->get_output_auto_connect() & AutoConnectMaster) &&
- ARDOUR::Profile->get_trx () &&
- ar.output_offset.get(*t) == nphysical_out ) {
- break;
- }
-
if ((*t) == DataType::MIDI && (Config->get_output_auto_connect() & AutoConnectPhysical)) {
port = physoutputs[(out_offset.get(*t) + i) % nphysical_out];
} else if ((*t) == DataType::AUDIO && (Config->get_output_auto_connect() & AutoConnectMaster)) {
void
Session::mmc_record_strobe (MIDI::MachineControl &/*mmc*/)
{
- if (Profile->get_trx()) {
-
- /* In Tracks Live, there is no concept of punch, so we just
- treat RecordStrobe like RecordPause. This violates the MMC
- specification.
- */
-
- if (Config->get_mmc_control()) {
- maybe_enable_record();
- }
- return;
- }
-
if (!Config->get_mmc_control() || (_step_editors > 0)) {
return;
}
_path = canonical_path(fullpath);
/* is it new ? */
- if (Profile->get_trx() ) {
- // Waves TracksLive has a usecase of session replacement with a new one.
- // We should check session state file (<session_name>.ardour) existance
- // to determine if the session is new or not
- string full_session_name = Glib::build_filename( fullpath, _name );
- full_session_name += statefile_suffix;
-
- _is_new = !Glib::file_test (full_session_name, Glib::FileTest (G_FILE_TEST_EXISTS | G_FILE_TEST_IS_DIR));
- } else {
- _is_new = !Glib::file_test (_path, Glib::FileTest (G_FILE_TEST_EXISTS | G_FILE_TEST_IS_DIR));
- }
+ _is_new = !Glib::file_test (_path, Glib::FileTest (G_FILE_TEST_EXISTS | G_FILE_TEST_IS_DIR));
/* finish initialization that can't be done in a normal C++ constructor
definition.
_writable = exists_and_writable (_path);
if (!session_template.empty()) {
- string in_path = (ARDOUR::Profile->get_trx () ? session_template : session_template_dir_to_file (session_template));
+ string in_path = session_template_dir_to_file (session_template);
FILE* in = g_fopen (in_path.c_str(), "rb");
_is_new = false;
- if (!ARDOUR::Profile->get_trx()) {
- /* Copy plugin state files from template to new session */
- std::string template_plugins = Glib::build_filename (session_template, X_("plugins"));
- copy_recurse (template_plugins, plugins_dir ());
- }
+ /* Copy plugin state files from template to new session */
+ std::string template_plugins = Glib::build_filename (session_template, X_("plugins"));
+ copy_recurse (template_plugins, plugins_dir ());
return 0;
}
- if (Profile->get_trx()) {
-
- /* set initial start + end point : ARDOUR::Session::session_end_shift long.
- * Remember that this is a brand new session. Sessions
- * loaded from saved state will get this range from the saved state.
- */
-
- set_session_range_location (0, 0);
-
- /* Initial loop location, from absolute zero, length 10 seconds */
-
- Location* loc = new Location (*this, 0, 10.0 * _engine.sample_rate(), _("Loop"), Location::IsAutoLoop, 0);
- _locations->add (loc, true);
- set_auto_loop_location (loc);
- }
-
_state_of_the_state = Clean;
/* set up Master Out and Monitor Out if necessary */
loc.add (range);
XMLNode& locations_state = loc.get_state();
- if (ARDOUR::Profile->get_trx() && _locations) {
- // For tracks we need stored the Auto Loop Range and all MIDI markers.
- for (Locations::LocationList::const_iterator i = _locations->list ().begin (); i != _locations->list ().end (); ++i) {
- if ((*i)->is_mark () || (*i)->is_auto_loop ()) {
- locations_state.add_child_nocopy ((*i)->get_state ());
- }
- }
- }
node->add_child_nocopy (locations_state);
/* adding a location above will have marked the session
template_dir_path = template_name;
}
- if (!ARDOUR::Profile->get_trx()) {
- if (!replace_existing && Glib::file_test (template_dir_path, Glib::FILE_TEST_EXISTS)) {
- warning << string_compose(_("Template \"%1\" already exists - new version not created"),
- template_dir_path) << endmsg;
- return -2;
- }
+ if (!replace_existing && Glib::file_test (template_dir_path, Glib::FILE_TEST_EXISTS)) {
+ warning << string_compose(_("Template \"%1\" already exists - new version not created"),
+ template_dir_path) << endmsg;
+ return -2;
+ }
- if (g_mkdir_with_parents (template_dir_path.c_str(), 0755) != 0) {
- error << string_compose(_("Could not create directory for Session template\"%1\" (%2)"),
- template_dir_path, g_strerror (errno)) << endmsg;
- return -1;
- }
+ if (g_mkdir_with_parents (template_dir_path.c_str(), 0755) != 0) {
+ error << string_compose(_("Could not create directory for Session template\"%1\" (%2)"),
+ template_dir_path, g_strerror (errno)) << endmsg;
+ return -1;
}
/* file to write */
std::string template_file_path;
- if (ARDOUR::Profile->get_trx()) {
- template_file_path = template_name;
+ if (absolute_path) {
+ template_file_path = Glib::build_filename (template_dir_path, Glib::path_get_basename (template_dir_path) + template_suffix);
} else {
- if (absolute_path) {
- template_file_path = Glib::build_filename (template_dir_path, Glib::path_get_basename (template_dir_path) + template_suffix);
- } else {
- template_file_path = Glib::build_filename (template_dir_path, template_name + template_suffix);
- }
+ template_file_path = Glib::build_filename (template_dir_path, template_name + template_suffix);
}
SessionSaveUnderway (); /* EMIT SIGNAL */
(!auto_play_legal || !config.get_auto_play()) &&
!with_roll &&
!(synced_to_engine() && play_loop) &&
- (!Profile->get_trx() || !(config.get_external_sync() && !synced_to_engine()))) {
+ !(config.get_external_sync() && !synced_to_engine())) {
realtime_stop (false, true); // XXX paul - check if the 2nd arg is really correct
transport_was_stopped = true;
_flags = Flag (_flags | Destructive);
}
- if (Profile->get_trx() && (_flags & Destructive)) {
- error << string_compose (_("%1: this session uses destructive tracks, which are not supported"), PROGRAM_NAME) << endmsg;
- return -1;
- }
-
if (version < 3000) {
/* a source with an XML node must necessarily already exist,
and therefore cannot be removable/writable etc. etc.; 2.X
DiskIOProcessor::Flag dflags = DiskIOProcessor::Recordable;
- if (_mode == Destructive && !Profile->get_trx()) {
+ if (_mode == Destructive) {
dflags = DiskIOProcessor::Flag (dflags | DiskIOProcessor::Destructive);
}
Panner1in2out::Panner1in2out (boost::shared_ptr<Pannable> p)
: Panner (p)
{
- if (!Profile->get_trx () ) {
- if (!_pannable->has_state ()) {
- _pannable->pan_azimuth_control->set_value (0.5, Controllable::NoGroup);
- }
- }
+ if (!_pannable->has_state ()) {
+ _pannable->pan_azimuth_control->set_value (0.5, Controllable::NoGroup);
+ }
update ();