summaryrefslogtreecommitdiff
path: root/libs/ardour/route.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2015-07-05 17:15:01 +0200
committerRobin Gareus <robin@gareus.org>2015-07-05 17:15:01 +0200
commit15d150603c2e97b6a6fcc746dffd2a363554dc89 (patch)
tree9e41f855607f1869e7d130298bc2d1f9b4ef23cc /libs/ardour/route.cc
parent8bd32dc4cec23e8e6e1dfc39050ea82e052bc647 (diff)
use default meter type when creating new tracks/busses
Diffstat (limited to 'libs/ardour/route.cc')
-rw-r--r--libs/ardour/route.cc13
1 files changed, 10 insertions, 3 deletions
diff --git a/libs/ardour/route.cc b/libs/ardour/route.cc
index b03bf20158..7b4f1495fd 100644
--- a/libs/ardour/route.cc
+++ b/libs/ardour/route.cc
@@ -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 ()));