3#include <AudioSystemPlugin/AudioSystemPluginDLL.h>
5#include <Foundation/Configuration/Singleton.h>
6#include <Foundation/Memory/CommonAllocators.h>
9#define PL_AUDIOSYSTEM_MEMORY_ALIGNMENT 16
39 return plAudioSystemAllocator::GetSingleton();
47 return plAudioMiddlewareAllocator::GetSingleton();
52#define PL_AUDIOSYSTEM_NEW(type, ...) PL_NEW(plAudioSystemAllocatorWrapper::GetAllocator(), type, __VA_ARGS__)
55#define PL_AUDIOSYSTEM_DELETE(ptr) PL_DELETE(plAudioSystemAllocatorWrapper::GetAllocator(), ptr)
58#define PL_AUDIOSYSTEM_NEW_ARRAY(type, count) PL_NEW_ARRAY(plAudioSystemAllocatorWrapper::GetAllocator(), type, count)
61#define PL_AUDIOSYSTEM_DELETE_ARRAY(arrayPtr) PL_DELETE_ARRAY(plAudioSystemAllocatorWrapper::GetAllocator(), arrayPtr)
64#define PL_AUDIOSYSTEM_NEW_RAW_BUFFER(type, count) PL_NEW_RAW_BUFFER(plAudioSystemAllocatorWrapper::GetAllocator(), type, count)
67#define PL_AUDIOSYSTEM_DELETE_RAW_BUFFER(ptr) PL_DELETE_RAW_BUFFER(plAudioSystemAllocatorWrapper::GetAllocator(), ptr)
Base class for all memory allocators.
Definition Allocator.h:23
Policy based allocator implementation of the plAllocator interface.
Definition AllocatorWithPolicy.h:19
An allocator that uses the heap to allocate memory for use by the audio middleware....
Definition AudioSystemAllocator.h:26
An allocator that uses the heap to allocate memory for use by the audio system itself....
Definition AudioSystemAllocator.h:15
Definition AudioSystemAllocator.h:44
Definition AudioSystemAllocator.h:36