f3cee669d5
* Remove redundant mutex locking in DecoderFactories (the access is already locked by the callee)
16 lines
415 B
C++
16 lines
415 B
C++
#pragma once
|
|
|
|
#include "../include/IMemoryProvider.h"
|
|
#include <cstring>
|
|
namespace cAudio
|
|
{
|
|
//! Memory provider that wraps the standard memalloc and free
|
|
class cStandardMemoryProvider : public IMemoryProvider
|
|
{
|
|
public:
|
|
virtual void* Allocate(size_t size, const char* filename, int line, const char* function);
|
|
virtual void Free(void* pointer);
|
|
virtual size_t getMaxAllocationSize();
|
|
};
|
|
};
|