mpflaga / Arduino_Library-vs1053_for_SdFat

Arduino device library interfacing vs1053 MP3 player chip to audio stream from an Sd Card.
https://mpflaga.github.io/Arduino_Library-vs1053_for_SdFat/
Other
38 stars 12 forks source link

Make it work for ESP8266 #7

Closed RobTranquillo closed 3 years ago

RobTranquillo commented 4 years ago

Hi, and thank you for this piece.

Sadly the library does not compile for an esp8266 (SdFat did). I know, it's a Arduino library and must not cover other hardware, but i want to ask, if there is an easy path to get it work for it? Because am not able to do that myself.

I'am using VSCode with PlatformIO. Here are the errors:

> Executing task in folder VS1053-NodeMCU-Player: platformio run <

Processing nodemcuv2 (platform: espressif8266; board: nodemcuv2; framework: arduino)
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif8266/nodemcuv2.html
PLATFORM: Espressif 8266 2.3.2 > NodeMCU 1.0 (ESP-12E Module)
HARDWARE: ESP8266 80MHz, 80KB RAM, 4MB Flash
PACKAGES: 
 - framework-arduinoespressif8266 2.20603.191216 (2.6.3) 
 - tool-esptool 1.413.0 (4.13) 
 - tool-esptoolpy 1.20800.0 (2.8.0) 
 - toolchain-xtensa 2.40802.191122 (4.8.2)
LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 34 compatible libraries
Scanning dependencies...
Dependency Graph
|-- <ESP_VS1053_Library> 1.1.2
|   |-- <SPI> 1.0
|-- <SdFat> 1.1.2
|   |-- <SPI> 1.0
|-- <VS1053 for use with SdFat> 1.3.0
|   |-- <SPI> 1.0
|   |-- <SdFat> 1.1.2
|   |   |-- <SPI> 1.0
Building in release mode
Compiling .pio/build/nodemcuv2/src/main.cpp.o
Generating LD script .pio/build/nodemcuv2/ld/local.eagle.app.v6.common.ld
Compiling .pio/build/nodemcuv2/libf8e/SPI/SPI.cpp.o
Compiling .pio/build/nodemcuv2/libec7/ESP_VS1053_Library_ID1744/VS1053.cpp.o
Compiling .pio/build/nodemcuv2/lib482/SdFat_ID322/FatLib/FatFile.cpp.o
Compiling .pio/build/nodemcuv2/lib482/SdFat_ID322/FatLib/FatFileLFN.cpp.o
.pio/libdeps/nodemcuv2/ESP_VS1053_Library_ID1744/src/VS1053.cpp: In member function 'void VS1053::printDetails(const char*)':
.pio/libdeps/nodemcuv2/ESP_VS1053_Library_ID1744/src/VS1053.cpp:251:14: warning: variable 'regbuf' set but not used [-Wunused-but-set-variable]
     uint16_t regbuf[16];
              ^
