[Ardour-Dev] control_protocol, remote_control_id

John Anderson ardour at semiosix.com
Mon Jul 30 06:33:29 PDT 2007


On Sat, 2007-07-28 at 18:11 +0200, Giso Grimm wrote:
> while looking at the code of control_protocol.cc I got the impression
> that Route::remote_control_id() is a number between 1 and
> Session::nroutes(), while in the functions ControlProtocol::next_track()
> and prev_track() it is handled as if it would be a number between 0 and
> nroutes()-1. I am not completely sure about it. Could someone comment on
> this?

> Another question is related to the class TranzportControlProtocol
> defined in libs/surfaces/tranzport/tranzport_control_protocol.h: The
> member 'current_track_id' is initialized to 0, and this value is never
> changed. Does this reflect the fact that the Tranzport device can
> control only one route at a time?

I think the parameter to next_track and prev_track is an index into the
route_table array. So it would have to be zero based. And I have a vague
memory of remote_control_id() returning 0 for "not assigned". So valid
values would be 1 through Session::nroutes()

bye
John





More information about the Ardour-Dev mailing list