RigsofRods
Soft-body Physics Simulation
source
main
audio
MumbleIntegration.h
Go to the documentation of this file.
1
/*
2
This source file is part of Rigs of Rods
3
Copyright 2005-2012 Pierre-Michel Ricordel
4
Copyright 2007-2012 Thomas Fischer
5
Copyright 2013-2020 Petr Ohlidal
6
7
For more information, see http://www.rigsofrods.org/
8
9
Rigs of Rods is free software: you can redistribute it and/or modify
10
it under the terms of the GNU General Public License version 3, as
11
published by the Free Software Foundation.
12
13
Rigs of Rods is distributed in the hope that it will be useful,
14
but WITHOUT ANY WARRANTY; without even the implied warranty of
15
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
GNU General Public License for more details.
17
18
You should have received a copy of the GNU General Public License
19
along with Rigs of Rods. If not, see <http://www.gnu.org/licenses/>.
20
*/
21
25
26
#pragma once
27
28
#ifdef USE_MUMBLE
29
30
#include "
Application.h
"
31
32
#ifdef _WIN32
33
#include <windows.h>
34
#else
35
#include <sys/mman.h>
36
#include <fcntl.h>
/* For O_* constants */
37
#endif // _WIN32
38
39
namespace
RoR
{
40
43
44
class
MumbleIntegration
45
{
46
public
:
47
MumbleIntegration();
48
~MumbleIntegration();
49
50
void
Update();
51
52
protected
:
53
void
initMumble();
54
void
updateMumble(Ogre::Vector3 cameraPos, Ogre::Vector3 cameraDir, Ogre::Vector3 cameraUp, Ogre::Vector3 avatarPos, Ogre::Vector3 avatarDir, Ogre::Vector3 avatarUp);
55
void
SetNonPositionalAudio();
// for main menu
56
57
struct
LinkedMem
58
{
59
#ifdef _WIN32
60
UINT32 uiVersion;
61
DWORD uiTick;
62
#else
63
uint32_t uiVersion;
64
uint32_t uiTick;
65
#endif // _WIN32
66
float
fAvatarPosition[3];
67
float
fAvatarFront[3];
68
float
fAvatarTop[3];
69
wchar_t
name[256];
70
float
fCameraPosition[3];
71
float
fCameraFront[3];
72
float
fCameraTop[3];
73
wchar_t
identity[256];
74
#ifdef _WIN32
75
UINT32 context_len;
76
#else
77
uint32_t context_len;
78
#endif // _WIN32
79
unsigned
char
context[256];
80
wchar_t
description[2048];
81
};
82
83
LinkedMem* lm =
nullptr
;
84
};
85
87
88
}
// namespace RoR
89
90
#endif //USE_MUMBLE
Application.h
Central state/object manager and communications hub.
RoR
Definition:
AppContext.h:36
Generated by
1.8.17