cAudio 2.3.0
3d Audio Engine
Loading...
Searching...
No Matches
cAudioMemory.cpp
1// Copyright (c) 2008-2011 Raynaldo (Wildicv) Rivera, Joshua (Dark_Kilauea) Jones, Murat (wolfmanfx) Sari
2// This file is part of the "cAudio Engine"
3// For conditions of distribution and use, see copyright notice in cAudio.h
4
5#include "cAudioMemory.h"
6#include "cStandardMemoryProvider.h"
7
8namespace cAudio
9{
11 {
12//To use your own memory provider, add it in here and set its name to memoryProvider
13#if CAUDIO_MEMORY_USE_STD == 1
14 static cStandardMemoryProvider memoryProvider;
15 return &memoryProvider;
16#else
17# error "No custom memory provider enabled here!"
18#endif
19 }
20};
Interface for a class that allocates and frees memory used by cAudio.
Memory provider that wraps the standard memalloc and free.
Main namespace for the entire cAudio library.
Definition: cAudioCapture.h:16
CAUDIO_API IMemoryProvider * getMemoryProvider()
Returns a pointer to the memory provider of cAudio.