SPPrepareSound

C Specification


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

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

Arguments

sound pointer to an SPSoundEntry structure
axvpb pointer to the AXVPB structure associated with an allocated AX voice
sampleRate the SE playback frequency

Return Values

None.

Description

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.

See Also

SPSoundEntry

Revision History

2006/03/01 Initial version.


CONFIDENTIAL