#include <revolution.h>
#include <revolution/sp.h>
void SPPrepareSound(SPSoundEntry *sound, AXVPB *axvpb, u32 sampleRate);
sound |
pointer to an SPSoundEntry structure |
axvpb |
pointer to the AXVPB structure associated with an allocated AX voice |
sampleRate |
the SE playback frequency |
None.
This 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.
NB: This function sets only the AXPBADDR and AXPBSRC parameters for the specified AX voice. Calling this function does not start SE playback.
03/01/2006 Initial version.