From: Chris C. <ca...@al...> - 2002-05-06 15:22:03
|
Guillaume Laurent wrote: > I'm not sure this would make for a very friendly API. Both notions (end marker > and duration) are seperate IMHO. IMHO the best thing would be (as in my previous suggestion) to merge them completely, so that when you shorten a segment you're setting the end marker, when you lengthen it you're setting either the end marker (if it's still shorter than the original duration) or the event-based duration, and when you query the duration you get the end marker if it precedes the last event. I believe you almost never care when the events end except for very specialised operations, what you want when you call getDuration() etc is the end marker time when appropriate. So, anything else is going to be a bit of a compromise anyway. Still, whatever -- I probably won't be getting time to implement & test it just now anyway. Chris |