|
| | 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 () |
| |
| virtual void | removeReference () |
| |
| virtual void | setEnabled (bool enable) |
| |
| virtual void | setSystemEnabled (bool b, bool save=true) |
| |
| virtual bool | systemEnabled () const |
| |
| virtual void | registerConnection (DtRadioConnectionBundle *connection) |
| |
| virtual void | unregisterConnection (DtRadioConnectionBundle *connection) |
| |
| virtual void | audioOut (makAudio::DtAudioBuffer *buffer) |
| |
| virtual void | setActiveEntity (const DtUUID &entityId, const DtEntityIdentifier &id) |
| |
| virtual const DtUUID & | activeEntity () const |
| |
| virtual const DtEntityIdentifier & | vrlinkEntityId () const |
| |
| virtual DtRadio * | findRadio (int idx) |
| |
| virtual void | setRadios (const std::vector< DtRwRadioState > &, bool save=true) |
| |
| 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 () const |
| |
| virtual void | setVoxThreshold (float val) |
| |
| virtual bool | jammersEnabled () const |
| |
| virtual void | setJammersEnabled (bool set) |
| |
| virtual bool | setAutoSave (bool) |
| |
| virtual bool | autoSave () const |
| |
| virtual void | setSampleRate (int, bool save=true, bool reinitialize=true) |
| |
| virtual int | sampleRate () const |
| |
| virtual void | setFormat (const std::string &, bool save=true, bool reinitialize=true) |
| |
| virtual std::string | format () const |
| |
| virtual double | captureFrequency () const |
| |
| virtual void | setCaputreFrequency (double hertz, bool save=true) |
| |
| virtual bool | jammerEnabled (DtRadio *) const |
| |
| virtual void | changeJammerFrequency (double oldFrequency, double newFrequency) |
| |
| virtual bool | setJammed (DtRadio *, bool) |
| |
| virtual void | clearJammers () |
| |
| virtual DtRadio * | findCurrentRadio () |
| |
| virtual void | setCurrentRadio (DtRadio *radio) |
| |
| makRadio::DtRadioManager::DtRadioManager |
( |
| ) |
|
| virtual makRadio::DtRadioManager::~DtRadioManager |
( |
| ) |
|
|
virtual |
| virtual void makRadio::DtRadioManager::init |
( |
const DtFilename & |
| ) |
|
|
virtual |
| virtual void makRadio::DtRadioManager::init |
( |
const DtRadioSystemInitializer & |
init, |
|
|
const std::string & |
captureDevice = "" |
|
) |
| |
|
virtual |
| virtual void makRadio::DtRadioManager::tick |
( |
| ) |
|
|
virtual |
| virtual void makRadio::DtRadioManager::shutdown |
( |
| ) |
|
|
virtual |
| virtual void makRadio::DtRadioManager::addReference |
( |
| ) |
|
|
virtual |
Adds a refernce to this manager. If the reference count is 0 at the time will setEnabled to true.
| virtual void makRadio::DtRadioManager::removeReference |
( |
| ) |
|
|
virtual |
Removes a reference to this manager. If the reference count is 0 will setEnabled to false.
| virtual void makRadio::DtRadioManager::setEnabled |
( |
bool |
enable | ) |
|
|
virtual |
If enabled is false will immediately set the reference count to 0.
| virtual void makRadio::DtRadioManager::setSystemEnabled |
( |
bool |
b, |
|
|
bool |
save = true |
|
) |
| |
|
virtual |
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 bool makRadio::DtRadioManager::systemEnabled |
( |
| ) |
const |
|
virtual |
| virtual void makRadio::DtRadioManager::audioOut |
( |
makAudio::DtAudioBuffer * |
buffer | ) |
|
|
virtual |
| virtual void makRadio::DtRadioManager::setActiveEntity |
( |
const DtUUID & |
entityId, |
|
|
const DtEntityIdentifier & |
id |
|
) |
| |
|
virtual |
| virtual const DtUUID& makRadio::DtRadioManager::activeEntity |
( |
| ) |
const |
|
virtual |
| virtual const DtEntityIdentifier& makRadio::DtRadioManager::vrlinkEntityId |
( |
| ) |
const |
|
virtual |
| virtual DtRadio* makRadio::DtRadioManager::findRadio |
( |
int |
idx | ) |
|
|
virtual |
| virtual void makRadio::DtRadioManager::setRadios |
( |
const std::vector< DtRwRadioState > & |
, |
|
|
bool |
save = true |
|
) |
| |
|
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.
| virtual std::vector<DtRadio*>& makRadio::DtRadioManager::radios |
( |
| ) |
|
|
inlinevirtual |
| virtual void makRadio::DtRadioManager::removeRadio |
( |
int |
idx | ) |
|
|
virtual |
| virtual void makRadio::DtRadioManager::removeRadio |
( |
DtRadio * |
radio | ) |
|
|
virtual |
| virtual void makRadio::DtRadioManager::clearRadios |
( |
| ) |
|
|
virtual |
| virtual void makRadio::DtRadioManager::sendControlMessage |
( |
ControlMessage * |
msg | ) |
|
|
virtual |
| virtual bool makRadio::DtRadioManager::changeCaptureDevice |
( |
const std::string & |
| ) |
|
|
virtual |
| virtual int makRadio::DtRadioManager::nextRadioId |
( |
| ) |
|
|
virtual |
| virtual float makRadio::DtRadioManager::voxThreshold |
( |
| ) |
const |
|
virtual |
| virtual void makRadio::DtRadioManager::setVoxThreshold |
( |
float |
val | ) |
|
|
virtual |
| virtual bool makRadio::DtRadioManager::jammersEnabled |
( |
| ) |
const |
|
virtual |
| virtual void makRadio::DtRadioManager::setJammersEnabled |
( |
bool |
set | ) |
|
|
virtual |
| virtual bool makRadio::DtRadioManager::setAutoSave |
( |
bool |
| ) |
|
|
virtual |
Set to false to not automatically save any radio configuration changes. Default is true. Returns the current value.
| virtual bool makRadio::DtRadioManager::autoSave |
( |
| ) |
const |
|
virtual |
| virtual void makRadio::DtRadioManager::setSampleRate |
( |
int |
, |
|
|
bool |
save = true, |
|
|
bool |
reinitialize = true |
|
) |
| |
|
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 int makRadio::DtRadioManager::sampleRate |
( |
| ) |
const |
|
virtual |
| virtual void makRadio::DtRadioManager::setFormat |
( |
const std::string & |
, |
|
|
bool |
save = true, |
|
|
bool |
reinitialize = true |
|
) |
| |
|
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 std::string makRadio::DtRadioManager::format |
( |
| ) |
const |
|
virtual |
| virtual double makRadio::DtRadioManager::captureFrequency |
( |
| ) |
const |
|
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 void makRadio::DtRadioManager::setCaputreFrequency |
( |
double |
hertz, |
|
|
bool |
save = true |
|
) |
| |
|
virtual |
| virtual bool makRadio::DtRadioManager::jammerEnabled |
( |
DtRadio * |
| ) |
const |
|
virtual |
Whether or not this radio is being jammed.
| virtual void makRadio::DtRadioManager::changeJammerFrequency |
( |
double |
oldFrequency, |
|
|
double |
newFrequency |
|
) |
| |
|
virtual |
Updates the jamming of this radio. If there is no jammer by this frequency will do nothing.
Reimplemented in makVrf::DtVrfRadioManager.
| virtual void makRadio::DtRadioManager::clearJammers |
( |
| ) |
|
|
virtual |
Clears out all the jammers.
| virtual DtRadio* makRadio::DtRadioManager::findCurrentRadio |
( |
| ) |
|
|
virtual |
| virtual void makRadio::DtRadioManager::setCurrentRadio |
( |
DtRadio * |
radio | ) |
|
|
virtual |
| virtual void makRadio::DtRadioManager::recreateRadios |
( |
| ) |
|
|
protectedvirtual |
| std::vector<DtRadio*> makRadio::DtRadioManager::myRadios |
|
protected |
These are not cleared out when the radios are. Only cleared when the manager is deleted or they are turned off.
| DtUUID makRadio::DtRadioManager::myActiveEntityId |
|
protected |
| DtEntityIdentifier makRadio::DtRadioManager::myVrlinkEntityId |
|
protected |
| float makRadio::DtRadioManager::myVoxThreshold |
|
protected |
| bool makRadio::DtRadioManager::myJammersEnabled |
|
protected |
| double makRadio::DtRadioManager::myCaptureFrequency |
|
protected |
| double makRadio::DtRadioManager::myNextCaptureTime |
|
protected |
| int makRadio::DtRadioManager::myReferenceCount |
|
protected |
| DtRadio* makRadio::DtRadioManager::myCurrentRadio |
|
protected |
| bool makRadio::DtRadioManager::myAutoSave |
|
protected |
| bool makRadio::DtRadioManager::myEnabled |
|
protected |
| bool makRadio::DtRadioManager::mySystemEnabled |
|
protected |
| DtClock makRadio::DtRadioManager::myClock |
|
protected |
The documentation for this class was generated from the following file:
- /data/exports/nrhent7-1/nightly/docs/vrForces.vrf5-1-branch/include/makRadio/radioManager.h