Skip to content

I2C Audio & VS1053 Audio library updating (notes for future effort) #39

@trip5

Description

@trip5

I2S_Audio

VS1053_Audio

Further notes

Attempts were made to full upgrade to more recent versions from https://github.com/schreibfaul1/ESP32-audioI2S and https://github.com/nstepanets/ESP32-vs1053_ext

But these lines will be required in platformio.ini:

[env]
platform = espressif32@6.10.0 ; needed to support GCC 11.2.0
platform_packages = 
  ; this allows gnu++20 (for span function in I2C_Audio)
  toolchain-xtensa-esp32 @ ~11.2.0 ; ESP32 (original)
  toolchain-xtensa-esp32s2 @ ~11.2.0 ; ESP32-S2
  toolchain-xtensa-esp32s3 @ ~11.2.0 ; ESP32-S3
  toolchain-riscv32-esp @ ~11.2.0 ; ESP32-C3/C6/H2 (RISC-V)

build_unflags = 
  -std=gnu++11
  -std=gnu++14
  -std=gnu++17
build_flags =
  -std=gnu++20

A modification may be needed to Audio.h:

#if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5, 0, 0)
#include <driver/i2s_std.h>
#else
#include <driver/i2s.h>
#endif

Also, it looks like:

#include <WiFiClient.h>
#include <WiFiClientSecure.h>

Will all need to be replaced with:

#include <NetworkClient.h>
#include <NetworkClientSecure.h>

Because new Arduino-ESP32 v3.x uses unified network API. ehRadio still uses the old v2.x API.

That would likely be a very large re-factor.

Maleksm's most recent mod:

yoradio-(Maleksm)-v0.9.533m(18.07.25).zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions