arduino-audio-tools
|
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. | |
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.