diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2010-03-25 03:40:07 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2010-03-25 03:40:07 +0000 |
commit | 02583c300f1a909c031b75e9e264696cce0a53e2 (patch) | |
tree | 5d65ac906a19972df634ecb8755818dddf130d36 /libs/ardour/track.cc | |
parent | 896aa29dcf4dbc554e089f6cdf951b26e860c0e8 (diff) |
would you look at that! all those changes just to make the auditioner work again ....
git-svn-id: svn://localhost/ardour2/branches/3.0@6794 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/track.cc')
-rw-r--r-- | libs/ardour/track.cc | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/libs/ardour/track.cc b/libs/ardour/track.cc index 92b776f7f2..7929640b64 100644 --- a/libs/ardour/track.cc +++ b/libs/ardour/track.cc @@ -41,12 +41,12 @@ using namespace PBD; Track::Track (Session& sess, string name, Route::Flag flag, TrackMode mode, DataType default_type) : Route (sess, name, flag, default_type) + , _saved_meter_point (_meter_point) + , _mode (mode) , _rec_enable_control (new RecEnableControllable(*this)) { - _declickable = true; _freeze_record.state = NoFreeze; - _saved_meter_point = _meter_point; - _mode = mode; + _declickable = true; } Track::~Track () @@ -54,6 +54,15 @@ Track::~Track () DEBUG_TRACE (DEBUG::Destruction, string_compose ("track %1 destructor\n", _name)); } +int +Track::init () +{ + if (Route::init ()) { + return -1; + } + + return 0; +} XMLNode& Track::get_state () { @@ -345,10 +354,7 @@ Track::input_streams () const { ChanCount cc = _input->n_ports (); - cerr << "**************" << _name << " IS = " << cc << endl; - if (cc.n_total() == 0 && _diskstream) { - cerr << "*******" << _name << " use diskstream channel count\n"; return cc = _diskstream->n_channels(); } |