VR-Forces 5.0.1 Developer's Guide
 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 
11 #include <string>
12 
13 namespace makAudio
14 {
15  class DtAudioBuffer;
16 }
17 
18 class DtUUID;
19 
20 namespace makRadio
21 {
22  double DT_DLL_MAKRADIO DtCreateIntercomFrequency(const DtUUID& entityId);
23 
24  DtRadioID DT_DLL_MAKRADIO DtCreateStreamTag(int site, int host, int entityNum, int radioId);
25  DtRadioID DT_DLL_MAKRADIO DtCreateStreamTag(const DtEntityIdentifier& entityId, int radioId);
26 
27  void DT_DLL_MAKRADIO DtDecodeStreamTag(DtRadioID tag, int& site, int& host, int& entityNum, int& radioId);
28  void DT_DLL_MAKRADIO DtDecodeStreamTag(DtRadioID tag, DtEntityIdentifier& entityId, int& radioId);
29 
30  std::string DT_DLL_MAKRADIO DtCreateRadioTransmitterName(const DtEntityIdentifier& entityId, int radioId);
31  std::string DT_DLL_MAKRADIO DtCreateRadioReceiverName(const DtEntityIdentifier& entityId, int radioId);
32  void DT_DLL_MAKRADIO DtDecodeRadioName(const std::string& name, DtEntityIdentifier& entityId, int& radioId);
33 
35  float DT_DLL_MAKRADIO DtSignalStrength(makAudio::DtAudioBuffer* msg);
36 }
UUID is a unique ID wrapper class.
Definition: rwUUID.h:226
double DT_DLL_MAKRADIO DtCreateIntercomFrequency(const DtUUID &entityId)
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)
std::string DT_DLL_MAKRADIO DtCreateRadioTransmitterName(const DtEntityIdentifier &entityId, int radioId)
std::string DT_DLL_MAKRADIO DtCreateRadioReceiverName(const DtEntityIdentifier &entityId, int radioId)

Document ID: Generated on Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)