Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
sp.h
Go to the documentation of this file.
1#ifndef _REVOLUTION_SP_H_
2#define _REVOLUTION_SP_H_
3
4#include <revolution/types.h>
5#include <revolution/ax.h>
6
7#ifdef __cplusplus
8extern "C" {
9#endif
10
11typedef struct {
12 AXPBADPCM adpcm;
13 AXPBADPCMLOOP adpcmloop;
14} SPADPCM;
15
16typedef struct {
17 u32 type;
18 u32 sampleRate;
19 u32 loopAddr;
20 u32 loopEndAddr;
21 u32 endAddr;
22 u32 currentAddr;
23 SPADPCM* adpcm;
25
26typedef struct {
27 u32 entries;
28 SPSoundEntry sound[1];
30
31void SPInitSoundTable(SPSoundTable* table, u32 aramBase, u32 zeroBase);
33void SPPrepareSound(SPSoundEntry* sound, AXVPB* axvpb, u32 sampleRate);
34void SPPrepareEnd(SPSoundEntry* sound, AXVPB* axvpb);
35
36#ifdef __cplusplus
37}
38#endif
39
40#endif
static u8 index[20][3]
Definition GXDraw.c:434
static char * table[19]
Definition d_a_door_shutter.cpp:1527
SPSoundEntry * SPGetSoundEntry(SPSoundTable *table, u32 index)
Definition sp.c:71
void SPPrepareEnd(SPSoundEntry *sound, AXVPB *axvpb)
Definition sp.c:390
void SPPrepareSound(SPSoundEntry *sound, AXVPB *axvpb, u32 sampleRate)
Definition sp.c:81
void SPInitSoundTable(SPSoundTable *table, u32 aramBase, u32 zeroBase)
Definition sp.c:4
unsigned long u32
Definition types.h:12
Definition sp.h:14
Definition sp.h:19
Definition sp.h:29
Definition ax.h:99
Definition ax.h:84
Definition ax.h:136