Skip to content

Commit a6820d8

Browse files
committed
examples compile errors
1 parent 88a2ce6 commit a6820d8

File tree

8 files changed

+16
-8
lines changed

8 files changed

+16
-8
lines changed

examples/build-arch-log.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ arduino:avr:nano ./examples-stream/streams-generator-serial -> rc=0
1010
arduino:samd:arduino_zero_native ./examples-stream/streams-generator-serial -> rc=0
1111
arduino:renesas_uno:unor4wifi ./examples-stream/streams-generator-serial -> rc=0
1212
arduino:mbed_nano:nano33ble ./examples-stream/streams-generator-serial -> rc=0
13+
arduino:mbed_rp2040:pico ./examples-stream/streams-generator-serial -> rc=0

examples/build-examples-log.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@
248248
../examples/tests/codecs/test-codec-adpcm-xq -> rc=0
249249
../examples/tests/codecs/test-codec-aptx -> rc=0
250250
../examples/tests/codecs/test-codec-base64 -> rc=0
251-
../examples/tests/codecs/test-codec-codec2 -> rc=1
251+
../examples/tests/codecs/test-codec-codec2 -> rc=0
252252
../examples/tests/codecs/test-codec-flac -> rc=0
253253
../examples/tests/codecs/test-codec-g711_alaw -> rc=0
254254
../examples/tests/codecs/test-codec-g711_ulaw -> rc=0
@@ -323,6 +323,11 @@
323323
../examples/tests/filters/test-filter -> rc=0
324324
../examples/tests/filters/test-lowpass -> rc=0
325325
../examples/tests/filters/test-median-filter -> rc=0
326+
../examples/tests/performance/file-speeds-sd -> rc=0
327+
../examples/tests/performance/file-speeds-sdfat -> rc=0
328+
../examples/tests/performance/file-speeds-sdmmc -> rc=0
329+
../examples/tests/performance/file-speeds-vfssd -> rc=0
330+
../examples/tests/performance/file-speeds-vfssdmmc -> rc=0
326331
../examples/tests/performance/mp3-Speed -> rc=0
327332
../examples/tests/performance/mp3-SynchronizedBufferRTOS -> rc=0
328333
../examples/tests/performance/mp3-SynchronizedNBuffer -> rc=0

examples/examples-communication/http-server/streams-generator-webserver_mp3/streams-generator-webserver_mp3.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* @file streams-generator-server_ogg.ino
2+
* @file streams-generator-webserver_mp3.ino
33
*
44
* This sketch generates a test sine wave. The result is provided as mp3 stream which can be listened to in a Web Browser
55
* Please note that MP3EncoderLAME needs a processor with PSRAM !

examples/examples-tts/streams-espeak-audiokit/streams-espeak-audiokit.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#include "AudioTools.h" // https://github.com/pschatzmann/arduino-audio-tools
1414
#include "AudioTools/AudioLibs/AudioBoardStream.h" // https://github.com/pschatzmann/arduino-audio-driver
1515
#include "FileSystems.h" // https://github.com/pschatzmann/arduino-posix-fs
16-
#include "espeak.h"
16+
#include "espeak.h" // https://github.com/pschatzmann/arduino-espeak-ng
1717

1818
AudioBoardStream i2s(AudioKitEs8388V1);
1919
ESpeak espeak(i2s);

examples/examples-tts/streams-espeak-i2s/streams-espeak-i2s.ino

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

1313
#include "AudioTools.h" // https://github.com/pschatzmann/arduino-audio-tools
1414
#include "FileSystems.h" // https://github.com/pschatzmann/arduino-posix-fs
15-
#include "espeak.h"
15+
#include "espeak.h" // https://github.com/pschatzmann/arduino-espeak-ng
1616

1717
I2SStream i2s; // or replace with any other audio sink
1818
ESpeak espeak(i2s);

examples/tests/performance/file-speeds-sdfat/file-speeds-sdfat.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ void logTime(uint32_t start, int i, const char* name, const char* op) {
4242
template<typename SD, typename Open>
4343
void testFS(const char* name, SD& sd, Open write, Open read) {
4444
SdSpiConfig cfg(PIN_AUDIO_KIT_SD_CARD_CS, DEDICATED_SPI, SPI_CLOCK, &SPI);
45-
while (!sd.begin(PIN_AUDIO_KIT_SD_CARD_CS, SPI, SPI_CLOCK)) {
45+
while (!sd.begin(cfg)) {
4646
Serial.print(name);
4747
Serial.println(" error");
4848
delay(1000);

examples/tests/performance/file-speeds-vfssdmmc/file-speeds-vfssdmmc.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#define AUDIOBOARD_SD
22
#include "AudioTools.h"
33
#include "AudioTools/Disk/VFSFile.h"
4-
4+
#include "AudioTools/Disk/VFS_SDMMC.h"
55

66
const size_t max_len = 1024 * 100;
77
uint8_t *data = nullptr;

src/AudioTools/Disk/AudioSourceVFS.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,15 @@ class AudioSourceVFS : public AudioSource {
5757
file_name = get(index);
5858
if (file_name == nullptr) return nullptr;
5959
LOGI("Using file %s", file_name);
60-
file = VFS_SD.open(file_name);
60+
assert(p_vfs != nullptr);
61+
file = p_vfs->open(file_name);
6162
return file ? &file : nullptr;
6263
}
6364

6465
virtual Stream *selectStream(const char *path) override {
6566
file.close();
66-
file = VFS_SD.open(path);
67+
assert(p_vfs != nullptr);
68+
file = p_vfs->open(path);
6769
file_name = file.name();
6870
LOGI("-> selectStream: %s", path);
6971
return file ? &file : nullptr;

0 commit comments

Comments
 (0)