@@ -21,7 +21,7 @@ namespace audio_tools {
21
21
* The buffer is initilaized with 0 values and it is re-initialized when
22
22
* setStepSize() is called with a different size.
23
23
*/
24
- struct ResampleBase {
24
+ struct BaseInterpolator {
25
25
/* *
26
26
* @brief Constructor. Initializes the buffer with four zeros.
27
27
*/
@@ -111,7 +111,7 @@ struct ResampleBase {
111
111
*
112
112
* Valid for xf in [0,1].
113
113
*/
114
- struct ResampleLinearInterpolation : public ResampleBase {
114
+ struct LinearInterpolator : public BaseInterpolator {
115
115
int vectorSize () {
116
116
return 2 ;
117
117
} // /< Minimum number of values required for interpolation
@@ -136,7 +136,7 @@ struct ResampleLinearInterpolation : public ResampleBase {
136
136
*
137
137
* Valid for xf in [0,3].
138
138
*/
139
- struct ResampleBSpline : public ResampleBase {
139
+ struct BSplineInterpolator : public BaseInterpolator {
140
140
int vectorSize () {
141
141
return 4 ;
142
142
} // /< Minimum number of values required for interpolation
@@ -165,7 +165,7 @@ struct ResampleBSpline : public ResampleBase {
165
165
*
166
166
* Valid for xf in [0,3].
167
167
*/
168
- struct ResampleLagrange : public ResampleBase {
168
+ struct LagrangeInterpolator : public BaseInterpolator {
169
169
int vectorSize () {
170
170
return 4 ;
171
171
} // /< Minimum number of values required for interpolation
@@ -194,7 +194,7 @@ struct ResampleLagrange : public ResampleBase {
194
194
*
195
195
* Valid for xf in [0,3].
196
196
*/
197
- struct ResmpleHermite : public ResampleBase {
197
+ struct HermiteInterpolator : public BaseInterpolator {
198
198
int vectorSize () {
199
199
return 4 ;
200
200
} // /< Minimum number of values required for interpolation
@@ -223,7 +223,7 @@ struct ResmpleHermite : public ResampleBase {
223
223
*
224
224
* Valid for xf in [0,3].
225
225
*/
226
- struct ResampleParabolic : public ResampleBase {
226
+ struct ParabolicInterpolator : public BaseInterpolator {
227
227
int vectorSize () {
228
228
return 4 ;
229
229
} // /< Minimum number of values required for interpolation
@@ -246,10 +246,10 @@ struct ResampleParabolic : public ResampleBase {
246
246
};
247
247
248
248
/* *
249
- * @brief Multi-channel resampler that applies a ResampleBase -derived algorithm
249
+ * @brief Multi-channel resampler that applies a BaseInterpolator -derived algorithm
250
250
* to each channel.
251
251
*
252
- * @tparam TResampler The resampler type (must derive from ResampleBase ).
252
+ * @tparam TResampler The resampler type (must derive from BaseInterpolator ).
253
253
*/
254
254
template <class TResampler >
255
255
class MultiChannelResampler {
@@ -324,7 +324,7 @@ class MultiChannelResampler {
324
324
/* *
325
325
* @brief A Stream implementation for resamping using a specified interpolation
326
326
* algorithm.
327
- * @tparam TResampler The resampler type (must derive from ResampleBase ).
327
+ * @tparam TResampler The resampler type (must derive from BaseInterpolator ).
328
328
*/
329
329
template <class TResampler >
330
330
class ResamplerStreamT : public ReformatBaseStream {
0 commit comments