nw::snd::SoundHeap::Create Member Function

Syntax

#include <nw/snd/snd_SoundHeap.h>
bool Create(
     void* startAddress,
     size_t size
);

Arguments

Name Description
in startAddress Starting address of the memory to use as the heap.
in size Size of the memory to use as the heap.

Return Values

Returns true if the heap is created successfully and false otherwise.

Description

Creates the sound heap.

The function fails if the size of the memory region (size) is insufficient. Also, because a heap management region is necessary, the size of the heap in memory is smaller than size.

To reuse the memory area passed to this function, use the nw::snd::SoundHeap::Destroy function to destroy the heap.

When loading wave data, you must set startAddress to an address in device memory.

Revision History

2009/12/28
Initial version.

CONFIDENTIAL