XPMP2
X-Plane multiplayer library 2 - using instancing
Public Attributes | List of all members
XPMP2::SoundDefTy Struct Reference

Definition of how sound is handled based on dataRef values (type) More...

Public Attributes

float(Aircraft::* pVal )() const = nullptr
 Function return the value to observe, typically a dataRef value. More...
 
bool bSndLoop = true
 Sound to be played in a loop while value is large than valMin? Otherwise a single sound upon detection of a change of value. More...
 
float valMin = NAN
 Sound to be played if *pVal > valMin More...
 
float valMax = NAN
 Only used to control volume, which raises for *pVal between valMin and valMax More...
 

Detailed Description

Definition of how sound is handled based on dataRef values (type)

Member Data Documentation

◆ bSndLoop

bool XPMP2::SoundDefTy::bSndLoop = true

Sound to be played in a loop while value is large than valMin? Otherwise a single sound upon detection of a change of value.

◆ pVal

float(Aircraft::* XPMP2::SoundDefTy::pVal) () const = nullptr

Function return the value to observe, typically a dataRef value.

◆ valMax

float XPMP2::SoundDefTy::valMax = NAN

Only used to control volume, which raises for *pVal between valMin and valMax

◆ valMin

float XPMP2::SoundDefTy::valMin = NAN

Sound to be played if *pVal > valMin


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