Mercurial > hg > svgui
diff view/ViewManager.h @ 333:e74b56f07c73
* Some work on correct alignment when moving panes during playback
* Overhaul alignment for playback frame values (view manager now always
refers to reference-timeline values, only the play source deals in
playback model timeline values)
* When making a selection, ensure the selection regions shown in other
panes (and used for playback constraints if appropriate) are aligned
correctly. This may be the coolest feature ever implemented in any
program ever.
author | Chris Cannam |
---|---|
date | Thu, 22 Nov 2007 14:17:19 +0000 |
parents | 4f4f38a11cd2 |
children | 2f83b6e3b8ca |
line wrap: on
line diff
--- a/view/ViewManager.h Mon Nov 19 15:50:14 2007 +0000 +++ b/view/ViewManager.h Thu Nov 22 14:17:19 2007 +0000 @@ -66,9 +66,24 @@ void setPlaybackFrame(unsigned long frame); // Only meaningful in solo mode, and used for optional alignment feature + + //!!! We probably don't want to do this. It's probably better to + // always have playback frame aligned against the reference model, + // and have the ViewManager know which is the reference model. + // That way the ViewManager can assume that all Views report in + // reference model timeline, and it can convert the playback frame + // received from the play source (which always operates in literal + // audio sample frames, i.e. playback model timeline) to the + // reference timeline itself so the view never has to worry about + // the difference between playback and reference model. Of course + // that does mean the ViewManager needs to know about both. + Model *getPlaybackModel() const; void setPlaybackModel(Model *); + size_t alignPlaybackFrameToReference(size_t) const; + size_t alignReferenceToPlaybackFrame(size_t) const; + bool haveInProgressSelection() const; const Selection &getInProgressSelection(bool &exclusive) const; void setInProgressSelection(const Selection &selection, bool exclusive);