SPPrepareSound

Syntax

  #include <revolution.h>
  #include <revolution/sp.h>

  void SPPrepareSound(SPSoundEntry *sound, AXVPB *axvpb, u32 sampleRate);

Arguments

sound Pointer to the SPSoundEntry structure.
axvpb Pointer to the AXVPB structure associated with an allocated AX voice.
sampleRate The SE play frequency.

Return Values

None.

Description

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.

See Also

SPSoundEntry

Revision History

2006/03/01 Initial version.


CONFIDENTIAL