#include <revolution.h>
#include <revolution/sp.h>
void SPInitSoundTable(SPSoundTable *table, u8 *samples, u8 *zerobuffer);
table |
pointer to SPSoundTable for initialization |
samples |
pointer to the sound data that corresponds to SPSoundTable |
zerobuffer |
pointer to the zero buffer |
None.
This function initializes the sound table (SPSoundTable), loaded from a disc, etc., to memory. It uses samples and zerobuffer, provided by arguments, to update individual SE information (SPSoundEntry) in the sound table. SPSoundTable must be initialized before playing SE.
NB: SPInitSoundTable can only be called once for the same SPSoundTable.
03/01/2006 Initial version.