- if ((prop = node.property ("bitslot")) == 0) {
- bitslot = _session.next_insert_id();
- } else {
- _session.unmark_insert_id (bitslot);
- sscanf (prop->value().c_str(), "%" PRIu32, &bitslot);
- _session.mark_insert_id (bitslot);
+ //if the jack period is the same as when the value was saved, we can recall our latency..
+ if ( (_session.get_block_size() == blocksize) && (prop = node.property ("latency")) != 0) {
+ uint32_t latency = 0;
+ sscanf (prop->value().c_str(), "%u", &latency);
+ _measured_latency = latency;
+ }
+
+ if (!node.property ("ignore-bitslot")) {
+ if ((prop = node.property ("bitslot")) == 0) {
+ _bitslot = _session.next_insert_id();
+ } else {
+ _session.unmark_insert_id (_bitslot);
+ sscanf (prop->value().c_str(), "%" PRIu32, &_bitslot);
+ _session.mark_insert_id (_bitslot);
+ }