Rise
The Vieneo Province
Loading...
Searching...
No Matches
EngineAudio Namespace Reference

Classes

struct  Source
struct  Sources

Enumerations

enum  Slot { Left , Right , Center , SlotCount }
enum class  Kind {
  Car , Truck , HeavyDiesel , Jet ,
  Rocket
}

Functions

int SlotForEngine (int engineCount, int engine)
float ReferenceDistanceKm (Kind kind)
Sources Create (int count, Kind kind, float sideArmKm, float forwardKm)
template<class Component>
void Locate (Sources &cache, const Component *components, unsigned count, const RiseMath::Matrix &modelToBody)
float Strength (float output)
VehicleSoundSpatial::Mix Calculate (const Sources &cache, int slot, const RiseMath::Vector3 &cameraFromVehicle, float yaw, float pitch, float roll, const RiseMath::Matrix &bodyToCameraFrame, const std::array< float, SlotCount > &weights)

Enumeration Type Documentation

◆ Kind

enum class EngineAudio::Kind
strong
Enumerator
Car 
Truck 
HeavyDiesel 
Jet 
Rocket 

Definition at line 9 of file EngineAudio.h.

◆ Slot

Enumerator
Left 
Right 
Center 
SlotCount 

Definition at line 8 of file EngineAudio.h.

Function Documentation

◆ Calculate()

VehicleSoundSpatial::Mix EngineAudio::Calculate ( const Sources & cache,
int slot,
const RiseMath::Vector3 & cameraFromVehicle,
float yaw,
float pitch,
float roll,
const RiseMath::Matrix & bodyToCameraFrame,
const std::array< float, SlotCount > & weights )
inline

Definition at line 112 of file EngineAudio.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Create()

Sources EngineAudio::Create ( int count,
Kind kind,
float sideArmKm,
float forwardKm )
inline

Definition at line 55 of file EngineAudio.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Locate()

template<class Component>
void EngineAudio::Locate ( Sources & cache,
const Component * components,
unsigned count,
const RiseMath::Matrix & modelToBody )

Definition at line 72 of file EngineAudio.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ReferenceDistanceKm()

float EngineAudio::ReferenceDistanceKm ( Kind kind)
inline

Definition at line 20 of file EngineAudio.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SlotForEngine()

int EngineAudio::SlotForEngine ( int engineCount,
int engine )
inline

Definition at line 12 of file EngineAudio.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Strength()

float EngineAudio::Strength ( float output)
inline

Definition at line 107 of file EngineAudio.h.

Here is the call graph for this function:
Here is the caller graph for this function: