arduino-audio-tools
Public Member Functions | List of all members
MemoryManager Class Reference

MemoryManager which activates the use of external SPIRAM memory. When external memory is in use, the allocation strategy is to initially try to satisfy smaller allocation requests with internal memory and larger requests with external memory. This sets the limit between the two, as well as generally enabling allocation in external memory. More...

#include <MemoryManager.h>

Public Member Functions

 MemoryManager ()=default
 Default Constructor - call begin() to activate PSRAM.
 
 MemoryManager (int limit)
 Constructor which activates PSRAM. This constructor automatically calls begin()
 
bool begin (int limit=10000)
 Activate the PSRAM for allocated memory > limit.
 

Detailed Description

MemoryManager which activates the use of external SPIRAM memory. When external memory is in use, the allocation strategy is to initially try to satisfy smaller allocation requests with internal memory and larger requests with external memory. This sets the limit between the two, as well as generally enabling allocation in external memory.


The documentation for this class was generated from the following file: