cAudio
2.3.0
3d Audio Engine
cAudio
src
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
{
10
CAUDIO_API
IMemoryProvider
*
getMemoryProvider
()
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:15
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:12
cAudio::cStandardMemoryProvider
Memory provider that wraps the standard memalloc and free.
Definition:
cStandardMemoryProvider.h:13
Generated on Tue Jan 28 2020 00:00:00 for cAudio by
1.8.17