cAudio
2.3.0
3d Audio Engine
cAudio
include
IMemoryProvider.h
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
#pragma once
6
7
#include "cAudioDefines.h"
8
#include <cstring>
9
namespace
cAudio
10
{
12
class
IMemoryProvider
13
{
14
public
:
16
22
virtual
void
*
Allocate
(
size_t
size,
const
char
* filename,
int
line,
const
char
*
function
) = 0;
23
25
27
virtual
void
Free
(
void
* pointer) = 0;
28
30
virtual
size_t
getMaxAllocationSize
() = 0;
31
32
virtual
~
IMemoryProvider
() {}
33
};
34
};
cAudio::IMemoryProvider::Free
virtual void Free(void *pointer)=0
Frees memory previously allocated.
cAudio
Main namespace for the entire cAudio library.
Definition:
cAudioCapture.h:16
cAudio::IMemoryProvider
Interface for a class that allocates and frees memory used by cAudio.
Definition:
IMemoryProvider.h:13
cAudio::IMemoryProvider::Allocate
virtual void * Allocate(size_t size, const char *filename, int line, const char *function)=0
Allocates memory and returns a pointer to it.
cAudio::IMemoryProvider::getMaxAllocationSize
virtual size_t getMaxAllocationSize()=0
Returns the largest possible single allocation that can be made.
Generated on Sat Aug 1 2020 00:00:00 for cAudio by
1.8.18