coastline 0.0.4
Loading...
Searching...
No Matches
soundeffect.h
Go to the documentation of this file.
1#ifndef COASTLINE_SOUNDEFFECT_H
2#define COASTLINE_SOUNDEFFECT_H
3
8
9#include "common/types.h"
10
11#ifdef __cplusplus
12extern "C" {
13#endif
14
16#if TGR_BOSS_RALLY
17#define SOUND_EFFECTS 25
18#else
19#define SOUND_EFFECTS 16
20#endif
21
27enum {
46};
47
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)
54
56typedef struct {
57#if TGR_BOSS_RALLY
58 s32 sample;
59#else
61#endif
69
81
93
105
118
129void PlayBeepSound(void);
130
141void PlayGoSound(void);
142
143#ifdef __cplusplus
144}
145#endif
146
147#endif /* COASTLINE_SOUNDEFFECT_H */
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