mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-24 15:37:48 +01:00
[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:
parent
fdf86a56e0
commit
955995f3a2
1 changed files with 14 additions and 0 deletions
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue