![]() |
VR-Forces 4.10 Class Documentation
|

Public Member Functions | |
| DtRadioManager () | |
| virtual | ~DtRadioManager () |
| virtual void | init (const DtFilename &) |
| virtual void | init (const DtRadioSystemInitializer &init, const std::string &captureDevice="") |
| virtual void | tick () |
| virtual void | shutdown () |
| virtual void | addReference () |
| Adds a refernce to this manager. If the reference count is 0 at the time will setEnabled to true. More... | |
| virtual void | removeReference () |
| Removes a reference to this manager. If the reference count is 0 will setEnabled to false. More... | |
| virtual void | setEnabled (bool enable) |
| If enabled is false will immediately set the reference count to 0. More... | |
| virtual void | setSystemEnabled (bool b, bool save=true) |
| The difference between systemEnabled and enabled is that the system can be enabled but no one is using the manager, so, it is not enabled for listening/sending. More... | |
| virtual bool | systemEnabled () const |
| virtual void | registerConnection (DtRadioConnectionBundle *connection) |
| virtual void | unregisterConnection (DtRadioConnectionBundle *connection) |
| virtual void | audioOut (makAudio::DtAudioBuffer *buffer) |
| virtual void | setActiveEntity (const DtEntityIdentifier &entityId) |
| Jams the radio on the given frequency. More... | |
| virtual DtEntityIdentifier | activeEntity () |
| virtual DtRadio * | findRadio (int idx) |
| virtual void | setRadios (const std::vector< DtRwRadioState > &, bool save=true) |
| Sets the radios into the manager, replacing the existing radios. More... | |
| virtual std::vector< DtRadio * > & | radios () |
| virtual DtRadio * | createRadio (DtRwRadioState &state) |
| virtual void | removeRadio (int idx) |
| virtual void | removeRadio (DtRadio *radio) |
| virtual void | clearRadios () |
| virtual void | sendRadioStreamMessage (StreamAudioMessage *msg) |
| virtual void | sendControlMessage (ControlMessage *msg) |
| virtual bool | changeCaptureDevice (const std::string &) |
| virtual int | nextRadioId () |
| virtual float | voxThreshold () |
| virtual void | setVoxThreshold (float val) |
| virtual bool | jammersEnabled () |
| virtual void | setJammersEnabled (bool set) |
| virtual bool | setAutoSave (bool) |
| Set to false to not automatically save any radio configuration changes. Default is true. Returns the current value. More... | |
| virtual bool | autoSave () const |
| virtual void | setSampleRate (int, bool save=true, bool reinitialize=true) |
| Sets the sample rate. More... | |
| virtual int | sampleRate () const |
| virtual void | setFormat (const std::string &, bool save=true, bool reinitialize=true) |
| Sets the format of the radio. More... | |
| virtual std::string | format () const |
| virtual double | captureFrequency () const |
| get/set the capture frequency (in hertz). More... | |
| virtual void | setCaputreFrequency (double hertz, bool save=true) |
| virtual bool | jammerEnabled (DtRadio *) const |
| Whether or not this radio is being jammed. More... | |
| virtual void | changeJammerFrequency (double oldFrequency, double newFrequency) |
| Updates the jamming of this radio. If there is no jammer by this frequency will do nothing. More... | |
| virtual bool | setJammed (DtRadio *, bool) |
| Sets the radio to be jammed/not jammed. Return true on state change. More... | |
| virtual void | clearJammers () |
| Clears out all the jammers. More... | |
| virtual DtRadio * | findCurrentRadio () |
| virtual void | setCurrentRadio (DtRadio *radio) |
Protected Types | |
| typedef std::list < DtRadioConnectionBundle * > | ConnectionList |
Protected Member Functions | |
| virtual void | configureRadios (const DtRadioSystemInitializer::Radios &radios) |
| virtual void | recreateRadios () |
| virtual void | handleNetStreamMessage (StreamAudioMessage *msg) |
Protected Attributes | |
| std::vector< DtRwRadioState > | myRadioInit |
| std::vector< DtRadio * > | myRadios |
| std::map< double, DtRadio * > | myJammers |
| These are not cleared out when the radios are. More... | |
| unsigned int | myNextRadioId |
| DtEntityIdentifier | myActiveEntityId |
| ConnectionList | myConnections |
| float | myVoxThreshold |
| bool | myJammersEnabled |
| double | myCaptureFrequency |
| double | myNextCaptureTime |
| int | myReferenceCount |
| DtRadio * | myCurrentRadio |
| DtRadioSystemInitializer * | myRadioSystemInitializer |
| bool | myAutoSave |
| bool | myEnabled |
| bool | mySystemEnabled |
|
protected |
| makRadio::DtRadioManager::DtRadioManager | ( | ) |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Reimplemented in makVrf::DtVrfRadioManager.
|
virtual |
Reimplemented in makVrf::DtVrfRadioManager.
|
virtual |
Adds a refernce to this manager. If the reference count is 0 at the time will setEnabled to true.
|
virtual |
Removes a reference to this manager. If the reference count is 0 will setEnabled to false.
|
virtual |
If enabled is false will immediately set the reference count to 0.
The difference between systemEnabled and enabled is that the system can be enabled but no one is using the manager, so, it is not enabled for listening/sending.
If this is false (default is true) it will override whatever the enabled setting is
Reimplemented in makVrf::DtVrfRadioManager.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Jams the radio on the given frequency.
Reimplemented in makVrf::DtVrfRadioManager.
|
virtual |
|
virtual |
Sets the radios into the manager, replacing the existing radios.
If the save flag is given, and, auto save is turned on, it will also write out the current system initializer back to it's loaded file with the new radios
|
inlinevirtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Reimplemented in makVrf::DtVrfRadioManager.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Set to false to not automatically save any radio configuration changes. Default is true. Returns the current value.
|
virtual |
|
virtual |
Sets the sample rate.
Valid options are 11025, 22050, 44100. If save is set then will also save the settings (if autoSave is on). If reinitialize is also set will reinitialize the radio capture for the new sample rate
|
virtual |
|
virtual |
Sets the format of the radio.
Valid options are MONO8, MONO16, MLAW8. If save is set then will also save the settings (if autoSave is on). If reinitialize is also set will reinitialize the radio capture for the new sample rate
|
virtual |
|
virtual |
get/set the capture frequency (in hertz).
This is the frequency that the capture device will be polled for new information lower values means large audio buffers, fewer PDUs, and larger latency higher values means smaller audio buffers, more PDU's and higher latency the upper limit will be limited by the framerate of the application ticking the radio manager
|
virtual |
Whether or not this radio is being jammed.
|
virtual |
Updates the jamming of this radio. If there is no jammer by this frequency will do nothing.
Reimplemented in makVrf::DtVrfRadioManager.
Sets the radio to be jammed/not jammed. Return true on state change.
Reimplemented in makVrf::DtVrfRadioManager.
|
virtual |
Clears out all the jammers.
|
virtual |
|
virtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protected |
|
protected |
These are not cleared out when the radios are.
Only cleared when the manager is deleted or they are turned off
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |