[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
This commit is contained in:
Valeriy Kamyshniy 2015-02-03 20:58:32 +02:00
parent fdf86a56e0
commit 955995f3a2

View file

@ -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();