Archiving .pio/build/nodemcuv2/libf8e/libSPI.a
Indexing .pio/build/nodemcuv2/libf8e/libSPI.a
Compiling .pio/build/nodemcuv2/lib482/SdFat_ID322/FatLib/FatFilePrint.cpp.o
Archiving .pio/build/nodemcuv2/libec7/libESP_VS1053_Library_ID1744.a
Indexing .pio/build/nodemcuv2/libec7/libESP_VS1053_Library_ID1744.a
Compiling .pio/build/nodemcuv2/lib482/SdFat_ID322/FatLib/FatFileSFN.cpp.o
Compiling .pio/build/nodemcuv2/lib482/SdFat_ID322/FatLib/FatVolume.cpp.o
Compiling .pio/build/nodemcuv2/lib482/SdFat_ID322/FatLib/FmtNumber.cpp.o
Compiling .pio/build/nodemcuv2/lib482/SdFat_ID322/FatLib/StdioStream.cpp.o
Compiling .pio/build/nodemcuv2/lib482/SdFat_ID322/FatLib/fstream.cpp.o
Compiling .pio/build/nodemcuv2/lib482/SdFat_ID322/FatLib/istream.cpp.o
Compiling .pio/build/nodemcuv2/lib482/SdFat_ID322/FatLib/ostream.cpp.o
Compiling .pio/build/nodemcuv2/lib482/SdFat_ID322/MinimumSerial.cpp.o
Compiling .pio/build/nodemcuv2/lib482/SdFat_ID322/SdCard/SdSpiCard.cpp.o
Compiling .pio/build/nodemcuv2/lib482/SdFat_ID322/SdCard/SdSpiCardEX.cpp.o
Compiling .pio/build/nodemcuv2/lib482/SdFat_ID322/SdCard/SdioCardEX.cpp.o
Compiling .pio/build/nodemcuv2/lib482/SdFat_ID322/SdCard/SdioTeensy.cpp.o
Compiling .pio/build/nodemcuv2/lib482/SdFat_ID322/SpiDriver/SdSpiESP8266.cpp.o
Compiling .pio/build/nodemcuv2/lib482/SdFat_ID322/SpiDriver/SdSpiParticle.cpp.o
Compiling .pio/build/nodemcuv2/lib482/SdFat_ID322/SpiDriver/SdSpiSAM3X.cpp.o
Compiling .pio/build/nodemcuv2/lib482/SdFat_ID322/SpiDriver/SdSpiSTM32.cpp.o
Compiling .pio/build/nodemcuv2/lib482/SdFat_ID322/SpiDriver/SdSpiTeensy3.cpp.o
Compiling .pio/build/nodemcuv2/libd94/VS1053 for use with SdFat_ID1688/vs1053_SdFat.cpp.o
Archiving .pio/build/nodemcuv2/libFrameworkArduinoVariant.a
Indexing .pio/build/nodemcuv2/libFrameworkArduinoVariant.a
In file included from .pio/libdeps/nodemcuv2/VS1053 for use with SdFat_ID1688/src/vs1053_SdFat_config.h:208:0,
                 from .pio/libdeps/nodemcuv2/VS1053 for use with SdFat_ID1688/src/vs1053_SdFat.h:13,
                 from .pio/libdeps/nodemcuv2/VS1053 for use with SdFat_ID1688/src/vs1053_SdFat.cpp:9:
~/.platformio/packages/framework-arduinoespressif8266/variants/nodemcu/pins_arduino.h:32:14: error: 'uint8_t' does not name a type
 static const uint8_t SDA = PIN_WIRE_SDA;
              ^
~/.platformio/packages/framework-arduinoespressif8266/variants/nodemcu/pins_arduino.h:33:14: error: 'uint8_t' does not name a type
 static const uint8_t SCL = PIN_WIRE_SCL;
              ^
~/.platformio/packages/framework-arduinoespressif8266/variants/nodemcu/pins_arduino.h:40:14: error: 'uint8_t' does not name a type
 static const uint8_t D0   = 16;
              ^
~/.platformio/packages/framework-arduinoespressif8266/variants/nodemcu/pins_arduino.h:41:14: error: 'uint8_t' does not name a type
 static const uint8_t D1   = 5;
              ^
~/.platformio/packages/framework-arduinoespressif8266/variants/nodemcu/pins_arduino.h:42:14: error: 'uint8_t' does not name a type
 static const uint8_t D2   = 4;
              ^
~/.platformio/packages/framework-arduinoespressif8266/variants/nodemcu/pins_arduino.h:43:14: error: 'uint8_t' does not name a type
 static const uint8_t D3   = 0;
              ^
~/.platformio/packages/framework-arduinoespressif8266/variants/nodemcu/pins_arduino.h:44:14: error: 'uint8_t' does not name a type
 static const uint8_t D4   = 2;
              ^
