Skip to content

Commit e95689c

Browse files
committed
correct examples with compile errors
1 parent 76c9297 commit e95689c

File tree

9 files changed

+28
-27
lines changed

9 files changed

+28
-27
lines changed

examples/build-arch-log.txt

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
esp32:esp32:esp32 ./examples-stream/streams-generator-serial -> rc=0
2+
esp32:esp32:esp32c3 ./examples-stream/streams-generator-serial -> rc=0
3+
esp32:esp32:esp32s3 ./examples-stream/streams-generator-serial -> rc=0
4+
esp32:esp32:esp32s2 ./examples-stream/streams-generator-serial -> rc=0
25
esp8266:esp8266:generic ./examples-stream/streams-generator-serial -> rc=0
36
arduino:mbed_rp2040:pico ./examples-stream/streams-generator-serial -> rc=0
47
rp2040:rp2040:generic ./examples-stream/streams-generator-serial -> rc=0
58
arduino:avr:nano ./examples-stream/streams-generator-serial -> rc=0
9+
arduino:samd:arduino_zero_native ./examples-stream/streams-generator-serial -> rc=0

examples/build-examples-log.txt

+12-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
../examples/examples-basic-api/base-adc-a2dp -> rc=0
22
../examples/examples-basic-api/base-adc-serial -> rc=0
33
../examples/examples-basic-api/base-file_raw-serial -> rc=0
4+
../examples/examples-basic-api/base-generator-a2dp -> rc=0
45
../examples/examples-basic-api/base-i2s-a2dp -> rc=0
56
../examples/examples-basic-api/base-player-a2dp -> rc=0
67
../examples/examples-basic-api/base-SynchronizedBufferRTOS -> rc=0
@@ -29,11 +30,13 @@
2930
../examples/examples-stream/streams-adsr-i2s -> rc=0
3031
../examples/examples-stream/streams-generator-a2dp -> rc=0
3132
../examples/examples-stream/streams-generator-analog -> rc=0
33+
../examples/examples-stream/streams-generator-formatconverter-i2s -> rc=0
3234
../examples/examples-stream/streams-generator_fromarray-analog -> rc=0
3335
../examples/examples-stream/streams-generator-i2s -> rc=0
3436
../examples/examples-stream/streams-generator-pwm -> rc=0
3537
../examples/examples-stream/streams-generator-serial -> rc=0
3638
../examples/examples-stream/streams-generator-spdif -> rc=0
39+
../examples/examples-stream/streams-generator-wm8960 -> rc=0
3740
../examples/examples-stream/streams-i2s-a2dp -> rc=0
3841
../examples/examples-stream/streams-i2s-filter-i2s -> rc=0
3942
../examples/examples-stream/streams-i2s-i2s -> rc=0
@@ -66,7 +69,6 @@
6669
../examples/examples-stream/streams-url_raw-serial -> rc=0
6770
../examples/examples-stream/streams-url_vorbis_i2s -> rc=0
6871
../examples/examples-stream/streams-url_wav-i2s -> rc=0
69-
../examples/examples-audiokit/audiokit-effects-audiokit -> rc=0
7072
../examples/examples-audiokit/basic-a2dp-audiokit -> rc=0
7173
../examples/examples-audiokit/basic-a2dp-eq-audiokit -> rc=0
7274
../examples/examples-audiokit/basic-audiokit-a2dp -> rc=0
@@ -75,8 +77,11 @@
7577
../examples/examples-audiokit/player-sdfat-audiokit -> rc=0
7678
../examples/examples-audiokit/player-sdmmc-audiokit -> rc=0
7779
../examples/examples-audiokit/player-url_icy-audiokit -> rc=0
80+
../examples/examples-audiokit/streams-a2dp-audiokit -> rc=0
7881
../examples/examples-audiokit/streams-audiokit-audiokit -> rc=0
82+
../examples/examples-audiokit/streams-audiokit-effects-audiokit -> rc=0
7983
../examples/examples-audiokit/streams-audiokit-fft -> rc=0
84+
../examples/examples-audiokit/streams-audiokit-fft-led -> rc=0
8085
../examples/examples-audiokit/streams-audiokit-filter-audiokit -> rc=0
8186
../examples/examples-audiokit/streams-audiokit-multioutput -> rc=0
8287
../examples/examples-audiokit/streams-audiokit-multioutput-server -> rc=0
@@ -88,6 +93,7 @@
8893
../examples/examples-audiokit/streams-audiokit-webserver_aac -> rc=0
8994
../examples/examples-audiokit/streams-audiokit-webserver_mp3 -> rc=0
9095
../examples/examples-audiokit/streams-audiokit-webserver_wav -> rc=0
96+
../examples/examples-audiokit/streams-file_loop-audiokit -> rc=0
9197
../examples/examples-audiokit/streams-generator-audiokit -> rc=0
9298
../examples/examples-audiokit/streams-generator_fromarray-audiokit -> rc=0
9399
../examples/examples-audiokit/streams-generator_inputmixer-audiokit -> rc=0
@@ -97,7 +103,7 @@
97103
../examples/examples-audiokit/streams-memory_pcm-mixer-audiokit -> rc=0
98104
../examples/examples-audiokit/streams-pins-audiokit -> rc=0
99105
../examples/examples-audiokit/streams-sd-audiokit -> rc=0
100-
../examples/examples-audiokit/streams-synth-a2dp -> rc=1/0
106+
../examples/examples-audiokit/streams-synth-a2dp -> rc=0
101107
../examples/examples-audiokit/streams-synth-audiokit -> rc=0
102108
../examples/examples-audiokit/streams-synthbasic1-audiokit -> rc=0
103109
../examples/examples-audiokit/streams-synthbasic2-audiokit -> rc=0
@@ -128,6 +134,7 @@
128134
../examples/examples-maximilian/18-DrumMachine -> rc=0
129135
../examples/examples-maximilian/19-Enveloping2 -> rc=0
130136
../examples/examples-maximilian/20-FFT -> rc=0
137+
../examples/examples-tts/streams-azure_tts-i2s.ino -> rc=1
131138
../examples/examples-tts/streams-espeak-audiokit -> rc=0
132139
../examples/examples-tts/streams-espeak-i2s -> rc=0
133140
../examples/examples-tts/streams-flite-audiokit -> rc=0
@@ -144,13 +151,12 @@
144151
../examples/examples-communication/esp-now/communication-espnow-receive_csv -> rc=0
145152
../examples/examples-communication/esp-now/communication-espnow-receive_measure -> rc=0
146153
../examples/examples-communication/esp-now/communication-espnow-send -> rc=0
147-
../examples/examples-communication/esp-now-codec/communication-codec-espnow-receive -> rc=0
148-
../examples/examples-communication/esp-now-codec/communication-codec-espnow-receive_measure -> rc=0
149-
../examples/examples-communication/esp-now-codec/communication-codec-espnow-send -> rc=0
154+
../examples/examples-communication/esp-now-codec/* -> rc=1
150155
../examples/examples-communication/ip/communication-ip-receive -> rc=0
151156
../examples/examples-communication/ip/communication-ip-receive_measure -> rc=0
152157
../examples/examples-communication/ip/communication-ip-send -> rc=0
153158
../examples/examples-communication/rtsp/communication-audiokit-rtsp -> rc=0
159+
../examples/examples-communication/rtsp/communication-codec-rtsp -> rc=0
154160
../examples/examples-communication/rtsp/communication-generator-rtsp -> rc=0
155161
../examples/tests/test-ads1015 -> rc=0
156162
../examples/tests/test-bitvector -> rc=0
@@ -164,6 +170,7 @@
164170
../examples/tests/test-resample-out -> rc=0
165171
../examples/tests/24bits/24bits-write -> rc=0
166172
../examples/tests/codecs/test-codec-aptx -> rc=0
173+
../examples/tests/codecs/test-codec-base64 -> rc=0
167174
../examples/tests/codecs/test-codec-codec2 -> rc=0
168175
../examples/tests/codecs/test-codec-flac -> rc=0
169176
../examples/tests/codecs/test-codec-g711_alaw -> rc=0
@@ -194,7 +201,6 @@
194201
../examples/tests/fft/fft-esp32 -> rc=0
195202
../examples/tests/fft/fft-espressif -> rc=0
196203
../examples/tests/fft/fft-kiss -> rc=0
197-
../examples/tests/fft/fft-ledmatrix -> rc=0
198204
../examples/tests/fft/fft-real -> rc=0
199205
../examples/tests/fft/fft-topn -> rc=0
200206
../examples/tests/fft/fft-window -> rc=0

examples/build-examples.sh

-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ compile_example "esp32:esp32:esp32" "../examples/examples-maximilian/*"
3838
compile_example "esp32:esp32:esp32" "../examples/examples-tts/streams*"
3939
compile_example "esp32:esp32:esp32" "../examples/examples-faust/streams*"
4040
compile_example "esp32:esp32:esp32" "../examples/examples-communication/esp-now/*"
41-
compile_example "esp32:esp32:esp32" "../examples/examples-communication/esp-now-codec/*"
4241
compile_example "esp32:esp32:esp32" "../examples/examples-communication/ip/*"
4342
compile_example "esp32:esp32:esp32" "../examples/examples-communication/rtsp/*"
4443
compile_example "esp32:esp32:esp32" "../examples/tests/test*"

examples/examples-communication/rtsp/communication-codec-rtsp/communication-codec-rtsp.ino

-4
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,6 @@ void setup() {
3030
// Setup sine wave
3131
sineWave.begin(info, N_B4);
3232

33-
// setup Output mixer with default buffer size
34-
mixer.begin();
35-
36-
3733
// Start Output Stream
3834
rtsp_stream.begin(info);
3935

examples/tests/conversion/channel-converter-increase-in/channel-converter-increase-in.ino

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#include "AudioTools.h"
22

3-
uint16_t sample_rate=44100;
4-
uint8_t from_channels = 1; // The stream will have 2 channels
3+
AudioInfo info(44100, 1, 16);
54
uint8_t to_channels = 2; // The stream will have 2 channels
65
SineWaveGenerator<int16_t> sine_wave(32000); // subclass of SoundGenerator with max amplitude of 32000
76
GeneratedSoundStream<int16_t> in_stream(sine_wave); // Stream generated from sine wave
@@ -13,8 +12,8 @@ void setup(){
1312
Serial.begin(115200);
1413
AudioLogger::instance().begin(Serial, AudioLogger::Info);
1514

16-
sine_wave.begin(from_channels, sample_rate, N_B4);
17-
conv.begin(from_channels, to_channels);
15+
sine_wave.begin(info, N_B4);
16+
conv.begin(info, to_channels);
1817
in_stream.begin();
1918

2019
out.begin();

examples/tests/conversion/channel-converter-increase-out/channel-converter-increase-out.ino

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#include "AudioTools.h"
22

3-
uint16_t sample_rate=44100;
4-
uint8_t from_channels = 1; // The stream will have 2 channels
3+
AudioInfo info(44100, 1, 16);
54
uint8_t to_channels = 2; // The stream will have 2 channels
65
SineWaveGenerator<int16_t> sine_wave(32000); // subclass of SoundGenerator with max amplitude of 32000
76
GeneratedSoundStream<int16_t> in_stream(sine_wave); // Stream generated from sine wave
@@ -13,8 +12,8 @@ void setup(){
1312
Serial.begin(115200);
1413
AudioLogger::instance().begin(Serial, AudioLogger::Info);
1514

16-
sine_wave.begin(from_channels, sample_rate, N_B4);
17-
conv.begin(from_channels, to_channels);
15+
sine_wave.begin(info, N_B4);
16+
conv.begin(from, to_channels);
1817
in_stream.begin();
1918

2019
out.begin();

examples/tests/conversion/channel-converter-reduce-in/channel-converter-reduce-in.ino

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#include "AudioTools.h"
22

3-
uint16_t sample_rate=44100;
4-
uint8_t from_channels = 2; // The stream will have 2 channels
3+
AudioInfo info(44100, 2, 16);
54
uint8_t to_channels = 1; // The stream will have 2 channels
65
SineWaveGenerator<int16_t> sine_wave(32000); // subclass of SoundGenerator with max amplitude of 32000
76
GeneratedSoundStream<int16_t> in_stream(sine_wave); // Stream generated from sine wave
@@ -13,8 +12,8 @@ void setup(){
1312
Serial.begin(115200);
1413
AudioLogger::instance().begin(Serial, AudioLogger::Info);
1514

16-
sine_wave.begin(from_channels, sample_rate, N_B4);
17-
conv.begin(from_channels, to_channels);
15+
sine_wave.begin(info, N_B4);
16+
conv.begin(info, to_channels);
1817
in_stream.begin();
1918

2019
out.begin();

examples/tests/conversion/channel-converter-reduce-out/channel-converter-reduce-out.ino

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#include "AudioTools.h"
22

3-
uint16_t sample_rate=44100;
4-
uint8_t from_channels = 2; // The stream will have 2 channels
3+
AudioInfo info(44100, 2, 16);
54
uint8_t to_channels = 1; // The stream will have 2 channels
65
SineWaveGenerator<int16_t> sine_wave(32000); // subclass of SoundGenerator with max amplitude of 32000
76
GeneratedSoundStream<int16_t> in_stream(sine_wave); // Stream generated from sine wave
@@ -13,8 +12,8 @@ void setup(){
1312
Serial.begin(115200);
1413
AudioLogger::instance().begin(Serial, AudioLogger::Info);
1514

16-
sine_wave.begin(from_channels, sample_rate, N_B4);
17-
conv.begin(from_channels, to_channels);
15+
sine_wave.begin(info, N_B4);
16+
conv.begin(info, to_channels);
1817
in_stream.begin();
1918

2019
out.begin();

0 commit comments

Comments
 (0)