#include <revolution.h> #include <revolution/sp.h> void SPInitSoundTable(SPSoundTable *table, u8 *samples, u8 *zerobuffer);
| table | Pointer to SPSoundTable to be initialized. |
|---|---|
| samples | Pointer to the sound data that corresponds to SPSoundTable. |
| zerobuffer | Pointer to the zero buffer. (Not used. Specify NULL.)) |
None.
The SPInitSoundTable function initializes the sound table (SPSoundTable), loaded from a disc, etc., to memory. It uses samples, provided by arguments, to update individual SE information (SPSoundEntry) in the sound table. SPSoundTable must be initialized before playing SE.
Note: The SPInitSoundTable function can only be called once for the same SPSoundTable.
2006/11/21 Added an explanation to the arguments about the zero buffer no longer being necessary.
2006/03/01 Initial version.
CONFIDENTIAL