cAudio  2.3.0
3d Audio Engine
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 
8 namespace 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 };
cAudio
Main namespace for the entire cAudio library.
Definition: cAudioCapture.h:16
cAudio::getMemoryProvider
CAUDIO_API IMemoryProvider * getMemoryProvider()
Returns a pointer to the memory provider of cAudio.
Definition: cAudioMemory.cpp:10
cAudio::IMemoryProvider
Interface for a class that allocates and frees memory used by cAudio.
Definition: IMemoryProvider.h:13
cAudio::cStandardMemoryProvider
Memory provider that wraps the standard memalloc and free.
Definition: cStandardMemoryProvider.h:14