comparison data/model/WaveformOversampler.h @ 1745:074b860a7828 by-id

Use reference rather than bare pointer
author Chris Cannam
date Tue, 02 Jul 2019 14:08:25 +0100
parents eb10ed56d5a4
children
comparison
equal deleted inserted replaced
1744:b92bdcd4954b 1745:074b860a7828
36 * and after the requested range (where available) to ensure an 36 * and after the requested range (where available) to ensure an
37 * accurate-looking result after filtering. The returned vector 37 * accurate-looking result after filtering. The returned vector
38 * will have sourceFrameCount * oversampleBy samples, except when 38 * will have sourceFrameCount * oversampleBy samples, except when
39 * truncated because the end of the model was reached. 39 * truncated because the end of the model was reached.
40 */ 40 */
41 static floatvec_t getOversampledData(const DenseTimeValueModel *source, 41 static floatvec_t getOversampledData(const DenseTimeValueModel &source,
42 int channel, 42 int channel,
43 sv_frame_t sourceStartFrame, 43 sv_frame_t sourceStartFrame,
44 sv_frame_t sourceFrameCount, 44 sv_frame_t sourceFrameCount,
45 int oversampleBy); 45 int oversampleBy);
46 46
47 private: 47 private:
48 static floatvec_t getFixedRatioData(const DenseTimeValueModel *source, 48 static floatvec_t getFixedRatioData(const DenseTimeValueModel &source,
49 int channel, 49 int channel,
50 sv_frame_t sourceStartFrame, 50 sv_frame_t sourceStartFrame,
51 sv_frame_t sourceFrameCount); 51 sv_frame_t sourceFrameCount);
52 52
53 static int m_filterRatio; 53 static int m_filterRatio;