Super Mario 64 Source
A Super Mario 64 decompilation, brought to you by a bunch of clever folks.
spawn_sound.h
Go to the documentation of this file.
1 #ifndef _SPAWN_SOUND_H
2 #define _SPAWN_SOUND_H
3 
4 #include "types.h"
5 
6 struct SoundState
7 {
8  s16 playSound; // if this is 1, the info below will
9  // be used to determine the sound behavior
10  // for the object. if 0, this is skipped.
11  s8 animFrame1; // the sound state provides 2 anim frames for
12  // when the provided sound can be played.
13  // these 2 variables probably coorespond to
14  // left/right foot.
17 };
18 
19 extern void PlaySound(s32);
20 extern void PlaySound2(s32);
21 extern void create_sound_spawner(s32);
22 extern void exec_anim_sound_state(struct SoundState *soundStates);
23 
24 #endif
signed char s8
Definition: ultratypes.h:11
void PlaySound(s32)
Definition: spawn_sound.c:57
void exec_anim_sound_state(struct SoundState *soundStates)
Definition: spawn_sound.c:17
signed short int s16
Definition: ultratypes.h:13
s8 animFrame1
Definition: spawn_sound.h:11
s16 playSound
Definition: spawn_sound.h:8
void create_sound_spawner(s32)
Definition: spawn_sound.c:46
s32 soundMagic
Definition: spawn_sound.h:16
s8 animFrame2
Definition: spawn_sound.h:15
Definition: spawn_sound.h:6
void PlaySound2(s32)
Definition: spawn_sound.c:63
signed int s32
Definition: ultratypes.h:15