goodbye Profile->...trx

This commit is contained in:
Paul Davis 2019-09-25 13:02:31 -06:00
parent 5ec5bc4523
commit 468731c14b
21 changed files with 98 additions and 315 deletions

View file

@ -567,7 +567,7 @@ About::About ()
const std::string cpu_arch = _("32-bit"); // ARM, ALPHA,.. const std::string cpu_arch = _("32-bit"); // ARM, ALPHA,..
#endif #endif
std::string codename = CODENAME; std::string codename = CODENAME;
if (ARDOUR::Profile->get_mixbus() || ARDOUR::Profile->get_trx()) { if (ARDOUR::Profile->get_mixbus()) {
codename = ""; codename = "";
} }

View file

@ -1748,9 +1748,6 @@ ARDOUR_UI::transport_record (bool roll)
msg.run (); msg.run ();
return; return;
} }
if (Profile->get_trx()) {
roll = trx_record_enable_all_tracks ();
}
_session->maybe_enable_record (); _session->maybe_enable_record ();
if (roll) { if (roll) {
transport_roll (); transport_roll ();

View file

@ -234,20 +234,18 @@ ARDOUR_UI::set_session (Session *s)
_session->master_out() && _session->master_out() &&
_session->master_out()->n_outputs().n(DataType::AUDIO) > 0) { _session->master_out()->n_outputs().n(DataType::AUDIO) > 0) {
if (!ARDOUR::Profile->get_trx()) { editor_meter = new LevelMeterHBox(_session);
editor_meter = new LevelMeterHBox(_session); editor_meter->set_meter (_session->master_out()->shared_peak_meter().get());
editor_meter->set_meter (_session->master_out()->shared_peak_meter().get()); editor_meter->clear_meters();
editor_meter->clear_meters(); editor_meter->setup_meters (30, 10, 6);
editor_meter->setup_meters (30, 10, 6); editor_meter->show();
editor_meter->show();
editor_meter_table.set_spacings(3); editor_meter_table.set_spacings(3);
editor_meter_table.attach(*editor_meter, 0,1, 0,1, FILL, FILL); 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_table.attach(editor_meter_peak_display, 0,1, 1,2, FILL, EXPAND|FILL);
editor_meter->show(); editor_meter->show();
editor_meter_peak_display.show(); editor_meter_peak_display.show();
}
ArdourMeter::ResetAllPeakDisplays.connect (sigc::mem_fun(*this, &ARDOUR_UI::reset_peak_display)); 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)); ArdourMeter::ResetRoutePeakDisplays.connect (sigc::mem_fun(*this, &ARDOUR_UI::reset_route_peak_display));

View file

@ -112,7 +112,6 @@ ARDOUR_UI::first_idle ()
return false; return false;
} }
void void
ARDOUR_UI::setup_profile () ARDOUR_UI::setup_profile ()
{ {
@ -120,10 +119,6 @@ ARDOUR_UI::setup_profile ()
Profile->set_small_screen (); Profile->set_small_screen ();
} }
if (g_getenv ("TRX")) {
Profile->set_trx ();
}
if (g_getenv ("MIXBUS")) { if (g_getenv ("MIXBUS")) {
Profile->set_mixbus (); Profile->set_mixbus ();
} }

View file

