comparison base/Selection.h @ 300:5877d68815c7

* Change WaveFileModel API from getValues(start,end) to getData(start,count). It's much less error-prone to pass in frame counts instead of start/end locations. Should have done this ages ago. This closes #1794563. * Add option to apply a transform to only the selection region, instead of the whole audio. * (to make the above work properly) Add start frame offset to wave models
author Chris Cannam
date Mon, 01 Oct 2007 13:48:38 +0000
parents d397ea0a79f5
children 70a232b1f12a
comparison
equal deleted inserted replaced
299:576be0d0d218 300:5877d68815c7
55 void setSelection(const Selection &selection); 55 void setSelection(const Selection &selection);
56 void addSelection(const Selection &selection); 56 void addSelection(const Selection &selection);
57 void removeSelection(const Selection &selection); 57 void removeSelection(const Selection &selection);
58 void clearSelections(); 58 void clearSelections();
59 59
60 void getExtents(size_t &startFrame, size_t &endFrame) const;
61
60 /** 62 /**
61 * Return the selection that contains a given frame. 63 * Return the selection that contains a given frame.
62 * If defaultToFollowing is true, and if the frame is not in a 64 * If defaultToFollowing is true, and if the frame is not in a
63 * selected area, return the next selection after the given frame. 65 * selected area, return the next selection after the given frame.
64 * Return the empty selection if no appropriate selection is found. 66 * Return the empty selection if no appropriate selection is found.