mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-05 05:05:43 +01:00
[Summary] Made Master Track added each time when session does not have it.
This commit is contained in:
parent
51292edca4
commit
0997063fd3
1 changed files with 9 additions and 3 deletions
|
|
@ -357,15 +357,17 @@ Session::Session (AudioEngine &eng,
|
|||
_engine.set_session (this);
|
||||
_engine.reset_timebase ();
|
||||
|
||||
// Waves Tracks: always create master track
|
||||
if ( ARDOUR::Profile->get_trx () ) {
|
||||
create_master_track();
|
||||
}
|
||||
|
||||
/* Waves Tracks: fill session with tracks basing on the amount of inputs.
|
||||
* each available input must have corresponding track when session starts.
|
||||
*/
|
||||
if (_is_new ) {
|
||||
if ( ARDOUR::Profile->get_trx () ) {
|
||||
|
||||
// Waves Tracks: always create master track
|
||||
create_master_track();
|
||||
|
||||
uint32_t how_many (0);
|
||||
|
||||
std::vector<std::string> inputs;
|
||||
|
|
@ -2422,6 +2424,10 @@ Session::create_master_track ()
|
|||
return false;
|
||||
}
|
||||
|
||||
if (_master_track) {
|
||||
return true;
|
||||
}
|
||||
|
||||
uint32_t input_channels = _master_out->n_inputs().get(DataType::AUDIO);
|
||||
// use the same amount of autputs because master track will be connected to master bus
|
||||
uint32_t output_channels = input_channels;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue