VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Types | Public Member Functions | Static Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes
makRadio::DtRadio Class Reference

Public Types

typedef DtRadio *(* RadioCreatorFcn )(DtRadioManager &mgr, DtRwRadioState &state)
 

Public Member Functions

 DtRadio (DtRadioManager &mgr, DtRwRadioState &state)
 
virtual ~DtRadio ()
 
virtual void audioOut (makAudio::DtAudioBuffer *buffer)
 send an audio buffer out to the network from this radio if radio is on and transmitting More...
 
virtual void signalIn (StreamAudioMessage *msg)
 receive and play audio stream from network if radio is on and capable of receiving signal More...
 
virtual DtRadioManagerradioManager ()
 get the audio manager that owns this radio More...
 
virtual DtRwRadioStatestate ()
 
virtual void tick ()
 Tick radio. Called by radio manager, not to be called by user. More...
 
virtual void isPoweredChanged (DtRadio *radio, bool val)
 
virtual void frequencyChanged (DtRadio *radio, double val)
 
virtual void powerChanged (DtRadio *radio, float val)
 
virtual void volumeChanged (DtRadio *radio, float val)
 
virtual void speakerMutedChanged (DtRadio *radio, bool val)
 
virtual void updateRadioInterface ()
 sends radio settings to network. Used internally by radio manager, not to be called by user. More...
 

Static Public Member Functions

static DtRadiocreate (DtRadioManager &mgr, DtRwRadioState &state)
 Static creator that will create a radio. Call setRadioCreator to create a derived radio. More...
 
static void setRadioCreator (RadioCreatorFcn)
 
static RadioCreatorFcn radioCreator ()
 
static DtRadiocreator (DtRadioManager &mgr, DtRwRadioState &state)
 Default creator. More...
 

Protected Types

typedef std::map< std::string,
makAudio::DtSound * > 
StreamMap
 

Protected Member Functions

virtual void updateStreamVolumes ()
 updates all the volumes of current audio streams More...
 

Protected Attributes

int myIntercomStreamId
 
DtRadioID myStreamId
 
double myTimeLastVoxSignal
 
std::string myActiveStream
 
double myTimeSinceLastSignal
 
StreamMap myStreams
 
std::map< int, doublemyRxLevels
 
DtRadioManagermyManager
 
DtRwRadioState myState
 
makVrv::DtSignalConnectionManagermyConnections
 

Member Typedef Documentation

typedef DtRadio*(* makRadio::DtRadio::RadioCreatorFcn)(DtRadioManager &mgr, DtRwRadioState &state)
typedef std::map<std::string, makAudio::DtSound*> makRadio::DtRadio::StreamMap
protected

Constructor & Destructor Documentation

makRadio::DtRadio::DtRadio ( DtRadioManager mgr,
DtRwRadioState state 
)
virtual makRadio::DtRadio::~DtRadio ( )
virtual

Member Function Documentation

static DtRadio* makRadio::DtRadio::create ( DtRadioManager mgr,
DtRwRadioState state 
)
static

Static creator that will create a radio. Call setRadioCreator to create a derived radio.

static void makRadio::DtRadio::setRadioCreator ( RadioCreatorFcn  )
static
static RadioCreatorFcn makRadio::DtRadio::radioCreator ( )
static
static DtRadio* makRadio::DtRadio::creator ( DtRadioManager mgr,
DtRwRadioState state 
)
static

Default creator.

virtual void makRadio::DtRadio::audioOut ( makAudio::DtAudioBuffer *  buffer)
virtual

send an audio buffer out to the network from this radio if radio is on and transmitting

virtual void makRadio::DtRadio::signalIn ( StreamAudioMessage msg)
virtual

receive and play audio stream from network if radio is on and capable of receiving signal

virtual DtRadioManager& makRadio::DtRadio::radioManager ( )
virtual

get the audio manager that owns this radio

virtual DtRwRadioState& makRadio::DtRadio::state ( )
virtual
virtual void makRadio::DtRadio::tick ( )
virtual

Tick radio. Called by radio manager, not to be called by user.

virtual void makRadio::DtRadio::isPoweredChanged ( DtRadio radio,
bool  val 
)
virtual
virtual void makRadio::DtRadio::frequencyChanged ( DtRadio radio,
double  val 
)
virtual
virtual void makRadio::DtRadio::powerChanged ( DtRadio radio,
float  val 
)
virtual
virtual void makRadio::DtRadio::volumeChanged ( DtRadio radio,
float  val 
)
virtual
virtual void makRadio::DtRadio::speakerMutedChanged ( DtRadio radio,
bool  val 
)
virtual
virtual void makRadio::DtRadio::updateRadioInterface ( )
virtual

sends radio settings to network. Used internally by radio manager, not to be called by user.

virtual void makRadio::DtRadio::updateStreamVolumes ( )
protectedvirtual

updates all the volumes of current audio streams

Member Data Documentation

int makRadio::DtRadio::myIntercomStreamId
protected
DtRadioID makRadio::DtRadio::myStreamId
protected
double makRadio::DtRadio::myTimeLastVoxSignal
protected
std::string makRadio::DtRadio::myActiveStream
protected
double makRadio::DtRadio::myTimeSinceLastSignal
protected
StreamMap makRadio::DtRadio::myStreams
protected
std::map<int, double> makRadio::DtRadio::myRxLevels
protected
DtRadioManager& makRadio::DtRadio::myManager
protected
DtRwRadioState makRadio::DtRadio::myState
protected
makVrv::DtSignalConnectionManager* makRadio::DtRadio::myConnections
protected

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

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)