comparison layer/ScrollableMagRangeCache.h @ 1120:65cdaf8d6b50 spectrogram-minor-refactor

Toward updating mag cache
author Chris Cannam
date Wed, 20 Jul 2016 13:40:23 +0100
parents be5b91ec81a0
children 94370157b265
comparison
equal deleted inserted replaced
1119:be5b91ec81a0 1120:65cdaf8d6b50
128 * that it continues to be valid for the new start frame. 128 * that it continues to be valid for the new start frame.
129 */ 129 */
130 void scrollTo(const LayerGeometryProvider *v, sv_frame_t newStartFrame); 130 void scrollTo(const LayerGeometryProvider *v, sv_frame_t newStartFrame);
131 131
132 /** 132 /**
133 * Update a column in the cache, by column number. 133 * Update a column in the cache, by column index. (Column zero is
134 * the first column in the cache, it has nothing to do with any
135 * underlying model that the cache may be used with.)
134 */ 136 */
135 void sampleColumn(int column, const MagnitudeRange &r) { 137 void sampleColumn(int column, const MagnitudeRange &r);
136 m_ranges[column].sample(r);
137 }
138 138
139 /** 139 /**
140 * Update a column in the cache, by frame. 140 * Update a column in the cache, by frame.
141 */ 141 */
142 void sampleColumn(const LayerGeometryProvider *v, sv_frame_t frame, 142 void sampleColumn(const LayerGeometryProvider *v, sv_frame_t frame,