From 955995f3a2fb404e84ea9058be64c0be978286e2 Mon Sep 17 00:00:00 2001 From: Valeriy Kamyshniy Date: Tue, 3 Feb 2015 20:58:32 +0200 Subject: [PATCH] [Summar] Bux FIX: Fader of newly created track(s) has wrong position (values) Default fader position should be different according to PRD In Stereo mode fader should have position -18dB In Multiout mode fader should have position 0dB --- libs/ardour/session.cc | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/libs/ardour/session.cc b/libs/ardour/session.cc index 0cf638fbef..815fbcf677 100644 --- a/libs/ardour/session.cc +++ b/libs/ardour/session.cc @@ -2646,6 +2646,20 @@ Session::new_audio_track (int input_channels, int output_channels, TrackMode mod if (track->init ()) { goto failed; } + + // 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: + // + // -18 for Stereo Out mode + // -0 Multi Out mode + if (Config->get_output_auto_connect() & AutoConnectMaster) { + track->set_gain (dB_to_coefficient (-18), 0); + } else if (Config->get_output_auto_connect() & AutoConnectPhysical) { + track->set_gain (dB_to_coefficient(0), 0); + } track->use_new_diskstream();