@ -533,9 +533,6 @@ Editor::Editor ()
meter_label.hide(); meter_label.hide();
meter_label.set_no_show_all(); meter_label.set_no_show_all();
if (Profile->get_trx()) {
mark_label.set_text (_("Markers"));
}
mark_label.set_name ("EditorRulerLabel"); mark_label.set_name ("EditorRulerLabel");
mark_label.set_size_request (-1, (int)timebar_height); mark_label.set_size_request (-1, (int)timebar_height);
mark_label.set_alignment (1.0, 0.5); mark_label.set_alignment (1.0, 0.5);
@ -592,9 +589,7 @@ Editor::Editor ()
HBox* h = manage (new HBox); HBox* h = manage (new HBox);
_group_tabs = new EditorGroupTabs (this); _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); h->pack_start (edit_controls_vbox);
controls_layout.add (*h); controls_layout.add (*h);
@ -716,18 +711,13 @@ Editor::Editor ()
_summary_hbox.pack_start (*summary_frame, true, true); _summary_hbox.pack_start (*summary_frame, true, true);
_summary_hbox.pack_start (*summary_arrows_right, false, false); _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.set_check_divider_position (true);
edit_pane.add (editor_summary_pane); 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 (*_time_info_box, false, false, 0); _editor_list_vbox.pack_start (_the_notebook);
_editor_list_vbox.pack_start (_the_notebook); edit_pane.add (_editor_list_vbox);
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_child_minsize (_editor_list_vbox, 30); /* rough guess at width of notebook tabs */
}
edit_pane.set_drag_cursor (*_cursors->expand_left_right); edit_pane.set_drag_cursor (*_cursors->expand_left_right);
editor_summary_pane.set_drag_cursor (*_cursors->expand_up_down); editor_summary_pane.set_drag_cursor (*_cursors->expand_up_down);
@ -3098,10 +3088,7 @@ Editor::setup_toolbar ()
mouse_mode_size_group->add_widget (nudge_backward_button); mouse_mode_size_group->add_widget (nudge_backward_button);
mouse_mode_hbox->set_spacing (2); mouse_mode_hbox->set_spacing (2);
mouse_mode_hbox->pack_start (smart_mode_button, false, false);
if (!ARDOUR::Profile->get_trx()) {
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_move_button, false, false);
mouse_mode_hbox->pack_start (mouse_select_button, false, false); mouse_mode_hbox->pack_start (mouse_select_button, false, false);
@ -3111,11 +3098,9 @@ Editor::setup_toolbar ()
mouse_mode_hbox->pack_start (mouse_audition_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_timefx_button, false, false); mouse_mode_hbox->pack_start (mouse_draw_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_content_button, false, false);
}
mouse_mode_vbox->pack_start (*mouse_mode_hbox); mouse_mode_vbox->pack_start (*mouse_mode_hbox);
@ -3126,12 +3111,10 @@ Editor::setup_toolbar ()
edit_mode_selector.set_name ("mouse mode button"); 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 (edit_mode_selector, false, false); mode_box->pack_start (*(manage (new ArdourVSpacer ())), false, false, 3);
mode_box->pack_start (*(manage (new ArdourVSpacer ())), false, false, 3); mode_box->pack_start (edit_point_selector, false, false);
mode_box->pack_start (edit_point_selector, false, false); mode_box->pack_start (*(manage (new ArdourVSpacer ())), false, false, 3);
mode_box->pack_start (*(manage (new ArdourVSpacer ())), false, false, 3);
}
mode_box->pack_start (*mouse_mode_box, false, false); mode_box->pack_start (*mouse_mode_box, false, false);
@ -3164,9 +3147,6 @@ Editor::setup_toolbar ()
if (ARDOUR::Profile->get_mixbus()) { if (ARDOUR::Profile->get_mixbus()) {
_zoom_box.pack_start (zoom_preset_selector, false, false); _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 { } else {
_zoom_box.pack_start (zoom_out_button, false, false); _zoom_box.pack_start (zoom_out_button, false, false);
_zoom_box.pack_start (zoom_in_button, false, false); _zoom_box.pack_start (zoom_in_button, false, false);
@ -3197,9 +3177,6 @@ Editor::setup_toolbar ()
if (ARDOUR::Profile->get_mixbus()) { if (ARDOUR::Profile->get_mixbus()) {
_track_box.pack_start (visible_tracks_selector); _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 { } else {
_track_box.pack_start (visible_tracks_selector); _track_box.pack_start (visible_tracks_selector);
_track_box.pack_start (tav_shrink_button); _track_box.pack_start (tav_shrink_button);
@ -3254,24 +3231,13 @@ Editor::setup_toolbar ()
ebox_vpacker.show(); ebox_vpacker.show();
toolbar_hbox.pack_start (*mode_box, false, false); toolbar_hbox.pack_start (*mode_box, false, false);
toolbar_hbox.pack_start (*(manage (new ArdourVSpacer ())), false, false, 3);
if (!ARDOUR::Profile->get_trx()) { toolbar_hbox.pack_start (snap_box, false, false);
toolbar_hbox.pack_start (*(manage (new ArdourVSpacer ())), false, false, 3);
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_start (snap_box, false, false); 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 (*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 (); toolbar_hbox.show_all ();
} }

View file

@ -630,29 +630,16 @@ Editor::register_actions ()
no_ruler_shown_update = true; no_ruler_shown_update = true;
if (Profile->get_trx()) { ruler_marker_action->set_active (true);
ruler_marker_action->set_active (true); ruler_meter_action->set_active (true);
ruler_meter_action->set_active (false); ruler_tempo_action->set_active (true);
ruler_tempo_action->set_active (false); ruler_range_action->set_active (true);
ruler_range_action->set_active (false); ruler_loop_punch_action->set_active (true);
ruler_loop_punch_action->set_active (false); ruler_loop_punch_action->set_active (true);
ruler_loop_punch_action->set_active (false); ruler_bbt_action->set_active (true);
ruler_bbt_action->set_active (true); ruler_cd_marker_action->set_active (true);
ruler_cd_marker_action->set_active (false); ruler_timecode_action->set_active (true);
ruler_timecode_action->set_active (false); ruler_minsec_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_video_action->set_active (false); ruler_video_action->set_active (false);
xjadeo_proc_action->set_active (false); xjadeo_proc_action->set_active (false);

View file

@ -220,10 +220,8 @@ MixerStrip::init ()
solo_iso_table.set_homogeneous (true); solo_iso_table.set_homogeneous (true);
solo_iso_table.set_spacings (2); 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_isolated_led, 0, 1, 0, 1); solo_iso_table.attach (*solo_safe_led, 1, 2, 0, 1);
solo_iso_table.attach (*solo_safe_led, 1, 2, 0, 1);
}
solo_iso_table.show (); solo_iso_table.show ();
rec_mon_table.set_homogeneous (true); rec_mon_table.set_homogeneous (true);
@ -233,9 +231,6 @@ MixerStrip::init ()
rec_mon_table.resize (1, 3); rec_mon_table.resize (1, 3);
rec_mon_table.attach (*monitor_input_button, 1, 2, 0, 1); rec_mon_table.attach (*monitor_input_button, 1, 2, 0, 1);
rec_mon_table.attach (*monitor_disk_button, 2, 3, 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 (); rec_mon_table.show ();
@ -313,13 +308,11 @@ MixerStrip::init ()
number_label.set_tweaks (ArdourButton::OccasionalText); number_label.set_tweaks (ArdourButton::OccasionalText);
global_vpacker.set_spacing (2); global_vpacker.set_spacing (2);
if (!ARDOUR::Profile->get_trx()) { global_vpacker.pack_start (width_hide_box, Gtk::PACK_SHRINK);
global_vpacker.pack_start (width_hide_box, Gtk::PACK_SHRINK); global_vpacker.pack_start (name_button, 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 (input_button_box, Gtk::PACK_SHRINK); global_vpacker.pack_start (_invert_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 (processor_box, true, true);
}
global_vpacker.pack_start (panners, Gtk::PACK_SHRINK); global_vpacker.pack_start (panners, Gtk::PACK_SHRINK);
global_vpacker.pack_start (rec_mon_table, 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 (solo_iso_table, Gtk::PACK_SHRINK);
@ -327,12 +320,8 @@ MixerStrip::init ()
global_vpacker.pack_start (gpm, 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 (control_slave_ui, Gtk::PACK_SHRINK);
global_vpacker.pack_start (bottom_button_table, 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 (output_button, Gtk::PACK_SHRINK); global_vpacker.pack_start (_comment_button, Gtk::PACK_SHRINK);
global_vpacker.pack_start (_comment_button, Gtk::PACK_SHRINK);
} else {
global_vpacker.pack_start (name_button, Gtk::PACK_SHRINK);
}
#ifndef MIXBUS #ifndef MIXBUS
//add a spacer underneath the master bus; //add a spacer underneath the master bus;
@ -667,8 +656,6 @@ MixerStrip::set_route (boost::shared_ptr<Route> rt)
if (ARDOUR::Profile->get_mixbus()) { if (ARDOUR::Profile->get_mixbus()) {
rec_mon_table.attach (*monitor_input_button, 1, 2, 0, 1); rec_mon_table.attach (*monitor_input_button, 1, 2, 0, 1);
rec_mon_table.attach (*monitor_disk_button, 2, 3, 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 { } else {
rec_mon_table.attach (*monitor_input_button, 1, 2, 0, 1); 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.attach (*monitor_disk_button, 1, 2, 1, 2);

View file

@ -605,12 +605,10 @@ PortGroupList::gather (ARDOUR::Session* session, ARDOUR::DataType type, bool inp
/* we own this port (named after the program) */ /* we own this port (named after the program) */
/* Hide scene ports from non-Tracks Live builds */ /* Hide scene ports for now */
if (!ARDOUR::Profile->get_trx()) { if (p.find (_("Scene ")) != string::npos) {
if (p.find (_("Scene ")) != string::npos) { ++s;
++s; continue;
continue;
}
} }
extra_program[t].push_back (p); extra_program[t].push_back (p);

View file

@ -266,10 +266,6 @@ RouteTimeAxisView::set_route (boost::shared_ptr<Route> rt)
controls_table.attach (route_group_button, 2, 3, 2, 3, Gtk::SHRINK, Gtk::SHRINK, 0, 0); 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); 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(*solo_button,_("Solo"));
set_tooltip(*mute_button,_("Mute")); set_tooltip(*mute_button,_("Mute"));
@ -294,17 +290,11 @@ RouteTimeAxisView::set_route (boost::shared_ptr<Route> rt)
if (ARDOUR::Profile->get_mixbus()) { if (ARDOUR::Profile->get_mixbus()) {
controls_table.attach (automation_button, 1, 2, 2, 3, Gtk::SHRINK, Gtk::SHRINK); 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 (is_track() && track()->mode() == ARDOUR::Normal) {
if (ARDOUR::Profile->get_mixbus()) { if (ARDOUR::Profile->get_mixbus()) {
controls_table.attach (playlist_button, 0, 1, 2, 3, Gtk::SHRINK, Gtk::SHRINK); 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; _y_position = -1;

View file

@ -31,7 +31,6 @@ public:
enum Element { enum Element {
SmallScreen, SmallScreen,
SinglePackage, SinglePackage,
Trx,
Mixbus, Mixbus,
LastElement, LastElement,
}; };
@ -42,9 +41,6 @@ public:
void set_small_screen() { bits[SmallScreen] = true; } void set_small_screen() { bits[SmallScreen] = true; }
bool get_small_screen() const { return bits[SmallScreen]; } 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]; } bool get_mixbus() const { return bits[Mixbus]; }
void set_mixbus() { bits[Mixbus] = true; } void set_mixbus() { bits[Mixbus] = true; }

View file

@ -144,14 +144,6 @@ AudioTrack::set_state (const XMLNode& node, int version)
_mode = Normal; _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)) { if (Track::set_state (node, version)) {
return -1; return -1;
} }

View file

@ -408,14 +408,10 @@ ExportProfileManager::init_timespans (XMLNodeList nodes)
// Add session as default selection // Add session as default selection
Location * session_range; Location * session_range;
if (Profile->get_trx()) { if ((session_range = session.locations()->session_range_location()) != 0) {
session_range = (session.get_play_loop () ? session.locations()->auto_loop_location () : session.locations()->session_range_location()); return false;
} else {
session_range = session.locations()->session_range_location();
} }
if (!session_range) { return false; }
ExportTimespanPtr timespan = handler->add_timespan(); ExportTimespanPtr timespan = handler->add_timespan();
timespan->set_name (session_range->name()); timespan->set_name (session_range->name());
timespan->set_range_id (session_range->id().to_s()); timespan->set_range_id (session_range->id().to_s());

View file

@ -704,10 +704,7 @@ IO::connecting_became_legal ()
connection_legal_c.disconnect (); 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 ret = make_connections (*pending_state_node, pending_state_node_version, pending_state_node_in);
if (!Profile->get_trx() ) {
ret = make_connections (*pending_state_node, pending_state_node_version, pending_state_node_in);
}
delete pending_state_node; delete pending_state_node;
pending_state_node = 0; pending_state_node = 0;

View file

@ -642,14 +642,12 @@ PortManager::reconnect_ports ()
{ {
boost::shared_ptr<Ports> p = ports.reader (); 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) { for (Ports::iterator i = p->begin(); i != p->end(); ++i) {
i->second->reconnect (); i->second->reconnect ();
}
} }
return 0; return 0;

View file

@ -949,12 +949,6 @@ Session::auto_connect_master_bus ()
return; 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. /* if requested auto-connect the outputs to the first N physical ports.
*/ */
@ -985,7 +979,7 @@ Session::auto_connect_master_bus ()
void void
Session::remove_monitor_section () Session::remove_monitor_section ()
{ {
if (!_monitor_out || Profile->get_trx()) { if (!_monitor_out) {
return; return;
} }
@ -1056,7 +1050,7 @@ Session::add_monitor_section ()
return; return;
} }
if (_monitor_out || !_master_out || Profile->get_trx()) { if (_monitor_out || !_master_out) {
return; return;
} }
@ -1208,7 +1202,7 @@ Session::reset_monitor_section ()
{ {
/* Process lock should be held by the caller.*/ /* Process lock should be held by the caller.*/
if (!_monitor_out || Profile->get_trx()) { if (!_monitor_out) {
return; return;
} }
@ -2342,11 +2336,7 @@ Session::default_track_name_pattern (DataType t)
{ {
switch (t) { switch (t) {
case DataType::AUDIO: case DataType::AUDIO:
if (Profile->get_trx()) { return _("Audio ");
return _("Track ");
} else {
return _("Audio ");
}
break; break;
case DataType::MIDI: case DataType::MIDI:
@ -2435,11 +2425,7 @@ Session::new_midi_track (const ChanCount& input, const ChanCount& output, bool s
failed: failed:
if (!new_routes.empty()) { if (!new_routes.empty()) {
StateProtector sp (this); StateProtector sp (this);
if (Profile->get_trx()) { add_routes (new_routes, true, true, false, order);
add_routes (new_routes, false, false, false, order);
} else {
add_routes (new_routes, true, true, false, order);
}
if (instrument) { if (instrument) {
for (RouteList::iterator r = new_routes.begin(); r != new_routes.end(); ++r) { for (RouteList::iterator r = new_routes.begin(); r != new_routes.end(); ++r) {
@ -2691,20 +2677,6 @@ Session::new_audio_track (int input_channels, int output_channels, RouteGroup* r
track->set_strict_io (true); 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); BOOST_MARK_TRACK (track);
{ {
@ -2752,11 +2724,7 @@ Session::new_audio_track (int input_channels, int output_channels, RouteGroup* r
failed: failed:
if (!new_routes.empty()) { if (!new_routes.empty()) {
StateProtector sp (this); StateProtector sp (this);
if (Profile->get_trx()) { add_routes (new_routes, true, true, false, order);
add_routes (new_routes, false, false, false, order);
} else {
add_routes (new_routes, true, true, false, order);
}
} }
return ret; return ret;
@ -2839,9 +2807,8 @@ Session::new_audio_route (int input_channels, int output_channels, RouteGroup* r
failure: failure:
if (!ret.empty()) { if (!ret.empty()) {
StateProtector sp (this); StateProtector sp (this);
if (Profile->get_trx()) {
add_routes (ret, false, false, false, order); if (flags == PresentationInfo::FoldbackBus) {
} else if (flags == PresentationInfo::FoldbackBus) {
add_routes (ret, false, false, true, order); // no autoconnect add_routes (ret, false, false, true, order); // no autoconnect
} else { } else {
add_routes (ret, false, true, true, order); // autoconnect // outputs only add_routes (ret, false, true, true, order); // autoconnect // outputs only
@ -3081,11 +3048,8 @@ Session::new_route_from_template (uint32_t how_many, PresentationInfo::order_t i
out: out:
if (!ret.empty()) { if (!ret.empty()) {
StateProtector sp (this); StateProtector sp (this);
if (Profile->get_trx()) {
add_routes (ret, false, false, false, insert_at); add_routes (ret, true, true, false, insert_at);
} else {
add_routes (ret, true, true, false, insert_at);
}
} }
IO::enable_connecting (); IO::enable_connecting ();
@ -4746,17 +4710,11 @@ Session::format_audio_source_name (const string& legalized_base, uint32_t nchan,
ostringstream sstr; ostringstream sstr;
const string ext = native_header_format_extension (config.get_native_file_header_format(), DataType::AUDIO); const string ext = native_header_format_extension (config.get_native_file_header_format(), DataType::AUDIO);
if (Profile->get_trx() && destructive) { sstr << legalized_base;
sstr << 'T';
sstr << setfill ('0') << setw (4) << cnt;
sstr << legalized_base;
} else {
sstr << legalized_base;
if (take_required || related_exists) { if (take_required || related_exists) {
sstr << '-'; sstr << '-';
sstr << cnt; sstr << cnt;
}
} }
if (nchan == 2) { if (nchan == 2) {
@ -6787,16 +6745,6 @@ Session::auto_connect (const AutoConnectRequest& ar)
for (uint32_t i = ar.output_start.get(*t); i < route->n_outputs().get(*t); ++i) { for (uint32_t i = ar.output_start.get(*t); i < route->n_outputs().get(*t); ++i) {
string port; 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)) { if ((*t) == DataType::MIDI && (Config->get_output_auto_connect() & AutoConnectPhysical)) {
port = physoutputs[(out_offset.get(*t) + i) % nphysical_out]; port = physoutputs[(out_offset.get(*t) + i) % nphysical_out];
} else if ((*t) == DataType::AUDIO && (Config->get_output_auto_connect() & AutoConnectMaster)) { } else if ((*t) == DataType::AUDIO && (Config->get_output_auto_connect() & AutoConnectMaster)) {

View file

@ -136,19 +136,6 @@ Session::mmc_record_pause (MIDI::MachineControl &/*mmc*/)
void void
Session::mmc_record_strobe (MIDI::MachineControl &/*mmc*/) 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)) { if (!Config->get_mmc_control() || (_step_editors > 0)) {
return; return;
} }

View file

@ -169,18 +169,8 @@ Session::pre_engine_init (string fullpath)
_path = canonical_path(fullpath); _path = canonical_path(fullpath);
/* is it new ? */ /* 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 ); _is_new = !Glib::file_test (_path, Glib::FileTest (G_FILE_TEST_EXISTS | G_FILE_TEST_IS_DIR));
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));
}
/* finish initialization that can't be done in a normal C++ constructor /* finish initialization that can't be done in a normal C++ constructor
definition. definition.
@ -597,7 +587,7 @@ Session::create (const string& session_template, BusProfile* bus_profile)
_writable = exists_and_writable (_path); _writable = exists_and_writable (_path);
if (!session_template.empty()) { 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"); FILE* in = g_fopen (in_path.c_str(), "rb");
@ -640,11 +630,9 @@ Session::create (const string& session_template, BusProfile* bus_profile)
_is_new = false; _is_new = false;
if (!ARDOUR::Profile->get_trx()) { /* Copy plugin state files from template to new session */
/* Copy plugin state files from template to new session */ std::string template_plugins = Glib::build_filename (session_template, X_("plugins"));
std::string template_plugins = Glib::build_filename (session_template, X_("plugins")); copy_recurse (template_plugins, plugins_dir ());
copy_recurse (template_plugins, plugins_dir ());
}
return 0; return 0;
@ -663,22 +651,6 @@ Session::create (const string& session_template, BusProfile* bus_profile)
} }
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; _state_of_the_state = Clean;
/* set up Master Out and Monitor Out if necessary */ /* set up Master Out and Monitor Out if necessary */
@ -1446,14 +1418,6 @@ Session::state (bool save_template, snapshot_t snapshot_type, bool only_used_ass
loc.add (range); loc.add (range);
XMLNode& locations_state = loc.get_state(); 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); node->add_child_nocopy (locations_state);
/* adding a location above will have marked the session /* adding a location above will have marked the session
@ -2531,31 +2495,25 @@ Session::save_template (const string& template_name, const string& description,
template_dir_path = template_name; template_dir_path = template_name;
} }
if (!ARDOUR::Profile->get_trx()) { if (!replace_existing && Glib::file_test (template_dir_path, Glib::FILE_TEST_EXISTS)) {
if (!replace_existing && Glib::file_test (template_dir_path, Glib::FILE_TEST_EXISTS)) { warning << string_compose(_("Template \"%1\" already exists - new version not created"),
warning << string_compose(_("Template \"%1\" already exists - new version not created"), template_dir_path) << endmsg;
template_dir_path) << endmsg; return -2;
return -2; }
}
if (g_mkdir_with_parents (template_dir_path.c_str(), 0755) != 0) { if (g_mkdir_with_parents (template_dir_path.c_str(), 0755) != 0) {
error << string_compose(_("Could not create directory for Session template\"%1\" (%2)"), error << string_compose(_("Could not create directory for Session template\"%1\" (%2)"),
template_dir_path, g_strerror (errno)) << endmsg; template_dir_path, g_strerror (errno)) << endmsg;
return -1; return -1;
}
} }
/* file to write */ /* file to write */
std::string template_file_path; std::string template_file_path;
if (ARDOUR::Profile->get_trx()) { if (absolute_path) {
template_file_path = template_name; template_file_path = Glib::build_filename (template_dir_path, Glib::path_get_basename (template_dir_path) + template_suffix);
} else { } else {
if (absolute_path) { template_file_path = Glib::build_filename (template_dir_path, template_name + template_suffix);
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);
}
} }
SessionSaveUnderway (); /* EMIT SIGNAL */ SessionSaveUnderway (); /* EMIT SIGNAL */

View file

@ -271,7 +271,7 @@ Session::do_locate (samplepos_t target_sample, bool with_roll, bool with_flush,
(!auto_play_legal || !config.get_auto_play()) && (!auto_play_legal || !config.get_auto_play()) &&
!with_roll && !with_roll &&
!(synced_to_engine() && play_loop) && !(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 realtime_stop (false, true); // XXX paul - check if the 2nd arg is really correct
transport_was_stopped = true; transport_was_stopped = true;

View file

@ -176,11 +176,6 @@ Source::set_state (const XMLNode& node, int version)
_flags = Flag (_flags | Destructive); _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) { if (version < 3000) {
/* a source with an XML node must necessarily already exist, /* a source with an XML node must necessarily already exist,
and therefore cannot be removable/writable etc. etc.; 2.X and therefore cannot be removable/writable etc. etc.; 2.X

View file

@ -92,7 +92,7 @@ Track::init ()
DiskIOProcessor::Flag dflags = DiskIOProcessor::Recordable; DiskIOProcessor::Flag dflags = DiskIOProcessor::Recordable;
if (_mode == Destructive && !Profile->get_trx()) { if (_mode == Destructive) {
dflags = DiskIOProcessor::Flag (dflags | DiskIOProcessor::Destructive); dflags = DiskIOProcessor::Flag (dflags | DiskIOProcessor::Destructive);
} }

View file

@ -76,11 +76,9 @@ extern "C" ARDOURPANNER_API PanPluginDescriptor* panner_descriptor () { return
Panner1in2out::Panner1in2out (boost::shared_ptr<Pannable> p) Panner1in2out::Panner1in2out (boost::shared_ptr<Pannable> p)
: Panner (p) : Panner (p)
{ {
if (!Profile->get_trx () ) { if (!_pannable->has_state ()) {
if (!_pannable->has_state ()) { _pannable->pan_azimuth_control->set_value (0.5, Controllable::NoGroup);
_pannable->pan_azimuth_control->set_value (0.5, Controllable::NoGroup); }
}
}
update (); update ();