/* The comment below is needed for this file to be picked up by generate_ld */
/* RAM_POS: 0x800C7560 */

#include "audio_internal.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;
}
