coastline 0.0.4
Loading...
Searching...
No Matches
vehiclesound.h
Go to the documentation of this file.
1#ifndef COASTLINE_VEHICLE_SOUND_H
2#define COASTLINE_VEHICLE_SOUND_H
3
4#include "common/vehicle.h"
5
6#if TGR_BOSS_RALLY
8#endif
9
10#ifdef __cplusplus
11extern "C" {
12#endif
13
24
25#if TGR_BOSS_RALLY
27static inline void ClearVehicleSoundChannel(s32 channel) {
28 g_aSoundChannelRequested[channel].dwStereoLevels = 0;
29 g_aSoundChannelRequested[channel].llFrequency = 0;
30}
32static inline void SetVehicleSoundChannel(s32 channel, u64 step, u32 levels) {
33 g_aSoundChannelRequested[channel].llFrequency = (long long)step;
34 g_aSoundChannelRequested[channel].dwStereoLevels = levels;
35}
37static inline s32 IsVehicleSoundChannelPlaying(s32 channel) {
38 return g_aSoundChannelRequested[channel].llFrequency != 0;
39}
41static inline void SetVehicleSoundEchoOffset(s32 offset) {
42 g_bAltLoopingSoundSet = offset;
43}
45void PlayVehicleEventSounds(Vehicle *vehicle, CameraFrame *listener);
46#endif /* TGR_BOSS_RALLY */
47
48#ifdef __cplusplus
49}
50#endif
51
52#endif /* COASTLINE_VEHICLE_SOUND_H */
The music, the volumes, and the channels of the sound effects of the Boss Rally release,...
int g_bAltLoopingSoundSet
Whether the channels that play sample 0 move to sample 25, rather than back.
struct SoundChannelState g_aSoundChannelRequested[SOUND_CHANNEL_COUNT]
The settings requested for the buffer of each channel.
A frame of reference: three axes and a position, the rows of a 4 by 4 matrix whose last column Finish...
Definition render.h:30
A vehicle.
Definition vehicle.h:143
unsigned int u32
Definition ultratypes.h:20
int s32
Definition ultratypes.h:25
unsigned long long u64
Definition ultratypes.h:21
The vehicles of a race, the cars they are, and their place on the track.
void UpdateVehicleSounds(Vehicle *vehicle)
Play the engine, the impacts, and the rumble of a vehicle for a frame.