Demonstrates how to use a player heap for memory management.
Demonstrates how to use a player heap.
This demo shows how to automatically load sequence sounds at time of playback by loading only banks and wave archives when playing a sequence sound.
// Loads only banks and wave archives
// (sequence data is loaded into the player heap)
if ( ! m_DataManager.LoadData( BANK_YOSHI, &m_Heap ) )
:
// Sequence data corresponding to SEQ_YOSHI is loaded into the player heap here
bool result = m_ArchivePlayer.StartSound( &m_Handle, SEQ_YOSHI ).IsSuccess();
For details on the player heap, see Chapter 4, Memory Management, in the Sound Programmer's Manual.
CONFIDENTIAL