nw::snd::SoundHeap::Alloc Member Function

Syntax

#include <nw/snd/snd_SoundHeap.h>

virtual void * Alloc(
     size_t size
);

void * Alloc(
     size_t size,
     SoundHeap::DisposeCallback callback,
     void* callbackArg
);

List of Overloaded Member Functions

Alloc ( size_t ) Allocates memory from the sound heap.
Alloc ( size_t, SoundHeap::DisposeCallback, void * ) Allocates memory from the sound heap.

Description of Alloc ( size_t )

A management region is needed in each memory block. As a result, you actually need slightly more free space than the memory size being allocated (size). The function will fail if there is not enough space.

Description of Alloc ( size_t, SoundHeap::DisposeCallback, void * )

A management region is needed in each memory block. As a result, you actually need slightly more free space than the memory size being allocated (size). The function will fail if there is not enough space.

The callback function (callback) is invoked when memory blocks are freed by Clear or LoadState. Set the callback to NULL if it is unnecessary.


CONFIDENTIAL