VANetClientImpl.cpp 54.4 KB
Newer Older
Jonas Stienen's avatar
Jonas Stienen committed
1
/*
2
 *  --------------------------------------------------------------------------------------------
Jonas Stienen's avatar
Jonas Stienen committed
3
 *
4
5
6
7
8
9
 *    VVV        VVV A           Virtual Acoustics (VA) | http://www.virtualacoustics.org
 *     VVV      VVV AAA          Licensed under the Apache License, Version 2.0
 *      VVV    VVV   AAA
 *       VVV  VVV     AAA        Copyright 2015-2017
 *        VVVVVV       AAA       Institute of Technical Acoustics (ITA)
 *         VVVV         AAA      RWTH Aachen University
Jonas Stienen's avatar
Jonas Stienen committed
10
 *
11
 *  --------------------------------------------------------------------------------------------
Jonas Stienen's avatar
Jonas Stienen committed
12
 */
13

Jonas Stienen's avatar
Jonas Stienen committed
14
15
16
17
#include "VANetClientImpl.h"
#include "VANetNetworkProtocol.h"
#include "VANetVistaCompatibility.h"

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
18
#include <VA.h>
Jonas Stienen's avatar
Jonas Stienen committed
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39

// ViSTA includes
#include <VistaInterProcComm/Connections/VistaConnectionIP.h>
#include <VistaInterProcComm/Concurrency/VistaMutex.h>
#include <VistaInterProcComm/Concurrency/VistaThreadLoop.h>
#include <VistaBase/VistaDefaultTimerImp.h>
#include <VistaBase/VistaExceptionBase.h>
#include <VistaBase/VistaSerializingToolset.h>
#include <VistaBase/VistaTimerImp.h>

#include <algorithm>
#include <cassert>


// Ensures that any possible call to the client
// is executed stricly serial. No two commands may
// be entered at the same time. This ensures that
// multiple client thread can use the client safely.
#define VA_MUTAL_EXCLUDE VistaMutexLock oLock( m_oCommandMutex )

// State checking macro
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
40
#define VA_REQUIRE_CONNECTED { if( m_pParent->GetConnected() == false ) VA_EXCEPT2( MODAL_ERROR, "Not connected." ); }
Jonas Stienen's avatar
Jonas Stienen committed
41
42
43
44
45
46


////////////////////////////////////////////////
/////// NetworkedVACore                 ////////
////////////////////////////////////////////////

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
47
class CVANetClientImpl::CNetworkedVACore : public IVAInterface
48
{
Jonas Stienen's avatar
Jonas Stienen committed
49
public:
50
	inline CNetworkedVACore( CVANetNetworkProtocol* pProtocol, CVANetClientImpl* pParent, VistaConnectionIP* pCommandChannel, VistaConnectionIP* pHeadChannel )
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
51
		: IVAInterface()
52
53
54
55
		, m_pParent( pParent )
		, m_pCommandChannel( pCommandChannel )
		, m_pHeadChannel( pHeadChannel )
		, m_pProtocol( pProtocol )
Jonas Stienen's avatar
Jonas Stienen committed
56
57
58
59
60
	{
		if( m_pHeadChannel )
			m_pHeadMutex = new VistaMutex;
		else
			m_pHeadMutex = &m_oCommandMutex;
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
61
	};
Jonas Stienen's avatar
Jonas Stienen committed
62

63
	inline ~CNetworkedVACore()
Jonas Stienen's avatar
Jonas Stienen committed
64
65
66
	{
		if( m_pHeadChannel )
			delete m_pHeadMutex;
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
67
	};
Jonas Stienen's avatar
Jonas Stienen committed
68

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
69
70
71
72
	inline VistaMutex* GetCommandMutex()
	{
		return &m_oCommandMutex;
	};
Jonas Stienen's avatar
Jonas Stienen committed
73

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
74
75
76
77
	inline VistaMutex* GetHeadMutex()
	{
		return m_pHeadMutex;
	};
Jonas Stienen's avatar
Jonas Stienen committed
78

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
79
	inline void GetVersionInfo( CVAVersionInfo* pVersionInfo ) const
80
	{
Jonas Stienen's avatar
Jonas Stienen committed
81
82
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
83
		return m_pProtocol->ClientGetVersionInfo( pVersionInfo );
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
84
	};
Jonas Stienen's avatar
Jonas Stienen committed
85

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
86
	inline void SetDebugStream( std::ostream* )
87
	{
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
88
89
		VA_EXCEPT_NOT_IMPLEMENTED;
	};
Jonas Stienen's avatar
Jonas Stienen committed
90

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
91
	inline int GetState() const
92
	{
Jonas Stienen's avatar
Jonas Stienen committed
93
94
95
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
		return m_pProtocol->ClientGetState();
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
96
	};
Jonas Stienen's avatar
Jonas Stienen committed
97

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
98
	inline void Initialize()
99
	{
Jonas Stienen's avatar
Jonas Stienen committed
100
101
102
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
		m_pProtocol->ClientInitialize();
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
103
	};
Jonas Stienen's avatar
Jonas Stienen committed
104

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
105
	inline void Finalize()
106
	{
Jonas Stienen's avatar
Jonas Stienen committed
107
108
109
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
		m_pProtocol->ClientFinalize();
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
110
	};
Jonas Stienen's avatar
Jonas Stienen committed
111

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
112
	inline void Reset()
113
	{
Jonas Stienen's avatar
Jonas Stienen committed
114
115
116
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
		m_pProtocol->ClientReset();
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
117
	};
Jonas Stienen's avatar
Jonas Stienen committed
118

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
119
	inline void AttachEventHandler( IVAEventHandler* pEventHandler )
120
	{
Jonas Stienen's avatar
Jonas Stienen committed
121
122
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
123
		m_pParent->AttachEventHandler( pEventHandler );
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
124
	};
Jonas Stienen's avatar
Jonas Stienen committed
125

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
126
	inline void DetachEventHandler( IVAEventHandler* pEventHandler )
127
	{
Jonas Stienen's avatar
Jonas Stienen committed
128
129
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
130
131
132
133
134
135
136
137
		m_pParent->DetachEventHandler( pEventHandler );
	};

	inline CVAStruct GetSearchPaths() const
	{
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
		return m_pProtocol->ClientGetSearchPaths();
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
138
	};
Jonas Stienen's avatar
Jonas Stienen committed
139

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
140
141
142
143
144
145
	inline std::string FindFilePath( const std::string& sFilePath ) const
	{
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
		return m_pProtocol->ClientFindFilePath( sFilePath );
	};
Jonas Stienen's avatar
Jonas Stienen committed
146

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
147
148
	inline void GetModules( std::vector< CVAModuleInfo >& viModuleInfos ) const
	{
Jonas Stienen's avatar
Jonas Stienen committed
149
150
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
151
152
		m_pProtocol->ClientGetModules( viModuleInfos );
	};
Jonas Stienen's avatar
Jonas Stienen committed
153

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
154
	inline CVAStruct CallModule( const std::string& sModuleName, const CVAStruct& oArgs )
Jonas Stienen's avatar
Jonas Stienen committed
155
156
157
	{
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
158
159
		return m_pProtocol->ClientCallModule( sModuleName, oArgs );
	};
Jonas Stienen's avatar
Jonas Stienen committed
160
161


Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
162
163
	inline int CreateDirectivityFromParameters( const CVAStruct& oParams, const std::string& sName /* = "" */ )
	{
Jonas Stienen's avatar
Jonas Stienen committed
164
165
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
166
167
		return m_pProtocol->ClientCreateDirectivityFromParameters( oParams, sName );
	};
Jonas Stienen's avatar
Jonas Stienen committed
168

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
169
170
	inline bool DeleteDirectivity( const int iID )
	{
Jonas Stienen's avatar
Jonas Stienen committed
171
172
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
173
174
		return m_pProtocol->ClientDeleteDirectivity( iID );
	};
Jonas Stienen's avatar
Jonas Stienen committed
175

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
176
177
	inline CVADirectivityInfo GetDirectivityInfo( const int iDirID ) const
	{
Jonas Stienen's avatar
Jonas Stienen committed
178
179
180
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
		return m_pProtocol->ClientGetDirectivityInfo( iDirID );
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
181
	};
Jonas Stienen's avatar
Jonas Stienen committed
182

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
183
	inline void GetDirectivityInfos( std::vector< CVADirectivityInfo >& vdiDest ) const
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
184
	{
Jonas Stienen's avatar
Jonas Stienen committed
185
186
187
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
		m_pProtocol->ClientGetDirectivityInfos( vdiDest );
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
188
	};
Jonas Stienen's avatar
Jonas Stienen committed
189

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
	inline void SetDirectivityName( const int iID, const std::string& sName )
	{
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
		m_pProtocol->ClientSetDirectivityName( iID, sName );
	};

	inline std::string GetDirectivityName( const int iID ) const
	{
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
		return m_pProtocol->ClientGetDirectivityName( iID );
	};

	inline void SetDirectivityParameters( const int iID, const CVAStruct& oParams )
	{
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
		m_pProtocol->ClientSetDirectivityParameters( iID, oParams );
	};

	inline CVAStruct GetDirectivityParameters( const int iID, const CVAStruct& oArgs ) const
	{
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
		return m_pProtocol->ClientGetDirectivityParameters( iID, oArgs );
	};

218

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
219
	inline std::string CreateSignalSourceBufferFromParameters( const CVAStruct& oParams, const std::string& sName = "" )
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
220
	{
Jonas Stienen's avatar
Jonas Stienen committed
221
222
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
223
		return m_pProtocol->ClientCreateSignalSourceBufferFromParameters( oParams, sName );
224
225
	};

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
226
	inline std::string CreateSignalSourceTextToSpeech( const std::string& sName = "" )
227
228
229
230
231
	{
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
		return m_pProtocol->ClientCreateTextToSpeechSignalSource( sName );
	};
Jonas Stienen's avatar
Jonas Stienen committed
232

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
233
	inline std::string CreateSignalSourceSequencer( const std::string& sName = "" )
234
	{
Jonas Stienen's avatar
Jonas Stienen committed
235
236
237
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
		return m_pProtocol->ClientCreateSequencerSignalSource( sName );
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
238
	};
Jonas Stienen's avatar
Jonas Stienen committed
239

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
240
241
	inline std::string CreateSignalSourceNetworkStream( const std::string& sInterface, const int iPort, const std::string& sName = "" )
	{
Jonas Stienen's avatar
Jonas Stienen committed
242
243
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
244
		return m_pProtocol->ClientCreateNetworkStreamSignalSource( sInterface, iPort, sName );
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
245
	};
Jonas Stienen's avatar
Jonas Stienen committed
246

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
247
	inline std::string CreateSignalSourceEngine( const CVAStruct& oParams, const std::string& sName = "" )
Jonas Stienen's avatar
Jonas Stienen committed
248
249
250
	{
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
251
252
		return m_pProtocol->ClientCreateEngineSignalSource( oParams, sName );
	};
Jonas Stienen's avatar
Jonas Stienen committed
253

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
254
	inline std::string CreateSignalSourceMachine( const CVAStruct& oParams, const std::string& sName = "" )
Jonas Stienen's avatar
Jonas Stienen committed
255
256
257
	{
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
258
259
		return m_pProtocol->ClientCreateSignalSourceMachine( oParams, sName );
	};
Jonas Stienen's avatar
Jonas Stienen committed
260

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
261
	inline bool DeleteSignalSource( const std::string& sID )
Jonas Stienen's avatar
Jonas Stienen committed
262
263
264
265
	{
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
		return m_pProtocol->ClientDeleteSignalSource( sID );
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
266
	};
Jonas Stienen's avatar
Jonas Stienen committed
267

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
268
	inline std::string RegisterSignalSource( IVAAudioSignalSource*, const std::string& )
269
270
	{
		VA_EXCEPT2( NOT_IMPLEMENTED, "This function is not available when operating on a remote server" );
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
271
	};
Jonas Stienen's avatar
Jonas Stienen committed
272

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
273
	inline bool UnregisterSignalSource( IVAAudioSignalSource* )
274
275
	{
		VA_EXCEPT2( NOT_IMPLEMENTED, "This function is not available when operating on a remote server" );
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
276
	};
Jonas Stienen's avatar
Jonas Stienen committed
277

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
278
	inline CVASignalSourceInfo GetSignalSourceInfo( const std::string& sSignalSourceID ) const
279
	{
Jonas Stienen's avatar
Jonas Stienen committed
280
281
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
282
		return m_pProtocol->ClientGetSignalSourceInfo( sSignalSourceID );
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
283
	};
Jonas Stienen's avatar
Jonas Stienen committed
284

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
285
286
	inline void GetSignalSourceInfos( std::vector<CVASignalSourceInfo>& vssiDest ) const
	{
Jonas Stienen's avatar
Jonas Stienen committed
287
288
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
289
		return m_pProtocol->ClientGetSignalSourceInfos( vssiDest );
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
290
	};
Jonas Stienen's avatar
Jonas Stienen committed
291

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
292
293
	inline int GetSignalSourceBufferPlaybackState( const std::string& sSignalSourceID ) const
	{
Jonas Stienen's avatar
Jonas Stienen committed
294
295
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
296
297
		return m_pProtocol->ClientGetSignalSourceBufferPlaybackState( sSignalSourceID );
	};
Jonas Stienen's avatar
Jonas Stienen committed
298

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
299
300
	inline void SetSignalSourceBufferPlaybackAction( const std::string& sSignalSourceID, const int iPlayState )
	{
Jonas Stienen's avatar
Jonas Stienen committed
301
302
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
303
304
		m_pProtocol->ClientSetSignalSourceBufferPlaybackAction( sSignalSourceID, iPlayState );
	};
Jonas Stienen's avatar
Jonas Stienen committed
305

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
306
307
	inline void SetSignalSourceBufferPlaybackPosition( const std::string& sSignalSourceID, const double dPlaybackPosition )
	{
Jonas Stienen's avatar
Jonas Stienen committed
308
309
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
310
311
		m_pProtocol->ClientSetSignalSourceBufferPlaybackPosition( sSignalSourceID, dPlaybackPosition );
	};
Jonas Stienen's avatar
Jonas Stienen committed
312

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
313
	inline bool GetSignalSourceBufferLooping( const std::string& sSignalSourceID ) const
Jonas Stienen's avatar
Jonas Stienen committed
314
315
316
	{
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
317
		return m_pProtocol->ClientGetSignalSourceBufferLooping( sSignalSourceID );
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
318
	};
Jonas Stienen's avatar
Jonas Stienen committed
319

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
320
	inline void SetSignalSourceBufferLooping( const std::string& sSignalSourceID, const bool bLooping )
Jonas Stienen's avatar
Jonas Stienen committed
321
322
323
	{
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
324
325
		m_pProtocol->ClientSetSignalSourceBufferLooping( sSignalSourceID, bLooping );
	};
Jonas Stienen's avatar
Jonas Stienen committed
326

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
327
	inline void SetSignalSourceParameters( const std::string& sSignalSourceID, const CVAStruct& oParams )
Jonas Stienen's avatar
Jonas Stienen committed
328
329
330
331
	{
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
		m_pProtocol->ClientSetSignalSourceParameters( sSignalSourceID, oParams );
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
332
	};
Jonas Stienen's avatar
Jonas Stienen committed
333

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
334
	inline CVAStruct GetSignalSourceParameters( const std::string& sSignalSourceID, const CVAStruct& oParams ) const
Jonas Stienen's avatar
Jonas Stienen committed
335
336
337
338
	{
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
		return m_pProtocol->ClientGetSignalSourceParameters( sSignalSourceID, oParams );
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
339
	};
Jonas Stienen's avatar
Jonas Stienen committed
340

341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
	inline int AddSignalSourceSequencerSample( const std::string& sSignalSourceID, const CVAStruct& oArgs )
	{
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
		return m_pProtocol->ClientAddSignalSourceSequencerSample( sSignalSourceID, oArgs );
	};

	inline int AddSignalSourceSequencerPlayback( const std::string& sSignalSourceID, const int iSoundID, const int iFlags, const double dTimeCode )
	{
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
		return m_pProtocol->ClientAddSignalSourceSequencerPlayback( sSignalSourceID, iSoundID, iFlags, dTimeCode );
	};

	inline void RemoveSignalSourceSequencerSample( const std::string& sSignalSourceID, const int iSoundID )
	{
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
		m_pProtocol->ClientRemoveSignalSourceSequencerSample( sSignalSourceID, iSoundID );
	};

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
362

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
363
	inline bool GetUpdateLocked() const
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
364
	{
Jonas Stienen's avatar
Jonas Stienen committed
365
366
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
367
368
		return m_pProtocol->ClientGetUpdateLocked();
	};
Jonas Stienen's avatar
Jonas Stienen committed
369

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
370
371
	inline void LockUpdate()
	{
Jonas Stienen's avatar
Jonas Stienen committed
372
373
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
374
		m_pProtocol->ClientLockUpdate();
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
375
	};
Jonas Stienen's avatar
Jonas Stienen committed
376

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
377
378
	inline int UnlockUpdate()
	{
Jonas Stienen's avatar
Jonas Stienen committed
379
380
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
381
382
		return m_pProtocol->ClientUnlockUpdate();
	};
Jonas Stienen's avatar
Jonas Stienen committed
383
384


Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
385
386
	inline void GetSoundSourceIDs( std::vector< int >& vSoundSourceIDs )
	{
Jonas Stienen's avatar
Jonas Stienen committed
387
388
389
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
		return m_pProtocol->ClientGetSoundSourceIDs( vSoundSourceIDs );
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
390
	};
Jonas Stienen's avatar
Jonas Stienen committed
391

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
392
393
	inline int CreateSoundSource( const std::string& sName = "" )
	{
394
395
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
396
397
		return m_pProtocol->ClientCreateSoundSource( sName );
	};
Jonas Stienen's avatar
Jonas Stienen committed
398

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
399
	inline int CreateSoundSourceExplicitRenderer( const std::string& sRendererID, const std::string& sName = "" )
Jonas Stienen's avatar
Jonas Stienen committed
400
	{
401
402
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
403
404
		return m_pProtocol->ClientCreateSoundSourceExplicitRenderer( sRendererID, sName );
	};
Jonas Stienen's avatar
Jonas Stienen committed
405

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
406
407
	inline int DeleteSoundSource( const int iID )
	{
Jonas Stienen's avatar
Jonas Stienen committed
408
409
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
410
411
		return m_pProtocol->ClientDeleteSoundSource( iID );
	};
Jonas Stienen's avatar
Jonas Stienen committed
412

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
413
	inline void SetSoundSourceEnabled( const int iSoundSourceID, const bool bEnabled = true )
Jonas Stienen's avatar
Jonas Stienen committed
414
415
416
417
	{
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
		return m_pProtocol->ClientSetSoundSourceEnabled( iSoundSourceID, bEnabled );
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
418
	};
Jonas Stienen's avatar
Jonas Stienen committed
419

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
420
	inline bool GetSoundSourceEnabled( const int iSoundSourceID ) const
Jonas Stienen's avatar
Jonas Stienen committed
421
422
423
424
	{
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
		return m_pProtocol->ClientGetSoundSourceEnabled( iSoundSourceID );
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
425
426
427
428
429
430
431
432
	};

	inline CVASoundSourceInfo GetSoundSourceInfo( const int iSoundSourceID ) const
	{
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
		return m_pProtocol->ClientGetSoundSourceInfo( iSoundSourceID );
	};
Jonas Stienen's avatar
Jonas Stienen committed
433

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
434
435
	inline std::string GetSoundSourceName( const int iSoundSourceID ) const
	{
Jonas Stienen's avatar
Jonas Stienen committed
436
437
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
438
		return m_pProtocol->ClientGetSoundSourceName( iSoundSourceID );
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
439
	};
Jonas Stienen's avatar
Jonas Stienen committed
440

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
441
442
	inline void SetSoundSourceName( const int iSoundSourceID, const std::string& sName )
	{
Jonas Stienen's avatar
Jonas Stienen committed
443
444
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
445
		m_pProtocol->ClientSetSoundSourceName( iSoundSourceID, sName );
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
446
	};
Jonas Stienen's avatar
Jonas Stienen committed
447

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
448
449
	inline std::string GetSoundSourceSignalSource( const int iSoundSourceID ) const
	{
Jonas Stienen's avatar
Jonas Stienen committed
450
451
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
452
		return m_pProtocol->ClientGetSoundSourceSignalSource( iSoundSourceID );
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
453
	};
Jonas Stienen's avatar
Jonas Stienen committed
454

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
455
456
	inline void SetSoundSourceSignalSource( const int iSoundSourceID, const std::string& sSignalSourceID )
	{
Jonas Stienen's avatar
Jonas Stienen committed
457
458
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
459
		m_pProtocol->ClientSetSoundSourceSignalSource( iSoundSourceID, sSignalSourceID );
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
460
	};
Jonas Stienen's avatar
Jonas Stienen committed
461

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
462
463
	inline int GetSoundSourceAuralizationMode( const int iSoundSourceID ) const
	{
Jonas Stienen's avatar
Jonas Stienen committed
464
465
466
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
		return m_pProtocol->ClientGetSoundSourceAuralizationMode( iSoundSourceID );
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
467
	};
Jonas Stienen's avatar
Jonas Stienen committed
468

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
469
470
	inline void SetSoundSourceAuralizationMode( const int iSoundSourceID, const int iAuralizationMode )
	{
Jonas Stienen's avatar
Jonas Stienen committed
471
472
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
473
		m_pProtocol->ClientSetSoundSourceAuralizationMode( iSoundSourceID, iAuralizationMode );
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
474
	};
Jonas Stienen's avatar
Jonas Stienen committed
475

476
	inline CVAStruct GetSoundSourceParameters( const int iID, const CVAStruct& oArgs ) const
Jonas Stienen's avatar
Jonas Stienen committed
477
478
479
480
	{
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
		return m_pProtocol->ClientGetSoundSourceParameters( iID, oArgs );
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
481
	};
Jonas Stienen's avatar
Jonas Stienen committed
482

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
483
	inline void SetSoundSourceParameters( const int iID, const CVAStruct& oParams )
Jonas Stienen's avatar
Jonas Stienen committed
484
485
486
487
	{
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
		m_pProtocol->ClientSetSoundSourceParameters( iID, oParams );
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
488
	};
Jonas Stienen's avatar
Jonas Stienen committed
489

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
490
491
	inline int GetSoundSourceDirectivity( const int iSoundSourceID ) const
	{
Jonas Stienen's avatar
Jonas Stienen committed
492
493
494
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
		return m_pProtocol->ClientGetSoundSourceDirectivity( iSoundSourceID );
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
495
	};
Jonas Stienen's avatar
Jonas Stienen committed
496

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
497
498
	inline void SetSoundSourceDirectivity( const int iSoundSourceID, const int iDirectivityID )
	{
Jonas Stienen's avatar
Jonas Stienen committed
499
500
501
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
		return m_pProtocol->ClientSetSoundSourceDirectivity( iSoundSourceID, iDirectivityID );
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
502
	};
Jonas Stienen's avatar
Jonas Stienen committed
503

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
504
505
	inline double GetSoundSourceSoundPower( const int iSoundSourceID ) const
	{
Jonas Stienen's avatar
Jonas Stienen committed
506
507
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
508
		return m_pProtocol->ClientGetSoundSourceSoundPower( iSoundSourceID );
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
509
	};
Jonas Stienen's avatar
Jonas Stienen committed
510

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
511
512
	inline void SetSoundSourceSoundPower( const int iSoundSourceID, const double dPower )
	{
Jonas Stienen's avatar
Jonas Stienen committed
513
514
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
515
516
		m_pProtocol->ClientSetSoundSourceSoundPower( iSoundSourceID, dPower );
	};
Jonas Stienen's avatar
Jonas Stienen committed
517

518
519
	inline bool GetSoundSourceMuted( const int iSoundSourceID ) const
	{
Jonas Stienen's avatar
Jonas Stienen committed
520
521
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
522
		return m_pProtocol->ClientGetSoundSourceMuted( iSoundSourceID );
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
523
	};
Jonas Stienen's avatar
Jonas Stienen committed
524

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
525
526
	inline void SetSoundSourceMuted( const int iSoundSourceID, const bool bMuted = true )
	{
Jonas Stienen's avatar
Jonas Stienen committed
527
528
529
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
		m_pProtocol->ClientSetSoundSourceMuted( iSoundSourceID, bMuted );
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
530
	};
Jonas Stienen's avatar
Jonas Stienen committed
531

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
532
533
	inline void GetSoundSourcePose( const int iID, VAVec3& v3Pos, VAQuat& qOrient ) const
	{
Jonas Stienen's avatar
Jonas Stienen committed
534
535
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
536
537
		m_pProtocol->ClientGetSoundSourcePose( iID, v3Pos, qOrient );
	};
Jonas Stienen's avatar
Jonas Stienen committed
538

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
539
540
	inline void SetSoundSourcePose( const int iID, const VAVec3& v3Pos, const VAQuat& qOrient )
	{
Jonas Stienen's avatar
Jonas Stienen committed
541
542
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
543
544
		m_pProtocol->ClientSetSoundSourcePose( iID, v3Pos, qOrient );
	};
Jonas Stienen's avatar
Jonas Stienen committed
545

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
546
547
	inline void SetSoundSourcePosition( const int iID, const VAVec3& v3Pos )
	{
Jonas Stienen's avatar
Jonas Stienen committed
548
549
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
550
551
		m_pProtocol->ClientSetSoundSourcePosition( iID, v3Pos );
	};
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
552

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
553
554
	inline void SetSoundSourceOrientation( const int iID, const VAQuat& qOrient )
	{
Jonas Stienen's avatar
Jonas Stienen committed
555
556
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
557
558
		m_pProtocol->ClientSetSoundSourceOrientation( iID, qOrient );
	};
Jonas Stienen's avatar
Jonas Stienen committed
559

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
560
561
	inline void SetSoundSourceOrientationVU( const int iID, const VAVec3& v3View, const VAVec3& v3Up )
	{
Jonas Stienen's avatar
Jonas Stienen committed
562
563
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
564
565
		m_pProtocol->ClientSetSoundSourceOrientationVU( iID, v3View, v3Up );
	};
Jonas Stienen's avatar
Jonas Stienen committed
566

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
567
568
	inline VAVec3 GetSoundSourcePosition( const int iID ) const
	{
Jonas Stienen's avatar
Jonas Stienen committed
569
570
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
571
572
		return m_pProtocol->ClientGetSoundSourcePosition( iID );
	};
Jonas Stienen's avatar
Jonas Stienen committed
573

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
574
575
	inline VAQuat GetSoundSourceOrientation( const int iSoundSourceID ) const
	{
Jonas Stienen's avatar
Jonas Stienen committed
576
577
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
578
579
		return m_pProtocol->ClientGetSoundSourceOrientation( iSoundSourceID );
	};
Jonas Stienen's avatar
Jonas Stienen committed
580

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
581
582
	inline void GetSoundSourceOrientationVU( const int iSoundSourceID, VAVec3& v3View, VAVec3& v3Up ) const
	{
Jonas Stienen's avatar
Jonas Stienen committed
583
584
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
585
586
		m_pProtocol->ClientGetSoundSourceOrientationVU( iSoundSourceID, v3View, v3Up );
	};
Jonas Stienen's avatar
Jonas Stienen committed
587

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
588

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
589
590
	inline int GetSoundSourceGeometryMesh( const int iID ) const
	{
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
591
592
593
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
		return m_pProtocol->ClientGetSoundSourceGeometryMesh( iID );
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
594
	};
Jonas Stienen's avatar
Jonas Stienen committed
595

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
596
597
	inline void SetSoundSourceGeometryMesh( const int iSoundSourceID, const int iGeometryMeshID )
	{
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
598
599
600
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
		m_pProtocol->ClientSetSoundSourceGeometryMesh( iSoundSourceID, iGeometryMeshID );
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
601
	};
Jonas Stienen's avatar
Jonas Stienen committed
602
603


Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
604
605
	inline void GetSoundReceiverIDs( std::vector< int >& vSoundReceiverIDs ) const
	{
Jonas Stienen's avatar
Jonas Stienen committed
606
607
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
608
609
		m_pProtocol->ClientGetSoundReceiverIDs( vSoundReceiverIDs );
	};
Jonas Stienen's avatar
Jonas Stienen committed
610

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
611
612
	inline int CreateSoundReceiver( const std::string& sName = "" )
	{
613
614
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
615
616
		return m_pProtocol->ClientCreateSoundReceiver( sName );
	};
Jonas Stienen's avatar
Jonas Stienen committed
617

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
618
	inline int CreateSoundReceiverExplicitRenderer( const std::string& sRendererID, const std::string& sName )
Jonas Stienen's avatar
Jonas Stienen committed
619
620
621
	{
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
622
623
		return m_pProtocol->ClientCreateSoundReceiverExplicitRenderer( sRendererID, sName );
	};
Jonas Stienen's avatar
Jonas Stienen committed
624

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
625
	inline void SetActiveSoundReceiverExplicitRenderer( const int iSoundReceiverID, const std::string& sRendererID )
Jonas Stienen's avatar
Jonas Stienen committed
626
627
628
	{
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
629
		return m_pProtocol->ClientSetActiveSoundReceiverExplicitRenderer( iSoundReceiverID, sRendererID );
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
630
	};
Jonas Stienen's avatar
Jonas Stienen committed
631

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
632
	inline int GetActiveSoundReceiverExplicitRenderer( const std::string& sRendererID ) const
Jonas Stienen's avatar
Jonas Stienen committed
633
634
635
	{
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
636
		return m_pProtocol->ClientGetActiveSoundReceiverExplicitRenderer( sRendererID );
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
637
	};
Jonas Stienen's avatar
Jonas Stienen committed
638

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
639
640
	inline int DeleteSoundReceiver( const int iSoundReceiverID )
	{
Jonas Stienen's avatar
Jonas Stienen committed
641
642
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
643
644
		return m_pProtocol->ClientDeleteSoundReceiver( iSoundReceiverID );
	};
Jonas Stienen's avatar
Jonas Stienen committed
645

646
647
648
649
650
651
652
	inline CVASoundReceiverInfo GetSoundReceiverInfo( const int iID ) const
	{
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
		return m_pProtocol->ClientGetSoundReceiverInfo( iID );
	};

653
	inline void SetSoundReceiverEnabled( const int iSoundReceiverID, const bool bEnabled = true )
Jonas Stienen's avatar
Jonas Stienen committed
654
655
656
	{
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
657
		return m_pProtocol->ClientSetSoundReceiverEnabled( iSoundReceiverID, bEnabled );
658
	};
Jonas Stienen's avatar
Jonas Stienen committed
659

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
660
	inline bool GetSoundReceiverEnabled( const int iSoundReceiverID ) const
Jonas Stienen's avatar
Jonas Stienen committed
661
662
663
	{
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
664
665
		return m_pProtocol->ClientGetSoundReceiverEnabled( iSoundReceiverID );
	};
Jonas Stienen's avatar
Jonas Stienen committed
666

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
667
668
	inline std::string GetSoundReceiverName( const int iSoundReceiverID ) const
	{
Jonas Stienen's avatar
Jonas Stienen committed
669
670
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
671
		return m_pProtocol->ClientGetSoundReceiverName( iSoundReceiverID );
672
	};
Jonas Stienen's avatar
Jonas Stienen committed
673

674
675
	inline void SetSoundReceiverName( const int iSoundReceiverID, const std::string& sName )
	{
Jonas Stienen's avatar
Jonas Stienen committed
676
677
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
678
		m_pProtocol->ClientSetSoundReceiverName( iSoundReceiverID, sName );
679
	};
Jonas Stienen's avatar
Jonas Stienen committed
680

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
681
682
	inline int GetSoundReceiverAuralizationMode( const int iSoundReceiverID ) const
	{
Jonas Stienen's avatar
Jonas Stienen committed
683
684
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
685
		return m_pProtocol->ClientGetSoundReceiverAuralizationMode( iSoundReceiverID );
Jonas Stienen's avatar
Jonas Stienen committed
686
687
	}

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
688
689
	inline void SetSoundReceiverAuralizationMode( const int iSoundReceiverID, const int iAuralizationMode )
	{
Jonas Stienen's avatar
Jonas Stienen committed
690
691
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
692
693
		m_pProtocol->ClientSetSoundReceiverAuralizationMode( iSoundReceiverID, iAuralizationMode );
	};
Jonas Stienen's avatar
Jonas Stienen committed
694

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
695
	inline CVAStruct GetSoundReceiverParameters( const int iID, const CVAStruct& oArgs ) const
Jonas Stienen's avatar
Jonas Stienen committed
696
697
698
	{
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
699
700
		return m_pProtocol->ClientGetSoundReceiverParameters( iID, oArgs );
	};
Jonas Stienen's avatar
Jonas Stienen committed
701

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
702
	inline void SetSoundReceiverParameters( const int iID, const CVAStruct& oParams )
Jonas Stienen's avatar
Jonas Stienen committed
703
704
705
	{
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
706
707
		m_pProtocol->ClientSetSoundReceiverParameters( iID, oParams );
	};
Jonas Stienen's avatar
Jonas Stienen committed
708

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
709
710
	inline int GetSoundReceiverDirectivity( const int iSoundReceiverID ) const
	{
Jonas Stienen's avatar
Jonas Stienen committed
711
712
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
713
714
		return m_pProtocol->ClientGetSoundReceiverDirectivity( iSoundReceiverID );
	};
Jonas Stienen's avatar
Jonas Stienen committed
715

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
716
717
	inline void SetSoundReceiverDirectivity( const int iSoundReceiverID, const int iDirectivityID )
	{
Jonas Stienen's avatar
Jonas Stienen committed
718
719
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
720
721
		m_pProtocol->ClientSetSoundReceiverDirectivity( iSoundReceiverID, iDirectivityID );
	};
Jonas Stienen's avatar
Jonas Stienen committed
722

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
723
724
	inline void GetSoundReceiverPose( const int iID, VAVec3& v3Pos, VAQuat& qOrient ) const
	{
Jonas Stienen's avatar
Jonas Stienen committed
725
726
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
727
728
		m_pProtocol->ClientGetSoundReceiverPose( iID, v3Pos, qOrient );
	};
Jonas Stienen's avatar
Jonas Stienen committed
729

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
730
731
	inline void SetSoundReceiverPose( const int iID, const VAVec3& v3Pos, const VAQuat& qOrient )
	{
Jonas Stienen's avatar
Jonas Stienen committed
732
733
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
734
735
		m_pProtocol->ClientSetSoundReceiverPose( iID, v3Pos, qOrient );
	};
Jonas Stienen's avatar
Jonas Stienen committed
736

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
737
738
	inline VAVec3 GetSoundReceiverPosition( const int iID ) const
	{
Jonas Stienen's avatar
Jonas Stienen committed
739
740
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
741
742
		return m_pProtocol->ClientGetSoundReceiverPosition( iID );
	};
Jonas Stienen's avatar
Jonas Stienen committed
743

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
744
745
	inline void SetSoundReceiverPosition( const int iID, const VAVec3& v3Pos )
	{
Jonas Stienen's avatar
Jonas Stienen committed
746
747
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
748
749
		m_pProtocol->ClientSetSoundReceiverPosition( iID, v3Pos );
	};
Jonas Stienen's avatar
Jonas Stienen committed
750

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
751
752
	inline VAQuat GetSoundReceiverOrientation( const int iSoundReceiverID ) const
	{
Jonas Stienen's avatar
Jonas Stienen committed
753
754
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
755
756
		return m_pProtocol->ClientGetSoundReceiverOrientation( iSoundReceiverID );
	};
Jonas Stienen's avatar
Jonas Stienen committed
757

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
758
759
	inline void SetSoundReceiverOrientation( const int iID, const VAQuat& qOrient )
	{
Jonas Stienen's avatar
Jonas Stienen committed
760
761
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
762
763
		m_pProtocol->ClientSetSoundReceiverOrientation( iID, qOrient );
	};
Jonas Stienen's avatar
Jonas Stienen committed
764

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
765
766
767

	inline void GetSoundReceiverOrientationVU( const int iSoundReceiverID, VAVec3& v3View, VAVec3& v3Up ) const
	{
Jonas Stienen's avatar
Jonas Stienen committed
768
769
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
770
771
		m_pProtocol->ClientGetSoundReceiverOrientationVU( iSoundReceiverID, v3View, v3Up );
	};
Jonas Stienen's avatar
Jonas Stienen committed
772

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
773
774
	inline void SetSoundReceiverOrientationVU( const int iID, const VAVec3& v3View, const VAVec3& v3Up )
	{
Jonas Stienen's avatar
Jonas Stienen committed
775
		VA_REQUIRE_CONNECTED;
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
776
777
778
		VA_MUTAL_EXCLUDE;
		m_pProtocol->ClientSetSoundReceiverOrientationVU( iID, v3View, v3Up );
	};
Jonas Stienen's avatar
Jonas Stienen committed
779

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
780
781
	inline VAQuat GetSoundReceiverHeadAboveTorsoOrientation( const int iID ) const
	{
782
783
784
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
		return m_pProtocol->ClientGetSoundReceiverHeadAboveTorsoOrientation( iID );
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
785
	};
Jonas Stienen's avatar
Jonas Stienen committed
786

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
787
788
	inline void SetSoundReceiverHeadAboveTorsoOrientation( const int iID, const VAQuat& qOrient )
	{
789
790
791
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
		m_pProtocol->ClientSetSoundReceiverHeadAboveTorsoOrientation( iID, qOrient );
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
792
	};
Jonas Stienen's avatar
Jonas Stienen committed
793

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
794
795
	inline int GetSoundReceiverGeometryMesh( const int iID ) const
	{
796
797
798
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
		return m_pProtocol->ClientGetSoundReceiverGeometryMesh( iID );
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
799
	};
Jonas Stienen's avatar
Jonas Stienen committed
800

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
801
802
	inline void SetSoundReceiverGeometryMesh( const int iSoundReceiverID, const int iGeometryMeshID )
	{
803
804
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
805
		m_pProtocol->ClientSetSoundReceiverGeometryMesh( iSoundReceiverID, iGeometryMeshID );
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
806
	};
Jonas Stienen's avatar
Jonas Stienen committed
807

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
808
809
	inline void GetSoundReceiverRealWorldPose( const int iID, VAVec3& v3Pos, VAQuat& qOrient ) const
	{
810
811
812
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
		m_pProtocol->ClientGetSoundReceiverRealWorldPose( iID, v3Pos, qOrient );
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
813
	};
Jonas Stienen's avatar
Jonas Stienen committed
814

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
815
816
	inline void SetSoundReceiverRealWorldPose( const int iID, const VAVec3& v3Pos, const VAQuat& qOrient )
	{
817
818
819
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
		m_pProtocol->ClientSetSoundReceiverRealWorldPose( iID, v3Pos, qOrient );
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
820
	};
Jonas Stienen's avatar
Jonas Stienen committed
821

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
822
823
	inline VAQuat GetSoundReceiverRealWorldHeadAboveTorsoOrientation( const int iID ) const
	{
824
825
826
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
		return m_pProtocol->ClientGetSoundReceiverRealWorldHeadAboveTorsoOrientation( iID );
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
827
	};
Jonas Stienen's avatar
Jonas Stienen committed
828

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
829
830
	inline void SetSoundReceiverRealWorldHeadAboveTorsoOrientation( const int iID, const VAQuat& qOrient )
	{
831
832
833
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
		m_pProtocol->ClientSetSoundReceiverRealWorldHeadAboveTorsoOrientation( iID, qOrient );
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
834
835
836
837
	};

	inline void GetSoundReceiverRealWorldPositionOrientationVU( const int iID, VAVec3& v3Pos, VAVec3& v3View, VAVec3& v3Up ) const
	{
838
839
840
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
		m_pProtocol->ClientGetSoundReceiverRealWorldPositionOrientationVU( iID, v3Pos, v3View, v3Up );
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
841
842
843
844
	};

	inline void SetSoundReceiverRealWorldPositionOrientationVU( const int iID, const VAVec3& v3Pos, const VAVec3& v3View, const VAVec3& v3Up )
	{
845
846
847
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
		m_pProtocol->ClientSetSoundReceiverRealWorldPositionOrientationVU( iID, v3Pos, v3View, v3Up );
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
848
	};
849

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
850
851
852

	inline void SetHomogeneousMediumSoundSpeed( const double dSoundSpeed )
	{
853
854
855
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
		m_pProtocol->ClientSetHomogeneousMediumSoundSpeed( dSoundSpeed );
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
856
857
858
859
	};

	inline double GetHomogeneousMediumSoundSpeed() const
	{
860
861
862
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
		return m_pProtocol->ClientGetHomogeneousMediumSoundSpeed();
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
863
864
865
866
	};

	inline void SetHomogeneousMediumTemperature( const double dDegreesCentigrade )
	{
867
868
869
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
		m_pProtocol->ClientSetHomogeneousMediumTemperature( dDegreesCentigrade );
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
870
871
872
873
	};

	inline double GetHomogeneousMediumTemperature() const
	{
874
875
876
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
		return m_pProtocol->ClientGetHomogeneousMediumTemperature();
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
877
878
879
880
	};

	inline void SetHomogeneousMediumStaticPressure( const double dPressurePascal )
	{
881
882
883
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
		m_pProtocol->ClientSetHomogeneousMediumStaticPressure( dPressurePascal );
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
884
885
886
887
	};

	inline double GetHomogeneousMediumStaticPressure() const
	{
888
889
890
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
		return m_pProtocol->ClientGetHomogeneousMediumStaticPressure();
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
891
	};
Jonas Stienen's avatar
Jonas Stienen committed
892

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
893
894
	inline void SetHomogeneousMediumRelativeHumidity( const double dRelativeHumidityPercent )
	{
895
896
897
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
		m_pProtocol->ClientSetHomogeneousMediumRelativeHumidity( dRelativeHumidityPercent );
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
898
899
900
901
	};

	inline double GetHomogeneousMediumRelativeHumidity()
	{
902
903
904
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
		return m_pProtocol->ClientGetHomogeneousMediumRelativeHumidity();
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
905
	};
Jonas Stienen's avatar
Jonas Stienen committed
906

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
907
908
	inline void SetHomogeneousMediumShiftSpeed( const VAVec3& v3TranslationSpeed )
	{
909
910
911
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
		m_pProtocol->ClientSetHomogeneousMediumShiftSpeed( v3TranslationSpeed );
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
912
913
914
915
	};

	inline VAVec3 GetHomogeneousMediumShiftSpeed() const
	{
916
917
918
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
		return m_pProtocol->ClientGetHomogeneousMediumShiftSpeed();
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
919
920
921
922
	};

	inline void SetHomogeneousMediumParameters( const CVAStruct& oParams )
	{
923
924
925
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
		m_pProtocol->ClientSetHomogeneousMediumParameters( oParams );
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
926
927
	};

928
	inline CVAStruct GetHomogeneousMediumParameters( const CVAStruct& oArgs )
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
929
	{
930
931
932
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
		return m_pProtocol->ClientGetHomogeneousMediumParameters( oArgs );
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
933
	};
934

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
935
936
937

	inline std::string CreateScene( const CVAStruct& oParams, const std::string& sName = "" )
	{
Jonas Stienen's avatar
Jonas Stienen committed
938
939
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
940
941
942
943
944
		return m_pProtocol->ClientCreateScene( oParams, sName );
	};

	inline void GetSceneIDs( std::vector< std::string >& vsIDs ) const
	{
945
946
947
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
		m_pProtocol->ClientGetSceneIDs( vsIDs );
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
948
949
950
951
	};

	inline void SetSceneName( const std::string& sID, const std::string& sName )
	{