VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
utils.h
Go to the documentation of this file.
1 /*********************************************************************************
2 ** Copyright (c) 2016 MAK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************************/
5 
6 #pragma once
7 
8 #include <makRadio/export.h>
9 #include <makRadio/radio.h>
10 #include <vlpi/entityIdentifier.h>
11 
12 #include <string>
13 
14 namespace makAudio
15 {
16  class DtAudioBuffer;
17 }
18 
19 namespace makRadio
20 {
21  double DT_DLL_MAKRADIO DtCreateIntercomFrequency(const DtEntityIdentifier& entityId);
22 
23  DtRadioID DT_DLL_MAKRADIO DtCreateStreamTag(int site, int host, int entityNum, int radioId);
24  DtRadioID DT_DLL_MAKRADIO DtCreateStreamTag(const DtEntityIdentifier& entityId, int radioId);
25 
26  void DT_DLL_MAKRADIO DtDecodeStreamTag(DtRadioID tag, int& site, int& host, int& entityNum, int& radioId);
27  void DT_DLL_MAKRADIO DtDecodeStreamTag(DtRadioID tag, DtEntityIdentifier& entityId, int& radioId);
28 
29  std::string DT_DLL_MAKRADIO DtCreateRadioTransmitterName(const DtEntityIdentifier& entityId, int radioId);
30  std::string DT_DLL_MAKRADIO DtCreateRadioReceiverName(const DtEntityIdentifier& entityId, int radioId);
31  void DT_DLL_MAKRADIO DtDecodeRadioName(const std::string& name, DtEntityIdentifier& entityId, int& radioId);
32 
34  float DT_DLL_MAKRADIO DtSignalStrength(makAudio::DtAudioBuffer* msg);
35 }
float DT_DLL_MAKRADIO DtSignalStrength(makAudio::DtAudioBuffer *msg)
Get the audio signal strength on a scale of 0..1.
DtRadioID DT_DLL_MAKRADIO DtCreateStreamTag(int site, int host, int entityNum, int radioId)
void DT_DLL_MAKRADIO DtDecodeStreamTag(DtRadioID tag, int &site, int &host, int &entityNum, int &radioId)
#define DT_DLL_MAKRADIO
Get proper local export symbol.
Definition: export.h:17
void DT_DLL_MAKRADIO DtDecodeRadioName(const std::string &name, DtEntityIdentifier &entityId, int &radioId)
unsigned long long DtRadioID
Definition: radio.h:15
std::string DT_DLL_MAKRADIO DtCreateRadioTransmitterName(const DtEntityIdentifier &entityId, int radioId)
double DT_DLL_MAKRADIO DtCreateIntercomFrequency(const DtEntityIdentifier &entityId)
std::string DT_DLL_MAKRADIO DtCreateRadioReceiverName(const DtEntityIdentifier &entityId, int radioId)

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)