No audio playing and error alocating memory for AudioBuffer #1144
CrazyGoosse
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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