Digimon World 3 decomp
The European version, SLES_039.36
Loading...
Searching...
No Matches
sound_test.h
Go to the documentation of this file.
1#ifndef SOUNDTST_H
2#define SOUNDTST_H
3
4/* SOUNDTST.PRO: the debug sound test */
5
6#include "engine/game.h"
7
8/* One line of a list: its name and what it plays (a sound bank for the
9 bank list, a packed sound id for a bank's sound list); id 0 ends a list. */
10typedef struct SoundTestEntry {
11 /* 0x0 */ char *name;
12 /* 0x4 */ s32 id;
14
15/* The text windows the sound test owns (its task items) */
16typedef struct SoundTestWindows {
17 /* 0x00 */ TextWindow *title;
18 /* 0x04 */ TextWindow *header;
19 /* 0x08 */ TextWindow *cursor;
20 /* 0x0C */ TextWindow *lines[8];
22
23typedef struct SoundTest {
25 /* 0x50 */ s32 bankCursor;
26 /* 0x54 */ s32 bankTop;
27 /* 0x58 */ s32 bankCount;
28 /* 0x5C */ s32 bank;
29 /* 0x60 */ s32 soundCursor;
30 /* 0x64 */ s32 soundTop;
31 /* 0x68 */ s32 soundCount;
32 /* 0x6C */ s32 playing;
33 /* 0x70 */ s32 voice;
34} SoundTest;
35
36void SOUNDTST_updateScene(Task *task, Task **items);
37void SOUNDTST_moveCursor(SoundTest *task, s32 delta, s32 *cursor, s32 *top, s32 count);
43
44extern const char SOUNDTST_STR_CURSOR[];
45
46#endif /* SOUNDTST_H */
signed int s32
Definition common.h:11
#define TASK_HEADER(Type)
Definition task.h:39
void SOUNDTST_selectBank(SoundTest *task, SoundTestWindows *win)
The list of the sound banks (VAB) to load: cross picks the one under the cursor.
Definition sound_test.c:721
void SOUNDTST_moveCursor(SoundTest *task, s32 delta, s32 *cursor, s32 *top, s32 count)
Moves a list's cursor by delta within its count, scrolling the eight lines shown to keep it in view.
Definition sound_test.c:639
Task * SOUNDTST_createSoundTest(void)
Creates the sound test.
Definition sound_test.c:803
void SOUNDTST_updateScene(Task *task, Task **items)
The sound test's root task: starts the sound test; START goes back to the stage select (MODE_STAGE_SE...
Definition sound_test.c:613
void SOUNDTST_playSounds(SoundTest *task, SoundTestWindows *win)
The bank's sound list: cross plays the sound under the cursor for as long as it is held,...
Definition sound_test.c:655
void SOUNDTST_loadBank(SoundTest *task, SoundTestWindows *win)
Loads the bank picked, then goes on to its sounds.
Definition sound_test.c:701
const char SOUNDTST_STR_CURSOR[]
">", padded to a word: the padding isn't zeros but what the assembler left there, which differs betwe...
Definition sound_test.c:810
void SOUNDTST_updateSoundTest(SoundTest *task, SoundTestWindows *win)
The sound test's task: sets up the screen and its windows, then picks a bank, loads it and plays its ...
Definition sound_test.c:758
One line of a list: its name and what it plays (a sound bank for the bank list, a packed sound id for...
Definition sound_test.h:10
The text windows the sound test owns (its task items)
Definition sound_test.h:16
TextWindow * cursor
Definition sound_test.h:19
TextWindow * title
Definition sound_test.h:17
TextWindow * lines[8]
Definition sound_test.h:20
TextWindow * header
Definition sound_test.h:18
s32 bankCount
Definition sound_test.h:27
s32 soundTop
Definition sound_test.h:30
s32 playing
Definition sound_test.h:32
s32 bankCursor
Definition sound_test.h:25
s32 soundCursor
Definition sound_test.h:29
s32 bankTop
Definition sound_test.h:26
s32 soundCount
Definition sound_test.h:31
Any task, seen through its header.
Definition task.h:62
A text window (createTextWindow): up to six text buffers (0 is shown, 1-5 are "work" buffers that con...
Definition text.h:131