Commit 6e72c817 authored by Stefan Seyfried's avatar Stefan Seyfried

AudioBuffer: if "no PSRAM" is requested, really avoid it

parent bec84fe8
......@@ -50,8 +50,7 @@ size_t AudioBuffer::init() {
if(m_buffer == NULL) {
// PSRAM not found, not configured or not enough available
m_f_psram = false;
m_buffSize = m_buffSizeRAM;
m_buffer = (uint8_t*) calloc(m_buffSize, sizeof(uint8_t));
m_buffer = (uint8_t*) heap_caps_calloc(m_buffSizeRAM, sizeof(uint8_t), MALLOC_CAP_DEFAULT|MALLOC_CAP_INTERNAL);
m_buffSize = m_buffSizeRAM - m_resBuffSizeRAM;
}
if(!m_buffer)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment