HBMCreateSound

Syntax


#include <revolution/hbm.h>

void HBMCreateSound( const void* soundData, void* memBuf, u32 memSize );

Arguments

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.

Return Values

None.

Description

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.

See Also

HBMDeleteSound

Revision History

2009/01/30
Added a usage note to Description.
2007/10/26
Revised the header explanation.
2007/05/09
Initial version.

CONFIDENTIAL