coastline 0.0.4
Loading...
Searching...
No Matches
soundeffect.h File Reference

The sound effects of a race. More...

#include "common/types.h"
Include dependency graph for soundeffect.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  SoundEffect
 A sound effect of a race, as LoadAllSoundEffects() loads it. More...

Macros

#define SOUND_EFFECTS   16
 The sound effects of a race.
#define SOUND_EFFECT_FIRST_SKID   SOUND_EFFECT_SKID_SURFACE_2
 The first skid sound.
#define SOUND_EFFECT_FIRST_ROLL   SOUND_EFFECT_ROLL_SURFACE_1
 The first rolling sound.
#define SOUND_EFFECT_ROLL_END   (SOUND_EFFECT_SLOW_SURFACE + 1)
 The end of the rolling sounds.

Enumerations

enum  {
  SOUND_EFFECT_NONE , SOUND_EFFECT_ENGINE = SOUND_EFFECT_NONE , SOUND_EFFECT_VEHICLE_IMPACT , SOUND_EFFECT_IMPACT ,
  SOUND_EFFECT_LANDING , SOUND_EFFECT_SKID_SURFACE_2 , SOUND_EFFECT_SKID_SURFACE_1 , SOUND_EFFECT_6 ,
  SOUND_EFFECT_SKID_SURFACE_0 , SOUND_EFFECT_ROLL_SURFACE_1 , SOUND_EFFECT_ROLL_SURFACE_2 , SOUND_EFFECT_ROLL_SURFACE_0 ,
  SOUND_EFFECT_ROLL_SNOW , SOUND_EFFECT_SLOW_SURFACE , SOUND_EFFECT_BEEP , SOUND_EFFECT_GO ,
  SOUND_EFFECT_WATERFALL
}
 The sound effects: the engine, which the airplane shares, the hits, the skids and the rolling on each surface of the track, the countdown and the waterfall. More...

Functions

void LoadAllSoundEffects (void)
 Load the sound effects of a race and start their channels muted.
void PlaySoundEffect (s32 sound)
 Play a sound effect once on channel 3.
void PlayBeepSound (void)
 Play the beep of the countdown, and of the laps.
void PlayGoSound (void)
 Play the sound of the start of the race.

Variables

SoundEffect g_aSoundEffects [SOUND_EFFECTS]
 The sound effects of a race.
s32 g_dwChannel3PlayingSfxId
 The sound effect channel 3 plays once, or -1.

Detailed Description

The sound effects of a race.

Macro Definition Documentation

◆ SOUND_EFFECTS

#define SOUND_EFFECTS   16

The sound effects of a race.

◆ SOUND_EFFECT_FIRST_SKID

#define SOUND_EFFECT_FIRST_SKID   SOUND_EFFECT_SKID_SURFACE_2

The first skid sound.

◆ SOUND_EFFECT_FIRST_ROLL

#define SOUND_EFFECT_FIRST_ROLL   SOUND_EFFECT_ROLL_SURFACE_1

The first rolling sound.

◆ SOUND_EFFECT_ROLL_END

#define SOUND_EFFECT_ROLL_END   (SOUND_EFFECT_SLOW_SURFACE + 1)

The end of the rolling sounds.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum

The sound effects: the engine, which the airplane shares, the hits, the skids and the rolling on each surface of the track, the countdown and the waterfall.

The skids run from 4 to 7 and the rolling from 8 to 12; surfaces 0 and 3 share theirs.

Enumerator
SOUND_EFFECT_NONE 

No effect plays.

SOUND_EFFECT_ENGINE 

The engine, also used for the airplane.

SOUND_EFFECT_VEHICLE_IMPACT 

A hit of another vehicle.

SOUND_EFFECT_IMPACT 

A hit of the track.

SOUND_EFFECT_LANDING 

A wheel landing on the ground.

SOUND_EFFECT_SKID_SURFACE_2 

A skid on surface 2.

SOUND_EFFECT_SKID_SURFACE_1 

A skid on surface 1.

SOUND_EFFECT_6 

A skid sound the reconstructed code does not choose.

SOUND_EFFECT_SKID_SURFACE_0 

A skid on surfaces 0 and 3, and on every surface in snow.

SOUND_EFFECT_ROLL_SURFACE_1 

The rolling on surface 1.

SOUND_EFFECT_ROLL_SURFACE_2 

The rolling on surface 2.

SOUND_EFFECT_ROLL_SURFACE_0 

The rolling on surfaces 0 and 3, and on the slow surface in snow.

SOUND_EFFECT_ROLL_SNOW 

The rolling on surfaces 0 to 3 in snow.

SOUND_EFFECT_SLOW_SURFACE 

The skid and the rolling on the slow surface.

SOUND_EFFECT_BEEP 

A beep of the countdown.

SOUND_EFFECT_GO 

The tone of the countdown that starts the race.

SOUND_EFFECT_WATERFALL 

The waterfall of the jungle track.

Function Documentation

◆ LoadAllSoundEffects()

void LoadAllSoundEffects ( void )

Load the sound effects of a race and start their channels muted.

Ghidra address:
USA: 0x8022baa0
Ghidra address:
Asia: 0x8022B5F0
Ghidra address:
EUR: 0x8022cfb0
Ghidra address:
JPN: 0x8022c768
Ghidra address:
BRD3D: 0x100682a0
Ghidra address:
BRGlide: 0x10061310

◆ PlaySoundEffect()

void PlaySoundEffect ( s32 sound)

Play a sound effect once on channel 3.

Parameters
soundThe sound effect.
Ghidra address:
USA: 0x8022b370
Ghidra address:
Asia: 0x8022AEC0
Ghidra address:
EUR: 0x8022c880
Ghidra address:
JPN: 0x8022c038
Ghidra address:
BRD3D: 0x10067d40
Ghidra address:
BRGlide: 0x10060db0

◆ PlayBeepSound()

void PlayBeepSound ( void )

Play the beep of the countdown, and of the laps.

Ghidra address:
USA: 0x8022b3c4
Ghidra address:
Asia: 0x8022AF14
Ghidra address:
EUR: 0x8022c8d4
Ghidra address:
JPN: 0x8022c08c
Ghidra address:
BRD3D: 0x10067d80
Ghidra address:
BRGlide: 0x10060df0

◆ PlayGoSound()

void PlayGoSound ( void )

Play the sound of the start of the race.

Ghidra address:
USA: 0x8022b3e4
Ghidra address:
Asia: 0x8022AF34
Ghidra address:
EUR: 0x8022c8f4
Ghidra address:
JPN: 0x8022c0ac
Ghidra address:
BRD3D: 0x10067d90
Ghidra address:
BRGlide: 0x10060e00

Variable Documentation

◆ g_aSoundEffects

SoundEffect g_aSoundEffects[SOUND_EFFECTS]
extern

The sound effects of a race.

Ghidra address:
USA: 0x8028bc04
Ghidra address:
Asia: 0x8028B754
Ghidra address:
EUR: 0x8028e36c
Ghidra address:
JPN: 0x8028dd9c
Ghidra address:
BRD3D: 0x100b3aa8
Ghidra address:
BRGlide: 0x100b32b0

◆ g_dwChannel3PlayingSfxId

s32 g_dwChannel3PlayingSfxId
extern

The sound effect channel 3 plays once, or -1.

Ghidra address:
USA: 0x8028b7ec
Ghidra address:
Asia: 0x8028B33C
Ghidra address:
EUR: 0x8028da9c
Ghidra address:
JPN: 0x8028d4cc
Ghidra address:
BRD3D: 0x10aa3470
Ghidra address:
BRGlide: 0x10ac67d0