#include <revolution.h>
#include <revolution/sp.h>
typedef struct
{
u32 type;
u32 sampleRate;
u32 loopAddr;
u32 loopEndAddr;
u32 endAddr;
u32 currentAddr;
SPAdpcmEntry *adpcm;
} SPSoundEntry;
type |
SE data format and indication of looping One of the following values: #define SP_TYPE_ADPCM_ONESHOT 0 |
sampleRate |
the SE play frequency (in Hz) |
loopAddr |
the loop start address This will be converted to an appropriate address unit, according to the data format. |
loopEndAddr |
the loop end address This will be converted to an appropriate address unit, according to the data format. |
endAddr |
the data end address This will be converted to an appropriate address unit, according to the data format. |
currentAddr |
the data start address This will be converted to an appropriate address unit, according to the data format. |
adpcm |
pointer to the decoding information (SPAdpcmEntry) that is required for ADPCM formatted data |
This structure contains information regarding each SE in the sound table (SPSoundTable).
SPInitSoundTable, SPGetSoundEntry, SPPrepareSound, SPPrepareEnd, SPSoundTable, SPAdpcmEntry
03/01/2006 Initial version.