+ self.chunks += 1
+
+ # Don't insert the first chunk into the averaging as it is
+ # not complete probably.
+ if self.last_samplenum is None or self.chunks < 2:
+ # Report the timing normalized.
+ self.put(self.last_samplenum, self.samplenum, self.out_ann,
+ [0, [normalize_time(t)]])
+ else:
+ if t > 0:
+ self.last_n.append(t)
+
+ if len(self.last_n) > self.options['avg_period']:
+ self.last_n.popleft()