Mercurial > hg > svgui
diff 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 |
line wrap: on
line diff
--- a/layer/ScrollableMagRangeCache.h Wed Jul 20 08:42:04 2016 +0100 +++ b/layer/ScrollableMagRangeCache.h Wed Jul 20 13:40:23 2016 +0100 @@ -130,11 +130,11 @@ void scrollTo(const LayerGeometryProvider *v, sv_frame_t newStartFrame); /** - * Update a column in the cache, by column number. + * Update a column in the cache, by column index. (Column zero is + * the first column in the cache, it has nothing to do with any + * underlying model that the cache may be used with.) */ - void sampleColumn(int column, const MagnitudeRange &r) { - m_ranges[column].sample(r); - } + void sampleColumn(int column, const MagnitudeRange &r); /** * Update a column in the cache, by frame.