![]() |
VR-Forces Developer's Guide
|

Public Member Functions | |
| DtRadioManager () | |
| virtual | ~DtRadioManager () |
| virtual void | init (const DtFilename &) |
| virtual void | init (const DtRadioSystemInitializer &init, const std::string &captureDevice="") |
| virtual void | tick (double t=0.000) |
| virtual void | shutdown () |
| DtRadioAudioManager * | radioAudioManager () const |
| virtual makAudio::DtAudioManager * | audioManager () const |
| 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 | setSoundVolume (double) |
| virtual double | soundVolume () 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 std::vector< std::string > | playbackDeviceList () const |
| virtual std::string | playbackDeviceName () const |
| virtual bool | changePlaybackDevice (const std::string &) |
| virtual std::vector< std::string > | captureDeviceList () const |
| virtual std::string | captureDeviceName () 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) |
| virtual const DtRadioSystemInitializer::Channels & | globalChannels () const |
| virtual DtRadioSystemInitializer::Channels & | globalChannels () |
| virtual DtRwRadioChannel * | findGlobalChannel (int index) |
| virtual int | numGlobalChannels () const |
| virtual DtRadioSystemInitializer * | radioSystemInitializer () |
| virtual void | reconfigureRadios () |
Public Attributes | |
| boost::signals2::signal< void(double)> | signal_soundVolumeChanged |
| boost::signals2::signal< void(const std::string &)> | signal_playbackDeviceChanged |
| boost::signals2::signal< void(const std::string &)> | signal_captureDeviceChanged |
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 |
| unsigned int | myNextRadioId |
| DtUUID | myActiveEntityId |
| DtEntityIdentifier | myVrlinkEntityId |
| ConnectionList | myConnections |
| float | myVoxThreshold |
| bool | myJammersEnabled |
| double | myCaptureFrequency |
| double | myNextCaptureTime |
| int | myReferenceCount |
| DtRadio * | myCurrentRadio |
| DtRadioSystemInitializer * | myRadioSystemInitializer |
| bool | myAutoSave |
| bool | myEnabled |
| bool | mySystemEnabled |
| DtClock | myClock |
| DtRadioAudioManager * | myRadioAudioManager = nullptr |
|
protected |
| makRadio::DtRadioManager::DtRadioManager | ( | ) |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Reimplemented in makVrf::DtVrfRadioManager.
|
virtual |
Reimplemented in makVrf::DtVrfRadioManager.
|
inline |
Wrapper class for DtAudioManager and DtAudioCapture.
|
virtual |
|
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 |
Volume as set into the sound system. Value is from 0 - 1.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Jams the radio on the given frequency.
Reimplemented in makVrf::DtVrfRadioManager.
|
virtual |
|
virtual |
|
virtual |
Get the list of audio playback devices available.
|
virtual |
Get the current playback device.
|
virtual |
|
virtual |
Get the list of audio capture devices available.
|
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 |
|
virtual |
Access global channels from the radio system initializer.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Access the radio system initializer.
|
virtual |
Reconfigure all radios using current global channels.
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
| boost::signals2::signal<void (double)> makRadio::DtRadioManager::signal_soundVolumeChanged |
| boost::signals2::signal<void(const std::string&)> makRadio::DtRadioManager::signal_playbackDeviceChanged |
| boost::signals2::signal<void(const std::string&)> makRadio::DtRadioManager::signal_captureDeviceChanged |
|
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 |
|
protected |
|
protected |
|
protected |