Skip to content

Commit 45ddf68

Browse files
committed
Rename ResamplerStreamT to ResampleStreamT
1 parent 9cdd99e commit 45ddf68

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

src/AudioTools/CoreAudio.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#include "AudioTools/CoreAudio/VolumeStream.h"
1111
#include "AudioTools/CoreAudio/AudioIO.h"
1212
#include "AudioTools/CoreAudio/ResampleStream.h"
13-
#include "AudioTools/CoreAudio/ResamplerStreamT.h"
13+
#include "AudioTools/CoreAudio/ResampleStreamT.h"
1414
#include "AudioTools/CoreAudio/StreamCopy.h"
1515
#include "AudioTools/CoreAudio/MusicalNotes.h"
1616
#include "AudioTools/CoreAudio/Fade.h"

src/AudioTools/CoreAudio/ResamplerStreamT.h renamed to src/AudioTools/CoreAudio/ResampleStreamT.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -327,37 +327,37 @@ class MultiChannelResampler {
327327
* @tparam TResampler The resampler type (must derive from BaseInterpolator).
328328
*/
329329
template <class TResampler>
330-
class ResamplerStreamT : public ReformatBaseStream {
330+
class ResampleStreamT : public ReformatBaseStream {
331331
public:
332332
/**
333333
* @brief Default constructor.
334334
*/
335-
ResamplerStreamT() = default;
335+
ResampleStreamT() = default;
336336
/**
337337
* @brief Constructor for output to a Print interface.
338338
* @param out The Print interface to write resampled data to.
339339
*/
340340

341-
ResamplerStreamT(Print& out) { setOutput(out); }
341+
ResampleStreamT(Print& out) { setOutput(out); }
342342
/**
343343
* @brief Constructor for output to an AudioOutput interface.
344344
* @param out The AudioOutput interface to write resampled data to.
345345
*/
346346

347-
ResamplerStreamT(AudioOutput& out) {
347+
ResampleStreamT(AudioOutput& out) {
348348
setAudioInfo(out.audioInfo());
349349
setOutput(out);
350350
}
351351
/**
352352
* @brief Constructor for input/output via a Stream interface.
353353
* @param io The Stream interface to read/write data.
354354
*/
355-
ResamplerStreamT(Stream& io) { setStream(io); }
355+
ResampleStreamT(Stream& io) { setStream(io); }
356356
/**
357357
* @brief Constructor for input/output via an AudioStream interface.
358358
* @param io The AudioStream interface to read/write data.
359359
*/
360-
ResamplerStreamT(AudioStream& io) {
360+
ResampleStreamT(AudioStream& io) {
361361
setAudioInfo(io.audioInfo());
362362
setStream(io);
363363
}
@@ -425,7 +425,7 @@ class ResamplerStreamT : public ReformatBaseStream {
425425
* @brief Write interleaved samples to the stream
426426
*/
427427
size_t write(const uint8_t* data, size_t len) override {
428-
LOGD("ResamplerStreamT::write: %d", (int)len);
428+
LOGD("ResampleStreamT::write: %d", (int)len);
429429
// addNotifyOnFirstWrite();
430430
size_t written = 0;
431431
switch (info.bits_per_sample) {

tests-cmake/resample_ext/resample_ext.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ SineWaveGenerator<int16_t> sineWave(32000);
66
// Stream generated from sine wave
77
GeneratedSoundStream<int16_t> sound(sineWave);
88
CsvOutput<int16_t> out(Serial);
9-
//ResamplerStreamT<LinearInterpolaror> resample(out);
10-
ResamplerStreamT<BSplineInterpolator> resample(sound);
9+
//ResampleStreamT<LinearInterpolaror> resample(out);
10+
ResampleStreamT<BSplineInterpolator> resample(sound);
1111
StreamCopy copier(out, resample); // copies sound to out
1212

1313
// Arduino Setup

0 commit comments

Comments
 (0)