Skip to content

Commit 205da17

Browse files
committed
ResampleStream correct examples
1 parent 88d5c02 commit 205da17

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

examples/sandbox/examples-sdr/generator-am_sender-audiokit/generator-am_sender-audiokit.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ uint8_t channels = 1; // The stream will ha
2626

2727
SineFromTable<int16_t> sineWave(32000); // subclass of SoundGenerator with maaudio_data amplitude of 32000
2828
GeneratedSoundStream<int16_t> sound(sineWave); // Stream generated from sine wave
29-
ResampleStream<int16_t> resample(sound);
29+
ResampleStream resample(sound);
3030
AnalogAudioStream out;
3131
AudioInfo info;
3232

examples/tests/test-resample-in/test-resample-in.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ uint16_t sample_rate=44100;
44
uint8_t channels = 2; // The stream will have 2 channels
55
SineWaveGenerator<int16_t> sineWave(32000); // subclass of SoundGenerator with max amplitude of 32000
66
GeneratedSoundStream<int16_t> sound(sineWave); // Stream generated from sine wave
7-
ResampleStream<int16_t> resample(sound);
7+
ResampleStream resample(sound);
88
CsvStream<int16_t> out(Serial);
99
StreamCopy copier(out, resample); // copies sound to out
1010
AudioInfo info;

examples/tests/test-resample-out/test-resample-out.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ uint8_t channels = 2; // The stream will ha
66
SineWaveGenerator<int16_t> sineWave(32000); // subclass of SoundGenerator with max amplitude of 32000
77
GeneratedSoundStream<int16_t> sound(sineWave); // Stream generated from sine wave
88
CsvStream<int16_t> out(Serial);
9-
ResampleStream<int16_t> resample(out);
9+
ResampleStream resample(out);
1010
StreamCopy copier(resample, sound); // copies sound to out
1111
AudioInfo info;
1212

0 commit comments

Comments
 (0)