summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2015-05-10 12:57:48 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2015-06-29 14:18:11 -0400
commitb558d00789972c7b07a41ce1527c6836904b65e5 (patch)
treeb7f4f0e207a3b1688845c42a211836987e565c43 /libs
parentfab465c4cca420f8e0fb5f5469f7e6aa67f871c5 (diff)
Tracks uses -inf gain on newly created tracks
Diffstat (limited to 'libs')
-rw-r--r--libs/ardour/session.cc16
1 files changed, 15 insertions, 1 deletions
diff --git a/libs/ardour/session.cc b/libs/ardour/session.cc
index 7f40f957f1..646f0c8391 100644
--- a/libs/ardour/session.cc
+++ b/libs/ardour/session.cc
@@ -2684,7 +2684,7 @@ Session::reconnect_mtc_ports()
MtcOrLtcInputPortChanged (); //emit signal
}
}
-#endif
+#endifs
}
void
@@ -2763,6 +2763,20 @@ Session::new_audio_track (int input_channels, int output_channels, TrackMode mod
goto failed;
}
+ 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->set_gain (dB_to_coefficient (0), 0);
+ }
+ }
+
track->use_new_diskstream();
#ifdef BOOST_SP_ENABLE_DEBUG_HOOKS