Replies: 1 comment 6 replies
-
In most case, increase the I2S buffer |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
HW: ESP32-4827S043N (ESP32-S3-WROOM-1, 240MHz, 512KB SRAM, 384KB ROM, 8M PSRAM, 16MB Flash)
Display resolution is 480*272
DAC: MAX98357A
Audio Library: ESP32-audioI2S (schreibfaul1)
Graphic: GFX_Library_for_Arduino (1.4.6)
As the board limitation, I have to replace pin that connect to SD Card reader to MAX98357
#define I2S_DOUT 11
#define I2S_BCLK 12
#define I2S_LRC 13
My testing code is from the simple example from GFX and Audio.
The audio sound work fine and last for very long without any problem.
But when begin to esecute any writing (gfx->println) for few times the audio sound distorted and very low, at some point not hearing anything.
There is no special event in audio_info.
Try audio task pin to core has the same symptom.
Any idea or suggestion is appreciated.
https://github.com/moononournation/Arduino_GFX/assets/16378483/2486abc5-0bef-4e99-ae5d-be338bf40156
VDO
ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0x1 (POWERON),boot:0x8 (SPI_FAST_FLASH_BOOT)
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fce3808,len:0x44c
load:0x403c9700,len:0xbd8
load:0x403cc700,len:0x2a80
entry 0x403c98d0
info Connect to new host: "http://d141.rndfnk.com/ard/wdr/1live/live/mp3/128/stream.mp3?aggregator=app&cid=01FBRZTS1K1TCD4KA2YZ1ND8X3&sid=2ed4mvlrDKOZXXMmk7bsdpKAtMK&token=L0aREcM2_8bC-nWHIXZciRYjY-ReV5GShw_Kcxtbbes&tvf=lBouvdQbwxdkMTQxLnJuZGZuay5jb20"
info PSRAM found, inputBufferSize: 638965 bytes
info buffers freed, free Heap: 247800 bytes
info Connection has been established in 153 ms, free Heap: 246696 bytes
info redirect to new host "http://dispatcher.rndfnk.com/wdr/1live/live/mp3/128/stream.mp3?aggregator=app&cid=01FBRZTS1K1TCD4KA2YZ1ND8X3"
info Connect to new host: "http://dispatcher.rndfnk.com/wdr/1live/live/mp3/128/stream.mp3?aggregator=app&cid=01FBRZTS1K1TCD4KA2YZ1ND8X3"
info buffers freed, free Heap: 247264 bytes
info Connection has been established in 163 ms, free Heap: 246820 bytes
info redirect to new host "http://f131.rndfnk.com/ard/wdr/1live/live/mp3/128/stream.mp3?aggregator=app&cid=01FBRZTS1K1TCD4KA2YZ1ND8X3&sid=2efk35ixqpj1gkHXsJweMPRbbLr&token=OXd5NhcrOoe5IEUdHl4zPBRjL4nvUMx9DyMN1Iv62Tg&tvf=vZ0cYfxlwxdmMTMxLnJuZGZuay5jb20"
info Connect to new host: "http://f131.rndfnk.com/ard/wdr/1live/live/mp3/128/stream.mp3?aggregator=app&cid=01FBRZTS1K1TCD4KA2YZ1ND8X3&sid=2efk35ixqpj1gkHXsJweMPRbbLr&token=OXd5NhcrOoe5IEUdHl4zPBRjL4nvUMx9DyMN1Iv62Tg&tvf=vZ0cYfxlwxdmMTMxLnJuZGZuay5jb20"
info buffers freed, free Heap: 246676 bytes
info Connection has been established in 101 ms, free Heap: 246232 bytes
station 1Live, Westdeutscher Rundfunk Koeln
info MP3Decoder has been initialized, free Heap: 245244 bytes , free stack 5292 DWORDs
info stream ready
info syncword found at pos 0
info MP3 decode error -2 : MAINDATA_UNDERFLOW
info syncword found at pos 78
info syncword found at pos 0
info MP3 decode error -6 : INVALID_FRAMEHEADER
info syncword found at pos 304
info syncword found at pos 0
info Channels: 2
info SampleRate: 48000
info BitsPerSample: 16
info BitRate: 128000
info StreamTitle='Taylor Swift - Cruel Summer'
streamtitle Taylor Swift - Cruel Summer
Beta Was this translation helpful? Give feedback.
All reactions