You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
322 B
15 lines
322 B
#pragma once
|
|
|
|
#include "esp_heap_caps.h"
|
|
#include "opus_defines.h"
|
|
|
|
#define OVERRIDE_OPUS_ALLOC
|
|
#define OVERRIDE_OPUS_FREE
|
|
|
|
static OPUS_INLINE void* opus_alloc(size_t size) {
|
|
return heap_caps_malloc(size, MALLOC_CAP_INTERNAL | MALLOC_CAP_8BIT);
|
|
}
|
|
|
|
static OPUS_INLINE void opus_free(void* ptr) {
|
|
heap_caps_free(ptr);
|
|
}
|
|
|