use default meter type when creating new tracks/busses
authorRobin Gareus <robin@gareus.org>
Sun, 5 Jul 2015 15:15:01 +0000 (17:15 +0200)
committerRobin Gareus <robin@gareus.org>
Sun, 5 Jul 2015 15:15:01 +0000 (17:15 +0200)
libs/ardour/route.cc

index b03bf201589256156989deec63f7381aab412dfa..7b4f1495fdba00dfe98e7659ce52edf07249cbef 100644 (file)
@@ -113,15 +113,22 @@ Route::Route (Session& sess, string name, Flag flg, DataType default_type)
        , _initial_io_setup (false)
        , _custom_meter_position_noted (false)
 {
-       if (!Profile->get_trx() && is_master()) {
-               _meter_type = MeterK20;
-       }
        processor_max_streams.reset();
 }
 
 int
 Route::init ()
 {
+       /* set default meter type */
+       if (is_master()) {
+               _meter_type = Config->get_meter_type_master ();
+       }
+       else if (dynamic_cast<Track*>(this)) {
+               _meter_type = Config->get_meter_type_track ();
+       } else {
+               _meter_type = Config->get_meter_type_bus ();
+       }
+
        /* add standard controls */
 
        _solo_control.reset (new SoloControllable (X_("solo"), shared_from_this ()));