Skip to content

Commit

Permalink
correct examples with compile errors
Browse files Browse the repository at this point in the history
  • Loading branch information
pschatzmann committed Apr 19, 2023
1 parent 76c9297 commit e95689c
Show file tree
Hide file tree
Showing 9 changed files with 28 additions and 27 deletions.
4 changes: 4 additions & 0 deletions examples/build-arch-log.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
esp32:esp32:esp32 ./examples-stream/streams-generator-serial -> rc=0
esp32:esp32:esp32c3 ./examples-stream/streams-generator-serial -> rc=0
esp32:esp32:esp32s3 ./examples-stream/streams-generator-serial -> rc=0
esp32:esp32:esp32s2 ./examples-stream/streams-generator-serial -> rc=0
esp8266:esp8266:generic ./examples-stream/streams-generator-serial -> rc=0
arduino:mbed_rp2040:pico ./examples-stream/streams-generator-serial -> rc=0
rp2040:rp2040:generic ./examples-stream/streams-generator-serial -> rc=0
arduino:avr:nano ./examples-stream/streams-generator-serial -> rc=0
arduino:samd:arduino_zero_native ./examples-stream/streams-generator-serial -> rc=0
18 changes: 12 additions & 6 deletions examples/build-examples-log.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
../examples/examples-basic-api/base-adc-a2dp -> rc=0
../examples/examples-basic-api/base-adc-serial -> rc=0
../examples/examples-basic-api/base-file_raw-serial -> rc=0
../examples/examples-basic-api/base-generator-a2dp -> rc=0
../examples/examples-basic-api/base-i2s-a2dp -> rc=0
../examples/examples-basic-api/base-player-a2dp -> rc=0
../examples/examples-basic-api/base-SynchronizedBufferRTOS -> rc=0
Expand Down Expand Up @@ -29,11 +30,13 @@
../examples/examples-stream/streams-adsr-i2s -> rc=0
../examples/examples-stream/streams-generator-a2dp -> rc=0
../examples/examples-stream/streams-generator-analog -> rc=0
../examples/examples-stream/streams-generator-formatconverter-i2s -> rc=0
../examples/examples-stream/streams-generator_fromarray-analog -> rc=0
../examples/examples-stream/streams-generator-i2s -> rc=0
../examples/examples-stream/streams-generator-pwm -> rc=0
../examples/examples-stream/streams-generator-serial -> rc=0
../examples/examples-stream/streams-generator-spdif -> rc=0
../examples/examples-stream/streams-generator-wm8960 -> rc=0
../examples/examples-stream/streams-i2s-a2dp -> rc=0
../examples/examples-stream/streams-i2s-filter-i2s -> rc=0
../examples/examples-stream/streams-i2s-i2s -> rc=0
Expand Down Expand Up @@ -66,7 +69,6 @@
../examples/examples-stream/streams-url_raw-serial -> rc=0
../examples/examples-stream/streams-url_vorbis_i2s -> rc=0
../examples/examples-stream/streams-url_wav-i2s -> rc=0
../examples/examples-audiokit/audiokit-effects-audiokit -> rc=0
../examples/examples-audiokit/basic-a2dp-audiokit -> rc=0
../examples/examples-audiokit/basic-a2dp-eq-audiokit -> rc=0
../examples/examples-audiokit/basic-audiokit-a2dp -> rc=0
Expand All @@ -75,8 +77,11 @@
../examples/examples-audiokit/player-sdfat-audiokit -> rc=0
../examples/examples-audiokit/player-sdmmc-audiokit -> rc=0
../examples/examples-audiokit/player-url_icy-audiokit -> rc=0
../examples/examples-audiokit/streams-a2dp-audiokit -> rc=0
../examples/examples-audiokit/streams-audiokit-audiokit -> rc=0
../examples/examples-audiokit/streams-audiokit-effects-audiokit -> rc=0
../examples/examples-audiokit/streams-audiokit-fft -> rc=0
../examples/examples-audiokit/streams-audiokit-fft-led -> rc=0
../examples/examples-audiokit/streams-audiokit-filter-audiokit -> rc=0
../examples/examples-audiokit/streams-audiokit-multioutput -> rc=0
../examples/examples-audiokit/streams-audiokit-multioutput-server -> rc=0
Expand All @@ -88,6 +93,7 @@
../examples/examples-audiokit/streams-audiokit-webserver_aac -> rc=0
../examples/examples-audiokit/streams-audiokit-webserver_mp3 -> rc=0
../examples/examples-audiokit/streams-audiokit-webserver_wav -> rc=0
../examples/examples-audiokit/streams-file_loop-audiokit -> rc=0
../examples/examples-audiokit/streams-generator-audiokit -> rc=0
../examples/examples-audiokit/streams-generator_fromarray-audiokit -> rc=0
../examples/examples-audiokit/streams-generator_inputmixer-audiokit -> rc=0
Expand All @@ -97,7 +103,7 @@
../examples/examples-audiokit/streams-memory_pcm-mixer-audiokit -> rc=0
../examples/examples-audiokit/streams-pins-audiokit -> rc=0
../examples/examples-audiokit/streams-sd-audiokit -> rc=0
../examples/examples-audiokit/streams-synth-a2dp -> rc=1/0
../examples/examples-audiokit/streams-synth-a2dp -> rc=0
../examples/examples-audiokit/streams-synth-audiokit -> rc=0
../examples/examples-audiokit/streams-synthbasic1-audiokit -> rc=0
../examples/examples-audiokit/streams-synthbasic2-audiokit -> rc=0
Expand Down Expand Up @@ -128,6 +134,7 @@
../examples/examples-maximilian/18-DrumMachine -> rc=0
../examples/examples-maximilian/19-Enveloping2 -> rc=0
../examples/examples-maximilian/20-FFT -> rc=0
../examples/examples-tts/streams-azure_tts-i2s.ino -> rc=1
../examples/examples-tts/streams-espeak-audiokit -> rc=0
../examples/examples-tts/streams-espeak-i2s -> rc=0
../examples/examples-tts/streams-flite-audiokit -> rc=0
Expand All @@ -144,13 +151,12 @@
../examples/examples-communication/esp-now/communication-espnow-receive_csv -> rc=0
../examples/examples-communication/esp-now/communication-espnow-receive_measure -> rc=0
../examples/examples-communication/esp-now/communication-espnow-send -> rc=0
../examples/examples-communication/esp-now-codec/communication-codec-espnow-receive -> rc=0
../examples/examples-communication/esp-now-codec/communication-codec-espnow-receive_measure -> rc=0
../examples/examples-communication/esp-now-codec/communication-codec-espnow-send -> rc=0
../examples/examples-communication/esp-now-codec/* -> rc=1
../examples/examples-communication/ip/communication-ip-receive -> rc=0
../examples/examples-communication/ip/communication-ip-receive_measure -> rc=0
../examples/examples-communication/ip/communication-ip-send -> rc=0
../examples/examples-communication/rtsp/communication-audiokit-rtsp -> rc=0
../examples/examples-communication/rtsp/communication-codec-rtsp -> rc=0
../examples/examples-communication/rtsp/communication-generator-rtsp -> rc=0
../examples/tests/test-ads1015 -> rc=0
../examples/tests/test-bitvector -> rc=0
Expand All @@ -164,6 +170,7 @@
../examples/tests/test-resample-out -> rc=0
../examples/tests/24bits/24bits-write -> rc=0
../examples/tests/codecs/test-codec-aptx -> rc=0
../examples/tests/codecs/test-codec-base64 -> rc=0
../examples/tests/codecs/test-codec-codec2 -> rc=0
../examples/tests/codecs/test-codec-flac -> rc=0
../examples/tests/codecs/test-codec-g711_alaw -> rc=0
Expand Down Expand Up @@ -194,7 +201,6 @@
../examples/tests/fft/fft-esp32 -> rc=0
../examples/tests/fft/fft-espressif -> rc=0
../examples/tests/fft/fft-kiss -> rc=0
../examples/tests/fft/fft-ledmatrix -> rc=0
../examples/tests/fft/fft-real -> rc=0
../examples/tests/fft/fft-topn -> rc=0
../examples/tests/fft/fft-window -> rc=0
Expand Down
1 change: 0 additions & 1 deletion examples/build-examples.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ compile_example "esp32:esp32:esp32" "../examples/examples-maximilian/*"
compile_example "esp32:esp32:esp32" "../examples/examples-tts/streams*"
compile_example "esp32:esp32:esp32" "../examples/examples-faust/streams*"
compile_example "esp32:esp32:esp32" "../examples/examples-communication/esp-now/*"
compile_example "esp32:esp32:esp32" "../examples/examples-communication/esp-now-codec/*"
compile_example "esp32:esp32:esp32" "../examples/examples-communication/ip/*"
compile_example "esp32:esp32:esp32" "../examples/examples-communication/rtsp/*"
compile_example "esp32:esp32:esp32" "../examples/tests/test*"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,6 @@ void setup() {
// Setup sine wave
sineWave.begin(info, N_B4);

// setup Output mixer with default buffer size
mixer.begin();


// Start Output Stream
rtsp_stream.begin(info);

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#include "AudioTools.h"

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

sine_wave.begin(from_channels, sample_rate, N_B4);
conv.begin(from_channels, to_channels);
sine_wave.begin(info, N_B4);
conv.begin(info, to_channels);
in_stream.begin();

out.begin();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#include "AudioTools.h"

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

sine_wave.begin(from_channels, sample_rate, N_B4);
conv.begin(from_channels, to_channels);
sine_wave.begin(info, N_B4);
conv.begin(from, to_channels);
in_stream.begin();

out.begin();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#include "AudioTools.h"

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

sine_wave.begin(from_channels, sample_rate, N_B4);
conv.begin(from_channels, to_channels);
sine_wave.begin(info, N_B4);
conv.begin(info, to_channels);
in_stream.begin();

out.begin();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#include "AudioTools.h"

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

sine_wave.begin(from_channels, sample_rate, N_B4);
conv.begin(from_channels, to_channels);
sine_wave.begin(info, N_B4);
conv.begin(info, to_channels);
in_stream.begin();

out.begin();
Expand Down

0 comments on commit e95689c

Please sign in to comment.