SPSoundEntry

Syntax

  #include <revolution.h>
  #include <revolution/sp.h>
  
  typedef struct
  {
      u32             type;
      u32             sampleRate;
      u32             loopAddr;
      u32             loopEndAddr;
      u32             endAddr;
      u32             currentAddr;
      SPAdpcmEntry    *adpcm;

  } SPSoundEntry;

Elements

type SE data format and indication of looping
One of the following values:
#define SP_TYPE_ADPCM_ONESHOT 0
#define SP_TYPE_ADPCM_LOOPED 1
#define SP_TYPE_PCM16_ONESHOT 2
#define SP_TYPE_PCM16_LOOPED 3
#define SP_TYPE_PCM8_ONESHOT 4
#define SP_TYPE_PCM8_LOOPED 5
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

Description

The SPSoundEntry structure denotes information regarding each SE in the sound table (SPSoundTable).

See Also

SPInitSoundTable, SPGetSoundEntry, SPPrepareSound, SPPrepareEnd, SPSoundTable, SPAdpcmEntry

Revision History

2006/03/01 Initial version.


CONFIDENTIAL