Lines Matching refs:duration
29 // | event |E|R| volume | duration |
46 // - duration: The duration field indicates the duration of the event or segment
51 // The event may or may not have ended. If the event duration
52 // exceeds the maximum representable by the duration field, the
54 // discard zero-duration events.
70 event->duration = payload[2] << 8 | payload[3];
78 // DTMF events can be quite long, and in most cases the duration of the event
83 // while the duration will be the cumulative duration from the start. When
90 event.duration <= 0 || event.duration > 65535) {
111 // bit is set, we know that the event ends at |timestamp| + |duration|.
112 uint32_t event_end = it->timestamp + it->duration;
138 event->duration = it->duration;
158 event->duration = it->duration;
200 // Do not extend the duration of an event for which the end bit was
202 it->duration = std::max(event.duration, it->duration);