~/.platformio/packages/framework-arduinoespressif8266/variants/nodemcu/pins_arduino.h:45:14: error: 'uint8_t' does not name a type
 static const uint8_t D5   = 14;
              ^
~/.platformio/packages/framework-arduinoespressif8266/variants/nodemcu/pins_arduino.h:46:14: error: 'uint8_t' does not name a type
 static const uint8_t D6   = 12;
              ^
~/.platformio/packages/framework-arduinoespressif8266/variants/nodemcu/pins_arduino.h:47:14: error: 'uint8_t' does not name a type
 static const uint8_t D7   = 13;
              ^
~/.platformio/packages/framework-arduinoespressif8266/variants/nodemcu/pins_arduino.h:48:14: error: 'uint8_t' does not name a type
 static const uint8_t D8   = 15;
              ^
~/.platformio/packages/framework-arduinoespressif8266/variants/nodemcu/pins_arduino.h:49:14: error: 'uint8_t' does not name a type
 static const uint8_t D9   = 3;
              ^
~/.platformio/packages/framework-arduinoespressif8266/variants/nodemcu/pins_arduino.h:50:14: error: 'uint8_t' does not name a type
 static const uint8_t D10  = 1;
              ^
In file included from ~/.platformio/packages/framework-arduinoespressif8266/variants/nodemcu/pins_arduino.h:52:0,
                 from .pio/libdeps/nodemcuv2/VS1053 for use with SdFat_ID1688/src/vs1053_SdFat_config.h:208,
                 from .pio/libdeps/nodemcuv2/VS1053 for use with SdFat_ID1688/src/vs1053_SdFat.h:13,
                 from .pio/libdeps/nodemcuv2/VS1053 for use with SdFat_ID1688/src/vs1053_SdFat.cpp:9:
~/.platformio/packages/framework-arduinoespressif8266/variants/nodemcu/../generic/common.h:44:14: error: 'uint8_t' does not name a type
 static const uint8_t SS    = PIN_SPI_SS;
              ^
~/.platformio/packages/framework-arduinoespressif8266/variants/nodemcu/../generic/common.h:45:14: error: 'uint8_t' does not name a type
 static const uint8_t MOSI  = PIN_SPI_MOSI;
              ^
~/.platformio/packages/framework-arduinoespressif8266/variants/nodemcu/../generic/common.h:46:14: error: 'uint8_t' does not name a type
 static const uint8_t MISO  = PIN_SPI_MISO;
              ^
~/.platformio/packages/framework-arduinoespressif8266/variants/nodemcu/../generic/common.h:47:14: error: 'uint8_t' does not name a type
 static const uint8_t SCK   = PIN_SPI_SCK;
              ^
~/.platformio/packages/framework-arduinoespressif8266/variants/nodemcu/../generic/common.h:53:14: error: 'uint8_t' does not name a type
 static const uint8_t A0 = PIN_A0;
              ^
Compiling .pio/build/nodemcuv2/FrameworkArduino/Esp-frag.cpp.o
Compiling .pio/build/nodemcuv2/FrameworkArduino/Esp-version.cpp.o
Archiving .pio/build/nodemcuv2/lib482/libSdFat_ID322.a
Indexing .pio/build/nodemcuv2/lib482/libSdFat_ID322.a
Compiling .pio/build/nodemcuv2/FrameworkArduino/Esp.cpp.o
In file included from .pio/libdeps/nodemcuv2/VS1053 for use with SdFat_ID1688/src/vs1053_SdFat.h:24:0,
                 from .pio/libdeps/nodemcuv2/VS1053 for use with SdFat_ID1688/src/vs1053_SdFat.cpp:9:
