break;
default:
- cerr << "Editor received unexpected timecode type" << endl;
+ error << "Editor received unexpected timecode type" << endmsg;
}
+
return false;
}
void
switch (state) {
case JackTransportStopped:
- if (slave && _transport_frame != pos->frame && post_transport_work == 0) {
+ if (slave && _transport_frame != pos->frame && post_transport_work() == 0) {
request_locate (pos->frame, false);
// cerr << "SYNC: stopped, locate to " << pos->frame << " from " << _transport_frame << endl;
return false;
}
case JackTransportStarting:
- // cerr << "SYNC: starting @ " << pos->frame << " a@ " << _transport_frame << " our work = " << post_transport_work << " pos matches ? " << (_transport_frame == pos->frame) << endl;
+ // cerr << "SYNC: starting @ " << pos->frame << " a@ " << _transport_frame << " our work = " << post_transport_work() << " pos matches ? " << (_transport_frame == pos->frame) << endl;
if (slave) {
- return _transport_frame == pos->frame && post_transport_work == 0;
+ return _transport_frame == pos->frame && post_transport_work() == 0;
} else {
return true;
}
if (_tempo_map) {
- TempoMap::Metric metric (_tempo_map->metric_at (_transport_frame));
+ TempoMetric metric (_tempo_map->metric_at (_transport_frame));
_tempo_map->bbt_time_with_metric (_transport_frame, bbt, metric);
pos->bar = bbt.bars;