Mercurial > hg > svcore
comparison base/EventSeries.h @ 1619:f594fd249473 single-point
Further tests
author | Chris Cannam |
---|---|
date | Fri, 08 Mar 2019 12:59:32 +0000 |
parents | ba3ddb7fe2bd |
children | dcd510bd89db |
comparison
equal
deleted
inserted
replaced
1618:ba3ddb7fe2bd | 1619:f594fd249473 |
---|---|
195 * | 195 * |
196 * - An event with duration is within the span if its start frame | 196 * - An event with duration is within the span if its start frame |
197 * is less than f + d and its start frame plus its duration is | 197 * is less than f + d and its start frame plus its duration is |
198 * greater than f. | 198 * greater than f. |
199 * | 199 * |
200 * Note that getEventsSpanning(f, 0) is not equivalent to | 200 * Note: Passing a duration of zero is seldom useful here; you |
201 * getEventsCovering(f). The latter includes durationless events | 201 * probably want getEventsCovering instead. getEventsSpanning(f, |
202 * at f and events starting at f, both of which are excluded from | 202 * 0) is not equivalent to getEventsCovering(f). The latter |
203 * the former. | 203 * includes durationless events at f and events starting at f, |
204 * both of which are excluded from the former. | |
204 */ | 205 */ |
205 EventVector getEventsSpanning(sv_frame_t frame, | 206 EventVector getEventsSpanning(sv_frame_t frame, |
206 sv_frame_t duration) const { | 207 sv_frame_t duration) const { |
207 EventVector span; | 208 EventVector span; |
208 | 209 |