.pio/libdeps/nodemcuv2/SdFat_ID322/src/SdFat.h:329:30: error: 'SS' was not declared in this scope
   bool begin(uint8_t csPin = SS, SPISettings spiSettings = SPI_FULL_SPEED) {
                              ^
.pio/libdeps/nodemcuv2/SdFat_ID322/src/SdFat.h:339:34: error: 'SS' was not declared in this scope
   bool cardBegin(uint8_t csPin = SS, SPISettings settings = SPI_FULL_SPEED) {
                                  ^
.pio/libdeps/nodemcuv2/SdFat_ID322/src/SdFat.h:506:30: error: 'SS' was not declared in this scope
   bool begin(uint8_t csPin = SS, SPISettings settings = SD_SCK_MHZ(50)) {
                              ^
In file included from .pio/libdeps/nodemcuv2/VS1053 for use with SdFat_ID1688/src/vs1053_SdFat.h:13:0,
                 from .pio/libdeps/nodemcuv2/VS1053 for use with SdFat_ID1688/src/vs1053_SdFat.cpp:9:
.pio/libdeps/nodemcuv2/VS1053 for use with SdFat_ID1688/src/vs1053_SdFat_config.h:382:34: warning: left operand of comma operator has no effect [-Wunused-value]
 #define MIDI_CHANNEL             9 
                                  ^
.pio/libdeps/nodemcuv2/VS1053 for use with SdFat_ID1688/src/vs1053_SdFat.cpp:61:57: note: in expansion of macro 'MIDI_CHANNEL'
 #define MIDI_EVENT_NOTE_ON       0, (MIDI_NOTE_ON<<4) + MIDI_CHANNEL, MIDI_NOTE_NUMBER, MIDI_INTENSITY
                                                         ^
.pio/libdeps/nodemcuv2/VS1053 for use with SdFat_ID1688/src/vs1053_SdFat.cpp:59:56: note: in expansion of macro 'MIDI_EVENT_NOTE_ON'
 #define MIDI_CHUNK_SIZE          0,    0,    0, sizeof(MIDI_EVENT_NOTE_ON) + sizeof(MIDI_EVENT_NOTE_OFF) + sizeof(MIDI_END_OF_TRACK) // hard coded with zero padded
                                                        ^
.pio/libdeps/nodemcuv2/VS1053 for use with SdFat_ID1688/src/vs1053_SdFat.cpp:82:159: note: in expansion of macro 'MIDI_CHUNK_SIZE'
 PROGMEM const uint8_t SingleMIDInoteFile[] = {MIDI_HDR_CHUNK_ID, MIDI_CHUNKSIZE, MIDI_FORMAT, MIDI_NUMBER_OF_TRACKS, MIDI_TIME_DIVISION, MIDI_TRACK_CHUNK_ID, MIDI_CHUNK_SIZE, MIDI_EVENT_NOTE_ON, MIDI_EVENT_NOTE_OFF, MIDI_END_OF_TRACK};
                                                                                                                                                               ^
.pio/libdeps/nodemcuv2/VS1053 for use with SdFat_ID1688/src/vs1053_SdFat_config.h:392:33: warning: right operand of comma operator has no effect [-Wunused-value]
 #define MIDI_NOTE_NUMBER        56
                                 ^
.pio/libdeps/nodemcuv2/VS1053 for use with SdFat_ID1688/src/vs1053_SdFat.cpp:61:71: note: in expansion of macro 'MIDI_NOTE_NUMBER'
 #define MIDI_EVENT_NOTE_ON       0, (MIDI_NOTE_ON<<4) + MIDI_CHANNEL, MIDI_NOTE_NUMBER, MIDI_INTENSITY
                                                                       ^
.pio/libdeps/nodemcuv2/VS1053 for use with SdFat_ID1688/src/vs1053_SdFat.cpp:59:56: note: in expansion of macro 'MIDI_EVENT_NOTE_ON'
 #define MIDI_CHUNK_SIZE          0,    0,    0, sizeof(MIDI_EVENT_NOTE_ON) + sizeof(MIDI_EVENT_NOTE_OFF) + sizeof(MIDI_END_OF_TRACK) // hard coded with zero padded
                                                        ^
.pio/libdeps/nodemcuv2/VS1053 for use with SdFat_ID1688/src/vs1053_SdFat.cpp:82:159: note: in expansion of macro 'MIDI_CHUNK_SIZE'
 PROGMEM const uint8_t SingleMIDInoteFile[] = {MIDI_HDR_CHUNK_ID, MIDI_CHUNKSIZE, MIDI_FORMAT, MIDI_NUMBER_OF_TRACKS, MIDI_TIME_DIVISION, MIDI_TRACK_CHUNK_ID, MIDI_CHUNK_SIZE, MIDI_EVENT_NOTE_ON, MIDI_EVENT_NOTE_OFF, MIDI_END_OF_TRACK};
                                                                                                                                                               ^
.pio/libdeps/nodemcuv2/VS1053 for use with SdFat_ID1688/src/vs1053_SdFat_config.h:411:32: warning: right operand of comma operator has no effect [-Wunused-value]
 #define MIDI_INTENSITY         127 // Full scale.
                                ^
.pio/libdeps/nodemcuv2/VS1053 for use with SdFat_ID1688/src/vs1053_SdFat.cpp:61:89: note: in expansion of macro 'MIDI_INTENSITY'
 #define MIDI_EVENT_NOTE_ON       0, (MIDI_NOTE_ON<<4) + MIDI_CHANNEL, MIDI_NOTE_NUMBER, MIDI_INTENSITY
                                                                                         ^
.pio/libdeps/nodemcuv2/VS1053 for use with SdFat_ID1688/src/vs1053_SdFat.cpp:59:56: note: in expansion of macro 'MIDI_EVENT_NOTE_ON'
 #define MIDI_CHUNK_SIZE          0,    0,    0, sizeof(MIDI_EVENT_NOTE_ON) + sizeof(MIDI_EVENT_NOTE_OFF) + sizeof(MIDI_END_OF_TRACK) // hard coded with zero padded
                                                        ^
.pio/libdeps/nodemcuv2/VS1053 for use with SdFat_ID1688/src/vs1053_SdFat.cpp:82:159: note: in expansion of macro 'MIDI_CHUNK_SIZE'
 PROGMEM const uint8_t SingleMIDInoteFile[] = {MIDI_HDR_CHUNK_ID, MIDI_CHUNKSIZE, MIDI_FORMAT, MIDI_NUMBER_OF_TRACKS, MIDI_TIME_DIVISION, MIDI_TRACK_CHUNK_ID, MIDI_CHUNK_SIZE, MIDI_EVENT_NOTE_ON, MIDI_EVENT_NOTE_OFF, MIDI_END_OF_TRACK};
                                                                                                                                                               ^
.pio/libdeps/nodemcuv2/VS1053 for use with SdFat_ID1688/src/vs1053_SdFat_config.h:382:34: warning: left operand of comma operator has no effect [-Wunused-value]
 #define MIDI_CHANNEL             9 
                                  ^
.pio/libdeps/nodemcuv2/VS1053 for use with SdFat_ID1688/src/vs1053_SdFat.cpp:62:72: note: in expansion of macro 'MIDI_CHANNEL'
 #define MIDI_EVENT_NOTE_OFF   MIDI_NOTE_DURATION, (MIDI_NOTE_OFF<<4) + MIDI_CHANNEL, MIDI_NOTE_NUMBER, MIDI_INTENSITY
                                                                        ^
.pio/libdeps/nodemcuv2/VS1053 for use with SdFat_ID1688/src/vs1053_SdFat.cpp:59:85: note: in expansion of macro 'MIDI_EVENT_NOTE_OFF'
 #define MIDI_CHUNK_SIZE          0,    0,    0, sizeof(MIDI_EVENT_NOTE_ON) + sizeof(MIDI_EVENT_NOTE_OFF) + sizeof(MIDI_END_OF_TRACK) // hard coded with zero padded
                                                                                     ^
.pio/libdeps/nodemcuv2/VS1053 for use with SdFat_ID1688/src/vs1053_SdFat.cpp:82:159: note: in expansion of macro 'MIDI_CHUNK_SIZE'
 PROGMEM const uint8_t SingleMIDInoteFile[] = {MIDI_HDR_CHUNK_ID, MIDI_CHUNKSIZE, MIDI_FORMAT, MIDI_NUMBER_OF_TRACKS, MIDI_TIME_DIVISION, MIDI_TRACK_CHUNK_ID, MIDI_CHUNK_SIZE, MIDI_EVENT_NOTE_ON, MIDI_EVENT_NOTE_OFF, MIDI_END_OF_TRACK};
                                                                                                                                                               ^
.pio/libdeps/nodemcuv2/VS1053 for use with SdFat_ID1688/src/vs1053_SdFat_config.h:392:33: warning: right operand of comma operator has no effect [-Wunused-value]
 #define MIDI_NOTE_NUMBER        56
                                 ^
.pio/libdeps/nodemcuv2/VS1053 for use with SdFat_ID1688/src/vs1053_SdFat.cpp:62:86: note: in expansion of macro 'MIDI_NOTE_NUMBER'
 #define MIDI_EVENT_NOTE_OFF   MIDI_NOTE_DURATION, (MIDI_NOTE_OFF<<4) + MIDI_CHANNEL, MIDI_NOTE_NUMBER, MIDI_INTENSITY
                                                                                      ^
.pio/libdeps/nodemcuv2/VS1053 for use with SdFat_ID1688/src/vs1053_SdFat.cpp:59:85: note: in expansion of macro 'MIDI_EVENT_NOTE_OFF'
 #define MIDI_CHUNK_SIZE          0,    0,    0, sizeof(MIDI_EVENT_NOTE_ON) + sizeof(MIDI_EVENT_NOTE_OFF) + sizeof(MIDI_END_OF_TRACK) // hard coded with zero padded
                                                                                     ^
.pio/libdeps/nodemcuv2/VS1053 for use with SdFat_ID1688/src/vs1053_SdFat.cpp:82:159: note: in expansion of macro 'MIDI_CHUNK_SIZE'
 PROGMEM const uint8_t SingleMIDInoteFile[] = {MIDI_HDR_CHUNK_ID, MIDI_CHUNKSIZE, MIDI_FORMAT, MIDI_NUMBER_OF_TRACKS, MIDI_TIME_DIVISION, MIDI_TRACK_CHUNK_ID, MIDI_CHUNK_SIZE, MIDI_EVENT_NOTE_ON, MIDI_EVENT_NOTE_OFF, MIDI_END_OF_TRACK};
                                                                                                                                                               ^
.pio/libdeps/nodemcuv2/VS1053 for use with SdFat_ID1688/src/vs1053_SdFat_config.h:411:32: warning: right operand of comma operator has no effect [-Wunused-value]
 #define MIDI_INTENSITY         127 // Full scale.
                                ^
.pio/libdeps/nodemcuv2/VS1053 for use with SdFat_ID1688/src/vs1053_SdFat.cpp:62:104: note: in expansion of macro 'MIDI_INTENSITY'
 #define MIDI_EVENT_NOTE_OFF   MIDI_NOTE_DURATION, (MIDI_NOTE_OFF<<4) + MIDI_CHANNEL, MIDI_NOTE_NUMBER, MIDI_INTENSITY
                                                                                                        ^
.pio/libdeps/nodemcuv2/VS1053 for use with SdFat_ID1688/src/vs1053_SdFat.cpp:59:85: note: in expansion of macro 'MIDI_EVENT_NOTE_OFF'
 #define MIDI_CHUNK_SIZE          0,    0,    0, sizeof(MIDI_EVENT_NOTE_ON) + sizeof(MIDI_EVENT_NOTE_OFF) + sizeof(MIDI_END_OF_TRACK) // hard coded with zero padded
                                                                                     ^
.pio/libdeps/nodemcuv2/VS1053 for use with SdFat_ID1688/src/vs1053_SdFat.cpp:82:159: note: in expansion of macro 'MIDI_CHUNK_SIZE'
 PROGMEM const uint8_t SingleMIDInoteFile[] = {MIDI_HDR_CHUNK_ID, MIDI_CHUNKSIZE, MIDI_FORMAT, MIDI_NUMBER_OF_TRACKS, MIDI_TIME_DIVISION, MIDI_TRACK_CHUNK_ID, MIDI_CHUNK_SIZE, MIDI_EVENT_NOTE_ON, MIDI_EVENT_NOTE_OFF, MIDI_END_OF_TRACK};
                                                                                                                                                               ^
.pio/libdeps/nodemcuv2/VS1053 for use with SdFat_ID1688/src/vs1053_SdFat.cpp:64:37: warning: left operand of comma operator has no effect [-Wunused-value]
 #define MIDI_END_OF_TRACK        0, 0xFF, 0x2F,    0
                                     ^
.pio/libdeps/nodemcuv2/VS1053 for use with SdFat_ID1688/src/vs1053_SdFat.cpp:59:115: note: in expansion of macro 'MIDI_END_OF_TRACK'
 #define MIDI_CHUNK_SIZE          0,    0,    0, sizeof(MIDI_EVENT_NOTE_ON) + sizeof(MIDI_EVENT_NOTE_OFF) + sizeof(MIDI_END_OF_TRACK) // hard coded with zero padded
                                                                                                                   ^
.pio/libdeps/nodemcuv2/VS1053 for use with SdFat_ID1688/src/vs1053_SdFat.cpp:82:159: note: in expansion of macro 'MIDI_CHUNK_SIZE'
 PROGMEM const uint8_t SingleMIDInoteFile[] = {MIDI_HDR_CHUNK_ID, MIDI_CHUNKSIZE, MIDI_FORMAT, MIDI_NUMBER_OF_TRACKS, MIDI_TIME_DIVISION, MIDI_TRACK_CHUNK_ID, MIDI_CHUNK_SIZE, MIDI_EVENT_NOTE_ON, MIDI_EVENT_NOTE_OFF, MIDI_END_OF_TRACK};
                                                                                                                                                               ^
.pio/libdeps/nodemcuv2/VS1053 for use with SdFat_ID1688/src/vs1053_SdFat.cpp:64:43: warning: right operand of comma operator has no effect [-Wunused-value]
 #define MIDI_END_OF_TRACK        0, 0xFF, 0x2F,    0
                                           ^
.pio/libdeps/nodemcuv2/VS1053 for use with SdFat_ID1688/src/vs1053_SdFat.cpp:59:115: note: in expansion of macro 'MIDI_END_OF_TRACK'
 #define MIDI_CHUNK_SIZE          0,    0,    0, sizeof(MIDI_EVENT_NOTE_ON) + sizeof(MIDI_EVENT_NOTE_OFF) + sizeof(MIDI_END_OF_TRACK) // hard coded with zero padded
                                                                                                                   ^
.pio/libdeps/nodemcuv2/VS1053 for use with SdFat_ID1688/src/vs1053_SdFat.cpp:82:159: note: in expansion of macro 'MIDI_CHUNK_SIZE'
 PROGMEM const uint8_t SingleMIDInoteFile[] = {MIDI_HDR_CHUNK_ID, MIDI_CHUNKSIZE, MIDI_FORMAT, MIDI_NUMBER_OF_TRACKS, MIDI_TIME_DIVISION, MIDI_TRACK_CHUNK_ID, MIDI_CHUNK_SIZE, MIDI_EVENT_NOTE_ON, MIDI_EVENT_NOTE_OFF, MIDI_END_OF_TRACK};
                                                                                                                                                               ^
.pio/libdeps/nodemcuv2/VS1053 for use with SdFat_ID1688/src/vs1053_SdFat.cpp:64:52: warning: right operand of comma operator has no effect [-Wunused-value]
 #define MIDI_END_OF_TRACK        0, 0xFF, 0x2F,    0
                                                    ^
.pio/libdeps/nodemcuv2/VS1053 for use with SdFat_ID1688/src/vs1053_SdFat.cpp:59:115: note: in expansion of macro 'MIDI_END_OF_TRACK'
 #define MIDI_CHUNK_SIZE          0,    0,    0, sizeof(MIDI_EVENT_NOTE_ON) + sizeof(MIDI_EVENT_NOTE_OFF) + sizeof(MIDI_END_OF_TRACK) // hard coded with zero padded
                                                                                                                   ^
.pio/libdeps/nodemcuv2/VS1053 for use with SdFat_ID1688/src/vs1053_SdFat.cpp:82:159: note: in expansion of macro 'MIDI_CHUNK_SIZE'
 PROGMEM const uint8_t SingleMIDInoteFile[] = {MIDI_HDR_CHUNK_ID, MIDI_CHUNKSIZE, MIDI_FORMAT, MIDI_NUMBER_OF_TRACKS, MIDI_TIME_DIVISION, MIDI_TRACK_CHUNK_ID, MIDI_CHUNK_SIZE, MIDI_EVENT_NOTE_ON, MIDI_EVENT_NOTE_OFF, MIDI_END_OF_TRACK};
                                                                                                                                                               ^
.pio/libdeps/nodemcuv2/VS1053 for use with SdFat_ID1688/src/vs1053_SdFat.cpp: In member function 'uint8_t vs1053::vs_init()':
.pio/libdeps/nodemcuv2/VS1053 for use with SdFat_ID1688/src/vs1053_SdFat.cpp:245:18: warning: large integer implicitly truncated to unsigned type [-Woverflow]
   spi_Read_Rate  = SPI_CLOCK_DIV16;
                  ^
.pio/libdeps/nodemcuv2/VS1053 for use with SdFat_ID1688/src/vs1053_SdFat.cpp:246:18: warning: large integer implicitly truncated to unsigned type [-Woverflow]
   spi_Write_Rate = SPI_CLOCK_DIV16;
                  ^
.pio/libdeps/nodemcuv2/VS1053 for use with SdFat_ID1688/src/vs1053_SdFat.cpp:277:18: warning: large integer implicitly truncated to unsigned type [-Woverflow]
   spi_Read_Rate  = SPI_CLOCK_DIV2; //use safe SPI rate of (8MHz / 2 = 4MHz)
                  ^
.pio/libdeps/nodemcuv2/VS1053 for use with SdFat_ID1688/src/vs1053_SdFat.cpp:278:18: warning: large integer implicitly truncated to unsigned type [-Woverflow]
   spi_Write_Rate = SPI_CLOCK_DIV2; //use safe SPI rate of (8MHz / 2 = 4MHz)
                  ^
.pio/libdeps/nodemcuv2/VS1053 for use with SdFat_ID1688/src/vs1053_SdFat.cpp:292:34: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
   if(VSLoadUserCode("patches.053")) return 6;
                                  ^
.pio/libdeps/nodemcuv2/VS1053 for use with SdFat_ID1688/src/vs1053_SdFat.cpp: In member function 'uint8_t vs1053::playTrack(uint8_t)':
.pio/libdeps/nodemcuv2/VS1053 for use with SdFat_ID1688/src/vs1053_SdFat.cpp:1029:11: warning: unused variable 'trackNumber' [-Wunused-variable]
   uint8_t trackNumber = 1;
           ^
*** [.pio/build/nodemcuv2/libd94/VS1053 for use with SdFat_ID1688/vs1053_SdFat.cpp.o] Error 1
mpflaga commented 3 years ago

I believe this is resolved with Update vs1053_SdFat.cpp - Support ESP32 https://github.com/mpflaga/Arduino_Library-vs1053_for_SdFat/pull/10