Files
banjo-kazooie/src/core1/audio/heapinit.c

17 lines
357 B
C

#include "synthInternals.h"
#include <libaudio.h>
void alHeapInit(ALHeap *hp, u8 *base, s32 len)
{
s32 extraAlign = (AL_CACHE_ALIGN+1) - ((s32) base & AL_CACHE_ALIGN);
if (extraAlign != AL_CACHE_ALIGN+1)
hp->base = base + extraAlign;
else
hp->base = base;
hp->len = len;
hp->cur = hp->base;
hp->count = 0;
}