earlephilhower / ESP8266Audio

Arduino library to play MOD, WAV, FLAC, MIDI, RTTTL, MP3, and AAC files on I2S DACs or with a software emulated delta-sigma DAC on the ESP8266 and ESP32
GNU General Public License v3.0
1.99k stars 433 forks source link

ESP32 CPU frequency low voltage 80mhz can not play #606

Open HelloDB opened 1 year ago

HelloDB commented 1 year ago

setCpuFrequencyMhz(80) ---------!!!Good performance.

setCpuFrequencyMhz(40) ---------!!! Log:

ESP-ROM:esp32c3-api1-20210207 Build:Feb 7 2021 rst:0x1 (POWERON),boot:0xf (SPI_FAST_FLASH_BOOT) SPIWP:0xee mode:DIO, clock div:2 load:0x3fcd6100,len:0x38c load:0x403ce000,len:0x6ac load:0x403d0000,len:0x24e4 entry 0x403ce000

ESP32-C3 test >>> SPIFFS OK Play:/3.mp3 +0 0x3fc9de84 Play:/1.mp3 ---------!!!There is no sound, the serial port will not print the end of playback

HelloDB commented 1 year ago

I found out that I2S doesn't work at low frequency (cpu<80MHz), but I can't find a solution test: https://github.com/espressif/arduino-esp32/blob/master/libraries/I2S/examples/SimpleTone/SimpleTone.ino