13
0

fix assignment of remote control IDs

git-svn-id: svn://localhost/ardour2/trunk@1301 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2007-01-10 21:47:41 +00:00
parent be026c88cf
commit 5c7ee38799

View File

@ -1615,6 +1615,7 @@ Session::new_audio_track (int input_channels, int output_channels, TrackMode mod
string port;
RouteList new_routes;
list<boost::shared_ptr<AudioTrack> > ret;
uint32_t control_id;
/* count existing audio tracks */
@ -1638,6 +1639,7 @@ Session::new_audio_track (int input_channels, int output_channels, TrackMode mod
_engine.get_physical_outputs (physoutputs);
_engine.get_physical_inputs (physinputs);
control_id = 0;
while (how_many) {
@ -1726,7 +1728,8 @@ Session::new_audio_track (int input_channels, int output_channels, TrackMode mod
}
track->DiskstreamChanged.connect (mem_fun (this, &Session::resort_routes));
track->set_remote_control_id (ntracks());
track->set_remote_control_id (ntracks() + control_id + 1);
++control_id;
new_routes.push_back (track);
ret.push_back (track);