1#ifndef COASTLINE_SOUND_SOURCE_H
2#define COASTLINE_SOUND_SOURCE_H
115 Vec3f *previousSource,
117 Vec3f *previousListener);
The state the renderer shares between the parts of a frame.
void ResetSoundSourceTracking(void)
Forget the nearest sound of the track found the last frame.
void ResetAllSoundState(void)
Stop the sounds of the track and forget their sources.
void UpdateAirplaneSound(s32 instance, Vec3f *position, CameraFrame *camera)
Offer the sound of the airplane as the nearest sound of the track, on the tracks that have one.
void UpdateClosestSoundSource(s32 source, s32 sound, s32 volume, f32 frequency, Vec3f *position, CameraFrame *listener)
Offer a sound of the track as the nearest this frame; the nearest plays.
f32 ComputeDopplerFactor(Vec3f *source, Vec3f *previousSource, Vec3f *listener, Vec3f *previousListener)
The factor the Doppler effect raises a sound by, from the motion of the source and the listener along...
SoundSourceTracking g_ClosestSoundSource
The nearest sound of the track.
void UpdateWaterfallSound(s32 instance, Vec3f *position, CameraFrame *camera)
Offer the sound of a waterfall as the nearest sound of the track, on the tracks that have one.
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
The nearest sound of the track this frame and the last.
Definition soundsource.h:11
s32 previousSound
Definition soundsource.h:18
f32 distance
Definition soundsource.h:21
Vec3f position
Definition soundsource.h:12
s32 playing
Definition soundsource.h:24
CameraFrame * listener
Definition soundsource.h:14
f32 frequency
Definition soundsource.h:22
Vec3f previousListenerPosition
Definition soundsource.h:16
s32 source
Definition soundsource.h:19
s32 previousSource
Definition soundsource.h:20
s32 sound
Definition soundsource.h:17
Vec3f previousPosition
Definition soundsource.h:13
CameraFrame * previousListener
Definition soundsource.h:15
s32 volume
Definition soundsource.h:23
A point or direction in space.
Definition vecmath.h:17
float f32
Definition ultratypes.h:38
int s32
Definition ultratypes.h:25