Skip to content

Commit 77eaf01

Browse files
committed
Remove obsolete functionality
1 parent 607c722 commit 77eaf01

File tree

20 files changed

+37
-29
lines changed

20 files changed

+37
-29
lines changed

examples/build-examples-log.txt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@
191191
../examples/examples-communication/http-client/player-url_icy-audiokit -> rc=0
192192
../examples/examples-communication/http-client/player-url_icy-i2s -> rc=0
193193
../examples/examples-communication/http-client/player-url_subclass-i2s -> rc=0
194-
../examples/examples-communication/http-client/streams-eth_url_mp3_helix-i2s -> rc=0
194+
../examples/examples-communication/http-client/streams-eth_url_mp3_helix-i2s -> rc=1
195195
../examples/examples-communication/http-client/streams-http_post -> rc=0
196196
../examples/examples-communication/http-client/streams-url_aac-audiokit -> rc=0
197197
../examples/examples-communication/http-client/streams-url_aac-i2s -> rc=0
@@ -216,7 +216,7 @@
216216
../examples/examples-communication/http-server/streams-audiokit-webserver_mp3 -> rc=0
217217
../examples/examples-communication/http-server/streams-audiokit-webserver_wav -> rc=0
218218
../examples/examples-communication/http-server/streams-effect-webserver_wav -> rc=0
219-
../examples/examples-communication/http-server/streams-flite-webserver_wav -> rc=0
219+
../examples/examples-communication/http-server/streams-flite-webserver_wav -> rc=1
220220
../examples/examples-communication/http-server/streams-generator-webserver_aac -> rc=0
221221
../examples/examples-communication/http-server/streams-generator-webserverex_wav -> rc=0
222222
../examples/examples-communication/http-server/streams-generator-webserverex_wav1 -> rc=0
@@ -228,6 +228,7 @@
228228
../examples/examples-communication/http-server/streams-tts-webserver_wav -> rc=0
229229
../examples/tests/adc/read-csv -> rc=0
230230
../examples/tests/adc/read-csv_unsigned -> rc=0
231+
../examples/tests/adc/read-esp32-multi-channel-csv -> rc=0
231232
../examples/tests/adc/read-speed -> rc=0
232233
../examples/tests/basic/24bits-write -> rc=0
233234
../examples/tests/basic/test-allocator -> rc=0
@@ -259,6 +260,9 @@
259260
../examples/tests/codecs/test-memory-helix -> rc=0
260261
../examples/tests/codecs/test-mp3-helix -> rc=0
261262
../examples/tests/codecs/test-mp3-helix-reading -> rc=0
263+
../examples/tests/codecs/test-mp3-mad -> rc=0
264+
../examples/tests/codecs/test-streaming-adapter -> rc=0
265+
../examples/tests/communications/* -> rc=1
262266
../examples/tests/concurrency/NBuffer -> rc=0
263267
../examples/tests/concurrency/synchBufferRTOS -> rc=0
264268
../examples/tests/concurrency/synchNBuffer -> rc=0

examples/examples-basic-api/base-adc-average-mono-serial/base-adc-average-mono-serial.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
AnalogAudioStream analog_in;
1313

1414
// Serial terminal output
15-
CsvStream<int16_t> serial_out(Serial);
15+
CsvOutput<int16_t> serial_out(Serial);
1616

1717
#define BAUD_RATE 500000
1818
#define SAMPLE_RATE 44100

examples/examples-dsp/examples-mozzi/audio_input/audio_input.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ void setup() {
4343

4444
void updateControl() {}
4545

46-
mozzi_ns::AudioOutput updateAudio() {
46+
AudioOutputMozzi updateAudio() {
4747
int asig = mozzi.getAudioInput(); // range 0-1023
4848
asig = asig - 512; // now range is -512 to 511
4949
// output range in STANDARD mode is -244 to 243,

examples/examples-dsp/examples-mozzi/control_gain-a2dp/control_gain-a2dp.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ void updateControl() {
5353
gain = gain - 3;
5454
}
5555

56-
mozzi_ns::AudioOutput updateAudio() {
56+
AudioOutputMozzi updateAudio() {
5757
// shift back to STANDARD audio range, like /256 but faster
5858
return (aSin.next() * gain) >> 8;
5959
}

examples/examples-dsp/examples-mozzi/control_gain/control_gain.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ void updateControl() {
4646
gain = gain - 3;
4747
}
4848

49-
mozzi_ns::AudioOutput updateAudio() {
49+
AudioOutputMozzi updateAudio() {
5050
return (aSin.next() * gain) >>
5151
8; // shift back to STANDARD audio range, like /256 but faster
5252
}

examples/examples-stream/streams-generator-volume/streams-generator-volume.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ void setup(void) {
2020
while(!Serial);
2121
AudioLogger::instance().begin(Serial, AudioLogger::Warning);
2222

23-
// start Volume Output
23+
// start Volume Meter
2424
out.begin(info);
2525

2626
// Setup sine wave

examples/sandbox/streams-memory_wav-resample-audiokit/streams-memory_wav-resample-audiokit.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ MemoryStream toneG8(g8_sine_raw, g8_sine_raw_len);
99
// playback at 24000 (4 times slower)
1010
const AudioInfo info(24000,1,16);
1111
AudioBoardStream i2s(AudioKitEs8388V1);
12-
CsvStream<int16_t> csv(Serial, 1);
12+
CsvOutput<int16_t> csv(Serial, 1);
1313
//FilteredStream<int16_t, int16_t> filter(i2s, 1);
1414
ResampleStream resample(csv); // replace with i2s
1515
StreamCopy copier(resample, toneG8, 2048); // copies sound to out

examples/tests/filters/test-90deg/test-90deg.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ AudioInfo from(44100, 2, 32);
77
AudioInfo to(44100, 2, 16);
88
SineWaveGenerator<int32_t> sineWave;
99
GeneratedSoundStream<int32_t> in(sineWave);
10-
CsvStream<int16_t> out;
10+
CsvOutput<int16_t> out;
1111
FilteredStream<int16_t, float> filtered(out, from.channels);
1212
NumberFormatConverterStream conv (filtered);
1313
StreamCopy copier(conv, in);

src/AudioCodecs/AudioCodecsBase.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -184,11 +184,6 @@ class StreamingDecoder : public AudioInfoSource {
184184
/// the loop
185185
void setInput(Stream &inStream) { this->p_input = &inStream; }
186186

187-
#if USE_OBSOLETE
188-
/// Obsolete: same as setInput
189-
void setInputStream(Stream &inStream) { setInput(inStream); }
190-
#endif
191-
192187
/// Provides the last available MP3FrameInfo
193188
virtual AudioInfo audioInfo() = 0;
194189

src/AudioLibs/MozziStream.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@
22

33
#include "AudioTools.h"
44

5-
namespace mozzi_ns {
5+
// prevent naming conflict with audiotools
6+
#define AudioOutput AudioOutputMozzi
67
#include <Mozzi.h>
7-
}
8+
#undef AudioOutput
89

910
void updateControl();
10-
mozzi_ns::AudioOutput updateAudio();
11+
AudioOutputMozzi updateAudio();
1112

1213
namespace audio_tools {
1314

0 commit comments

Comments
 (0)