No audio playing and error alocating memory for AudioBuffer #1144
Replies: 2 comments
-
|
I do have the same issues with a ESP32-DEV board (8MB, PSRAM, integrated I2S audio amp). Whatever I choose for board or memory settings, I get that error message and no sound is playing. I also tried the minmal code example with only wifi settings and one mp3 radio stream URL to play. The serial monitor in Arduino IDE says radio station gets connected and also the stream is loaded. But there is allways that buffer allocation error and no sound is playing. |
Beta Was this translation helpful? Give feedback.
-
|
Perhaps it's a question of settings. I downloaded the master as a zip file and added it to my sketch. No buffer allocation error. I used an ESP32 board with 4MB PSRAM and PCM5102A as DAC. |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
-
Does anyone have suggestions for me? Here is my setup: an ESP32S3 N4R2 dev board with an I2S amplifier. When I compile and run, in the debug monitoring, I get this error: "OOM: failed to allocate 679936 bytes for AudioBuffer". The esp then proceeds to connect to wifi and connect to the web stream (it even reads the metadata from the stream) but no audio appears and it seems to lock up (no more info prints, etc).
During the boot process, I get the Memory info dump as follows:
INTERNAL Memory Info:
Total Size : 372243 B ( 363.5 KB)
Free Bytes : 229611 B ( 224.2 KB)
Allocated Bytes : 137132 B ( 133.9 KB)
Minimum Free Bytes: 228891 B ( 223.5 KB)
Largest Free Block: 155648 B ( 152.0 KB)
SPIRAM Memory Info:
Total Size : 529728 B ( 517.3 KB)
Free Bytes : 354720 B ( 346.4 KB)
Allocated Bytes : 172160 B ( 168.1 KB)
Minimum Free Bytes: 344924 B ( 336.8 KB)
Largest Free Block: 344064 B ( 336.0 KB)
So am I reading it right that it is only detecting 500k of PSRAM? In which case the audio process obviously can't allocate the necessary 600k. Quad PSRAM is enabled in the menuconfig.
Any ideas?
I know my hardware works since the whole thing plays when using the Arduino IDE.
Beta Was this translation helpful? Give feedback.
All reactions