#include <revolution/hbm.h>
void HBMCreateSound( const void* soundData, void* memBuf, u32 memSize );
soundData |
Address of sound archive data. |
memBuf |
The starting address of the buffer that stores the sound instance (this address must be 32-byte aligned). |
memSize |
Size of memory allocated for the sound instance. |
None.
Creates a sound instance.
In soundData, pass the address of the sound archive data that is laid out in memory. Allocate the memory for storing a sound instance of the HOME Menu within the function. Set memSize to a value greater than or equal to HBM_MEM_SIZE_SOUND (a value large enough to store a sound instance). Do not release it after creation until HBMDeleteSound is called.
Also call this function after initializing user sounds, as described in Notes When Using the HBMCreateSound Function in the HBM Library Overview.
CONFIDENTIAL