#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 playback 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 |
The SPSoundEntry structure denotes information regarding each SE in the sound table (SPSoundTable).
SPInitSoundTable, SPGetSoundEntry, SPPrepareSound, SPPrepareEnd, SPSoundTable, SPAdpcmEntry
2006/03/01 Initial version.
CONFIDENTIAL