coastline 0.0.4
Loading...
Searching...
No Matches
SoundSourceTracking Struct Reference

The nearest sound of the track this frame and the last. More...

#include <soundsource.h>

Collaboration diagram for SoundSourceTracking:

Public Attributes

Vec3f position
Vec3f previousPosition
CameraFrame * listener
CameraFrame * previousListener
Vec3f previousListenerPosition
s32 sound
s32 previousSound
s32 source
s32 previousSource
f32 distance
f32 frequency
s32 volume
s32 playing

Detailed Description

The nearest sound of the track this frame and the last.

Member Data Documentation

◆ position

Vec3f SoundSourceTracking::position

Where the nearest sound is.

◆ previousPosition

Vec3f SoundSourceTracking::previousPosition

Where the sound was in the last frame.

◆ listener

CameraFrame* SoundSourceTracking::listener

The camera that hears the sound.

◆ previousListener

CameraFrame* SoundSourceTracking::previousListener

The camera that heard the sound in the last frame.

◆ previousListenerPosition

Vec3f SoundSourceTracking::previousListenerPosition

Where the camera was in the last frame.

◆ sound

s32 SoundSourceTracking::sound

The sound effect, or -1.

◆ previousSound

s32 SoundSourceTracking::previousSound

The sound effect of the last frame, or -1.

◆ source

s32 SoundSourceTracking::source

The source of the sound, or -1.

◆ previousSource

s32 SoundSourceTracking::previousSource

The source of the last frame, or -1.

◆ distance

f32 SoundSourceTracking::distance

How far the sound is from its camera.

◆ frequency

f32 SoundSourceTracking::frequency

The frequency in hertz, negative for a source that does not move.

◆ volume

s32 SoundSourceTracking::volume

The volume out of 256.

◆ playing

s32 SoundSourceTracking::playing

Whether the sound plays.


The documentation for this struct was generated from the following file: