arduino-audio-tools
Toggle main menu visibility
Main Page
Topics
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
f
g
i
m
p
r
s
t
u
v
w
Functions
Variables
Typedefs
Enumerations
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
~
Functions
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
~
Variables
a
b
c
d
e
f
i
l
m
n
o
p
r
s
t
u
v
w
x
y
Enumerations
Related Symbols
Files
File List
File Members
All
Functions
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Friends
Modules
Pages
Loading...
Searching...
No Matches
src
AudioTools
AudioLibs
MemoryManager.h
1
#pragma once
2
3
#include "AudioLogger.h"
4
#ifdef ESP32
5
#include "esp_heap_caps.h"
6
#endif
7
8
namespace
audio_tools
{
9
18
class
MemoryManager
{
19
public
:
21
MemoryManager
() =
default
;
23
MemoryManager
(
int
limit) {
24
begin
(limit);
25
};
23
MemoryManager
(
int
limit) {
…
}
27
bool
begin
(
int
limit = 10000) {
28
#ifdef ESP32
29
LOGI(
"Activate PSRAM from %d bytes"
, limit);
30
heap_caps_malloc_extmem_enable
(limit);
31
return
true
;
32
#else
33
return
false
;
34
#endif
35
}
27
bool
begin
(
int
limit = 10000) {
…
}
36
};
18
class
MemoryManager
{
…
};
37
38
}
audio_tools::MemoryManager
MemoryManager which activates the use of external SPIRAM memory. When external memory is in use,...
Definition
MemoryManager.h:18
audio_tools::MemoryManager::MemoryManager
MemoryManager()=default
Default Constructor - call begin() to activate PSRAM.
audio_tools::MemoryManager::MemoryManager
MemoryManager(int limit)
Constructor which activates PSRAM. This constructor automatically calls begin()
Definition
MemoryManager.h:23
audio_tools::MemoryManager::begin
bool begin(int limit=10000)
Activate the PSRAM for allocated memory > limit.
Definition
MemoryManager.h:27
audio_tools::Vector
Vector implementation which provides the most important methods as defined by std::vector....
Definition
Vector.h:21
audio_tools
Generic Implementation of sound input and output for desktop environments using portaudio.
Definition
AudioConfig.h:885
Generated by
1.9.8