nw::snd::SoundHeap::LoadState Member Function#include <nw/snd/snd_SoundHeap.h>
void LoadState(
int level
);
| Name | Description | |
|---|---|---|
| in | level | Hierarchical level to restore. |
Restores the state of the saved sound heap.
The sound heap is restored to the state immediately after it was saved by SaveState. All memory blocks allocated from the time the state was saved to the current time are de-allocated. The callback function set by Alloc is invoked for each memory block that is freed.
Set level (the hierarchical level) to a value equal to or less than the current level. Specifying a value of 0 has the same effect as calling Clear. The heap returns to the state immediately after it was saved, and the current hierarchical level takes the assigned value.
CONFIDENTIAL