1#ifndef COASTLINE_EAR_MEMORY_BUDGET_H
2#define COASTLINE_EAR_MEMORY_BUDGET_H
uint32_t GetSampleMemoryLimit(void)
int InitializeSampleMemoryBudget(void)
Initialise a sample budget from available Windows page-file capacity or SDL system RAM.
void __stdcall ReleaseSampleMemory(uint32_t bytes)
Subtract released storage from tracked usage without freeing memory or checking underflow.
uint32_t GetSampleMemoryUsed(void)
int __stdcall SetSampleMemoryLimit(uint32_t bytes)
Change the budget limit only when the requested limit does not exceed current usage.
int __stdcall ReserveSampleMemory(uint32_t bytes)
Account for a reservation without allocating memory.