#include <nnsys/snd.h>NNSSndHeapHandle NNS_SndHeapCreate( void* startAddress, u32 size );
startAddress |
The starting address of the memory region to use as the heap. |
size |
The size of the memory region to use as the heap. |
Returns the handle of the heap that was created. Returns NNS_SND_HEAP_INVALID_HANDLE if the creation fails.
Creates the sound heap.
The function fails if the size size of the memory region is insufficient. Also, because a heap management region is necessary, the size of the heap that is created is smaller than size.
To reuse the memory area passed to this function, use the NNS_SndHeapDestroy function to destroy the heap.
10/04/2004 Added a description about reusing the memory area.
06/01/2004 Initial version.