1#ifndef COASTLINE_SOUNDEFFECT_H
2#define COASTLINE_SOUNDEFFECT_H
17#define SOUND_EFFECTS 25
19#define SOUND_EFFECTS 16
49#define SOUND_EFFECT_FIRST_SKID SOUND_EFFECT_SKID_SURFACE_2
51#define SOUND_EFFECT_FIRST_ROLL SOUND_EFFECT_ROLL_SURFACE_1
53#define SOUND_EFFECT_ROLL_END (SOUND_EFFECT_SLOW_SURFACE + 1)
s32 g_dwChannel3PlayingSfxId
The sound effect channel 3 plays once, or -1.
void PlaySoundEffect(s32 sound)
Play a sound effect once on channel 3.
#define SOUND_EFFECTS
The sound effects of a race.
Definition soundeffect.h:19
SoundEffect g_aSoundEffects[SOUND_EFFECTS]
The sound effects of a race.
void PlayBeepSound(void)
Play the beep of the countdown, and of the laps.
@ SOUND_EFFECT_VEHICLE_IMPACT
Definition soundeffect.h:30
@ SOUND_EFFECT_WATERFALL
Definition soundeffect.h:45
@ SOUND_EFFECT_NONE
Definition soundeffect.h:28
@ SOUND_EFFECT_ROLL_SURFACE_2
Definition soundeffect.h:38
@ SOUND_EFFECT_SKID_SURFACE_1
Definition soundeffect.h:34
@ SOUND_EFFECT_IMPACT
Definition soundeffect.h:31
@ SOUND_EFFECT_SKID_SURFACE_0
Definition soundeffect.h:36
@ SOUND_EFFECT_ENGINE
Definition soundeffect.h:29
@ SOUND_EFFECT_SKID_SURFACE_2
Definition soundeffect.h:33
@ SOUND_EFFECT_GO
Definition soundeffect.h:44
@ SOUND_EFFECT_SLOW_SURFACE
Definition soundeffect.h:42
@ SOUND_EFFECT_6
Definition soundeffect.h:35
@ SOUND_EFFECT_ROLL_SURFACE_0
Definition soundeffect.h:39
@ SOUND_EFFECT_LANDING
Definition soundeffect.h:32
@ SOUND_EFFECT_ROLL_SNOW
Definition soundeffect.h:41
@ SOUND_EFFECT_BEEP
Definition soundeffect.h:43
@ SOUND_EFFECT_ROLL_SURFACE_1
Definition soundeffect.h:37
void LoadAllSoundEffects(void)
Load the sound effects of a race and start their channels muted.
void PlayGoSound(void)
Play the sound of the start of the race.
A sound effect of a race, as LoadAllSoundEffects() loads it.
Definition soundeffect.h:56
u32 length
Definition soundeffect.h:64
s8 * sample
Definition soundeffect.h:60
u32 guardLength
Definition soundeffect.h:66
u32 romEnd
Definition soundeffect.h:63
u32 loopLength
Definition soundeffect.h:65
u32 romStart
Definition soundeffect.h:62
The integer and floating-point types of the console, for headers shared with Windows.
unsigned int u32
Definition ultratypes.h:20
signed char s8
Definition ultratypes.h:23
int s32
Definition ultratypes.h:25