#include <revolution.h> #include <revolution/sp.h> void SPPrepareSound(SPSoundEntry *sound, AXVPB *axvpb, u32 sampleRate);
| sound | Pointer to the SPSoundEntry structure. |
|---|---|
| axvpb | Pointer to the AXVPB structure associated with an allocated AX voice. |
| sampleRate | The SE play frequency. |
None.
The SPPrepareSound function initializes the AX voice specified by axvpb, based on the SE information, sound, and the playback frequency, sampleRate. If there is no need to convert the SE playback frequency, set the SE default playback frequency (sound->sampleRate) to sampleRate.
Note: The SPPrepareSound function sets only the AXPBADDR and AXPBSRC parameters for the specified AX voice. Calling this function does not start SE playback.
2006/03/01 Initial version.
CONFIDENTIAL