Dropship Simulator
Vmu Class Reference

Voice Messaging Unit. More...

#include <Module.h>

Inheritance diagram for Vmu:
Collaboration diagram for Vmu:

Public Member Functions

 Vmu (Bus *prmBus, int bassLocation, float *prmGetFloatPtr)
void Initialize (Devices::Bass *prmBass)
void FrameMove (float fElapsedTime) override
- Public Member Functions inherited from Module
 Module (Bus *prmBus)
virtual ~Module ()

Public Attributes

int soundDevice = -1

Private Attributes

Devices::Bassbass = nullptr
float secsincelast = 0
float * vmuGetFloatPtr = nullptr
bool powered = false
float secondsPowered = 0.0f

Additional Inherited Members

- Protected Attributes inherited from Module

Detailed Description

Voice Messaging Unit.

Definition at line 61 of file Module.h.

Constructor & Destructor Documentation

◆ Vmu()

Vmu::Vmu ( Bus prmBus,
int  bassLocation,
float *  prmGetFloatPtr 

should run through all the TTS text in the config and generate these wav files automagically

Definition at line 174 of file VMU.cpp.

Member Function Documentation

◆ FrameMove()

void Vmu::FrameMove ( float  fElapsedTime)

depends on EICAS power

easiest way it to have an "isPlaying" value accessible on the device and then marshalling playback here

so we have one-shot aural response like "priority pilot" we have ongoing aural warnings like "dual input" based on a bus value we also have ongoing warnings added from GPWS like "pull up" and "stall" from the FCS (these could be bus conditions) I feel like we need a priority for each command... and that dictates who gets shitcanned and what gets played more advanced than the real aircrafts because GPWS aural priority and TCAS aural priorities are independant and CAN play simultaneously

Implements Module.

Definition at line 3 of file VMU.cpp.

Here is the call graph for this function:

◆ Initialize()

void Vmu::Initialize ( Devices::Bass prmBass)

Definition at line 182 of file VMU.cpp.

Member Data Documentation

◆ bass

Devices::Bass* Vmu::bass = nullptr

Definition at line 64 of file Module.h.

◆ powered

bool Vmu::powered = false

Definition at line 68 of file Module.h.

◆ secondsPowered

float Vmu::secondsPowered = 0.0f

Definition at line 69 of file Module.h.

◆ secsincelast

float Vmu::secsincelast = 0

Definition at line 65 of file Module.h.

◆ soundDevice

int Vmu::soundDevice = -1

Definition at line 72 of file Module.h.

◆ vmuGetFloatPtr

float* Vmu::vmuGetFloatPtr = nullptr

Definition at line 67 of file Module.h.

The documentation for this class was generated from the following files: