**Looking at your code for AudioBuffer, m_f_psram gets assigned in the AudioBuffer::init() method. Which requires m_buffSizePSRAM to be greater than zero.
if(psramInit() && m_buffSizePSRAM > 0) {
So how can setBufSize get called before the creation of the buffers on the heap if I am creating the entire object set with just:
I confirmed that the audio buffer is using the heap not the available PSRAM. What might be the cause of it not thinking there is PSRAM available?
I'm using the Arduino framework in Platformio on an ESP32-S3 with 2MB of PSRAM.
In Platformio.ini I have:
and in my board.json I have:
When I call this in main it returns true:
psramInit()
**Looking at your code for AudioBuffer,
m_f_psram
gets assigned in the AudioBuffer::init() method. Which requires m_buffSizePSRAM to be greater than zero.if(psramInit() && m_buffSizePSRAM > 0) {
So how can setBufSize get called before the creation of the buffers on the heap if I am creating the entire object set with just:
Audio audio;