VR-Forces Developer's Guide
 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 | Static 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)
 
virtual void signalIn (StreamAudioMessage *msg)
 
virtual DtRadioManagerradioManager ()
 
virtual DtRwRadioStatestate ()
 
virtual void tick ()
 
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 ()
 

Static Public Member Functions

static DtRadiocreate (DtRadioManager &mgr, DtRwRadioState &state)
 
static void setRadioCreator (RadioCreatorFcn)
 
static RadioCreatorFcn radioCreator ()
 
static DtRadiocreator (DtRadioManager &mgr, DtRwRadioState &state)
 
static double AbsRealTime ()
 

Protected Types

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

Protected Member Functions

virtual void updateStreamVolumes ()
 

Protected Attributes

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

Static Protected Attributes

static DtClock theClock
 

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.

static double makRadio::DtRadio::AbsRealTime ( )
static
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
DtClock makRadio::DtRadio::theClock
staticprotected

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

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)