VANetClientImpl.cpp 48.2 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->IsConnected() == 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

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

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
342
	inline bool GetUpdateLocked() const
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
343
	{
Jonas Stienen's avatar
Jonas Stienen committed
344
345
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
346
347
		return m_pProtocol->ClientGetUpdateLocked();
	};
Jonas Stienen's avatar
Jonas Stienen committed
348

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
349
350
	inline void LockUpdate()
	{
Jonas Stienen's avatar
Jonas Stienen committed
351
352
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
353
		m_pProtocol->ClientLockUpdate();
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
354
	};
Jonas Stienen's avatar
Jonas Stienen committed
355

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
356
357
	inline int UnlockUpdate()
	{
Jonas Stienen's avatar
Jonas Stienen committed
358
359
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
360
361
		return m_pProtocol->ClientUnlockUpdate();
	};
Jonas Stienen's avatar
Jonas Stienen committed
362
363


Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
364
365
	inline void GetSoundSourceIDs( std::vector< int >& vSoundSourceIDs )
	{
Jonas Stienen's avatar
Jonas Stienen committed
366
367
368
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
		return m_pProtocol->ClientGetSoundSourceIDs( vSoundSourceIDs );
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
369
	};
Jonas Stienen's avatar
Jonas Stienen committed
370

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
371
372
	inline int CreateSoundSource( const std::string& sName = "" )
	{
373
374
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
375
376
		return m_pProtocol->ClientCreateSoundSource( sName );
	};
Jonas Stienen's avatar
Jonas Stienen committed
377

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
378
	inline int CreateSoundSourceExplicitRenderer( const std::string& sRendererID, const std::string& sName = "" )
Jonas Stienen's avatar
Jonas Stienen committed
379
	{
380
381
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
382
383
		return m_pProtocol->ClientCreateSoundSourceExplicitRenderer( sRendererID, sName );
	};
Jonas Stienen's avatar
Jonas Stienen committed
384

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
385
386
	inline int DeleteSoundSource( const int iID )
	{
Jonas Stienen's avatar
Jonas Stienen committed
387
388
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
389
390
		return m_pProtocol->ClientDeleteSoundSource( iID );
	};
Jonas Stienen's avatar
Jonas Stienen committed
391

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
392
	inline void SetSoundSourceEnabled( const int iSoundSourceID, const bool bEnabled = true )
Jonas Stienen's avatar
Jonas Stienen committed
393
394
395
396
	{
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
		return m_pProtocol->ClientSetSoundSourceEnabled( iSoundSourceID, bEnabled );
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
397
	};
Jonas Stienen's avatar
Jonas Stienen committed
398

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
399
	inline bool GetSoundSourceEnabled( const int iSoundSourceID ) const
Jonas Stienen's avatar
Jonas Stienen committed
400
401
402
403
	{
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
		return m_pProtocol->ClientGetSoundSourceEnabled( iSoundSourceID );
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
404
405
406
407
408
409
410
411
	};

	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
412

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
413
414
	inline std::string GetSoundSourceName( const int iSoundSourceID ) const
	{
Jonas Stienen's avatar
Jonas Stienen committed
415
416
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
417
		return m_pProtocol->ClientGetSoundSourceName( iSoundSourceID );
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
421
	inline void SetSoundSourceName( const int iSoundSourceID, const std::string& sName )
	{
Jonas Stienen's avatar
Jonas Stienen committed
422
423
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
424
		m_pProtocol->ClientSetSoundSourceName( iSoundSourceID, sName );
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
425
	};
Jonas Stienen's avatar
Jonas Stienen committed
426

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
427
428
	inline std::string GetSoundSourceSignalSource( const int iSoundSourceID ) const
	{
Jonas Stienen's avatar
Jonas Stienen committed
429
430
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
431
		return m_pProtocol->ClientGetSoundSourceSignalSource( iSoundSourceID );
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
432
	};
Jonas Stienen's avatar
Jonas Stienen committed
433

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
434
435
	inline void SetSoundSourceSignalSource( const int iSoundSourceID, const std::string& sSignalSourceID )
	{
Jonas Stienen's avatar
Jonas Stienen committed
436
437
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
438
		m_pProtocol->ClientSetSoundSourceSignalSource( iSoundSourceID, sSignalSourceID );
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 int GetSoundSourceAuralizationMode( const int iSoundSourceID ) const
	{
Jonas Stienen's avatar
Jonas Stienen committed
443
444
445
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
		return m_pProtocol->ClientGetSoundSourceAuralizationMode( iSoundSourceID );
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 void SetSoundSourceAuralizationMode( const int iSoundSourceID, const int iAuralizationMode )
	{
Jonas Stienen's avatar
Jonas Stienen committed
450
451
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
452
		m_pProtocol->ClientSetSoundSourceAuralizationMode( iSoundSourceID, iAuralizationMode );
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
453
	};
Jonas Stienen's avatar
Jonas Stienen committed
454

455
	inline CVAStruct GetSoundSourceParameters( const int iID, const CVAStruct& oArgs ) const
Jonas Stienen's avatar
Jonas Stienen committed
456
457
458
459
	{
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
		return m_pProtocol->ClientGetSoundSourceParameters( iID, oArgs );
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
	inline void SetSoundSourceParameters( const int iID, const CVAStruct& oParams )
Jonas Stienen's avatar
Jonas Stienen committed
463
464
465
466
	{
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
		m_pProtocol->ClientSetSoundSourceParameters( iID, oParams );
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 int GetSoundSourceDirectivity( const int iSoundSourceID ) const
	{
Jonas Stienen's avatar
Jonas Stienen committed
471
472
473
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
		return m_pProtocol->ClientGetSoundSourceDirectivity( iSoundSourceID );
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
474
	};
Jonas Stienen's avatar
Jonas Stienen committed
475

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
476
477
	inline void SetSoundSourceDirectivity( const int iSoundSourceID, const int iDirectivityID )
	{
Jonas Stienen's avatar
Jonas Stienen committed
478
479
480
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
		return m_pProtocol->ClientSetSoundSourceDirectivity( iSoundSourceID, iDirectivityID );
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
484
	inline double GetSoundSourceSoundPower( const int iSoundSourceID ) const
	{
Jonas Stienen's avatar
Jonas Stienen committed
485
486
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
487
		return m_pProtocol->ClientGetSoundSourceSoundPower( iSoundSourceID );
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 void SetSoundSourceSoundPower( const int iSoundSourceID, const double dPower )
	{
Jonas Stienen's avatar
Jonas Stienen committed
492
493
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
494
495
		m_pProtocol->ClientSetSoundSourceSoundPower( iSoundSourceID, dPower );
	};
Jonas Stienen's avatar
Jonas Stienen committed
496

497
498
	inline bool GetSoundSourceMuted( const int iSoundSourceID ) const
	{
Jonas Stienen's avatar
Jonas Stienen committed
499
500
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
501
		return m_pProtocol->ClientGetSoundSourceMuted( iSoundSourceID );
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 void SetSoundSourceMuted( const int iSoundSourceID, const bool bMuted = true )
	{
Jonas Stienen's avatar
Jonas Stienen committed
506
507
508
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
		m_pProtocol->ClientSetSoundSourceMuted( iSoundSourceID, bMuted );
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 GetSoundSourcePose( const int iID, VAVec3& v3Pos, VAQuat& qOrient ) const
	{
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->ClientGetSoundSourcePose( iID, v3Pos, qOrient );
	};
Jonas Stienen's avatar
Jonas Stienen committed
517

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
518
519
	inline void SetSoundSourcePose( const int iID, const VAVec3& v3Pos, const VAQuat& qOrient )
	{
Jonas Stienen's avatar
Jonas Stienen committed
520
521
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
522
523
		m_pProtocol->ClientSetSoundSourcePose( iID, v3Pos, qOrient );
	};
Jonas Stienen's avatar
Jonas Stienen committed
524

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
525
526
	inline void SetSoundSourcePosition( const int iID, const VAVec3& v3Pos )
	{
Jonas Stienen's avatar
Jonas Stienen committed
527
528
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
529
530
		m_pProtocol->ClientSetSoundSourcePosition( iID, v3Pos );
	};
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
531

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
532
533
	inline void SetSoundSourceOrientation( const int iID, const VAQuat& qOrient )
	{
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->ClientSetSoundSourceOrientation( iID, qOrient );
	};
Jonas Stienen's avatar
Jonas Stienen committed
538

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
539
540
	inline void SetSoundSourceOrientationVU( const int iID, const VAVec3& v3View, const VAVec3& v3Up )
	{
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->ClientSetSoundSourceOrientationVU( iID, v3View, v3Up );
	};
Jonas Stienen's avatar
Jonas Stienen committed
545

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
546
547
	inline VAVec3 GetSoundSourcePosition( const int iID ) const
	{
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
		return m_pProtocol->ClientGetSoundSourcePosition( iID );
	};
Jonas Stienen's avatar
Jonas Stienen committed
552

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
553
554
	inline VAQuat GetSoundSourceOrientation( const int iSoundSourceID ) const
	{
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
		return m_pProtocol->ClientGetSoundSourceOrientation( iSoundSourceID );
	};
Jonas Stienen's avatar
Jonas Stienen committed
559

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
560
561
	inline void GetSoundSourceOrientationVU( const int iSoundSourceID, VAVec3& v3View, VAVec3& v3Up ) const
	{
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->ClientGetSoundSourceOrientationVU( iSoundSourceID, v3View, v3Up );
	};
Jonas Stienen's avatar
Jonas Stienen committed
566

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

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

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
575
576
	inline void SetSoundSourceGeometryMesh( const int iSoundSourceID, const int iGeometryMeshID )
	{
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
577
578
579
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
		m_pProtocol->ClientSetSoundSourceGeometryMesh( iSoundSourceID, iGeometryMeshID );
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
580
	};
Jonas Stienen's avatar
Jonas Stienen committed
581
582


Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
583
584
	inline void GetSoundReceiverIDs( std::vector< int >& vSoundReceiverIDs ) const
	{
Jonas Stienen's avatar
Jonas Stienen committed
585
586
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
587
588
		m_pProtocol->ClientGetSoundReceiverIDs( vSoundReceiverIDs );
	};
Jonas Stienen's avatar
Jonas Stienen committed
589

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
590
591
	inline int CreateSoundReceiver( const std::string& sName = "" )
	{
592
593
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
594
595
		return m_pProtocol->ClientCreateSoundReceiver( sName );
	};
Jonas Stienen's avatar
Jonas Stienen committed
596

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
597
	inline int CreateSoundReceiverExplicitRenderer( const std::string& sRendererID, const std::string& sName )
Jonas Stienen's avatar
Jonas Stienen committed
598
599
600
	{
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
601
602
		return m_pProtocol->ClientCreateSoundReceiverExplicitRenderer( sRendererID, sName );
	};
Jonas Stienen's avatar
Jonas Stienen committed
603

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
604
	inline void SetActiveListenerExplicitRenderer( const int iSoundReceiverID, const std::string& sRendererID )
Jonas Stienen's avatar
Jonas Stienen committed
605
606
607
	{
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
608
609
		return m_pProtocol->ClientSetActiveListenerExplicitRenderer( iSoundReceiverID, sRendererID );
	};
Jonas Stienen's avatar
Jonas Stienen committed
610

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

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
618
619
	inline int DeleteSoundReceiver( const int iSoundReceiverID )
	{
Jonas Stienen's avatar
Jonas Stienen committed
620
621
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
622
623
		return m_pProtocol->ClientDeleteSoundReceiver( iSoundReceiverID );
	};
Jonas Stienen's avatar
Jonas Stienen committed
624

625
	inline void SetSoundReceiverEnabled( const int iSoundReceiverID, const bool bEnabled = true )
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->ClientSetSoundReceiverEnabled( iSoundReceiverID, bEnabled );
630
	};
Jonas Stienen's avatar
Jonas Stienen committed
631

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
632
	inline bool GetSoundReceiverEnabled( const int iSoundReceiverID ) 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
637
		return m_pProtocol->ClientGetSoundReceiverEnabled( iSoundReceiverID );
	};
Jonas Stienen's avatar
Jonas Stienen committed
638

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
639
640
	inline std::string GetSoundReceiverName( const int iSoundReceiverID ) const
	{
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
		return m_pProtocol->ClientGetSoundReceiverName( iSoundReceiverID );
644
	};
Jonas Stienen's avatar
Jonas Stienen committed
645

646
647
	inline void SetSoundReceiverName( const int iSoundReceiverID, const std::string& sName )
	{
Jonas Stienen's avatar
Jonas Stienen committed
648
649
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
650
		m_pProtocol->ClientSetSoundReceiverName( iSoundReceiverID, sName );
651
	};
Jonas Stienen's avatar
Jonas Stienen committed
652

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
653
654
	inline int GetSoundReceiverAuralizationMode( const int iSoundReceiverID ) const
	{
Jonas Stienen's avatar
Jonas Stienen committed
655
656
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
657
		return m_pProtocol->ClientGetSoundReceiverAuralizationMode( iSoundReceiverID );
Jonas Stienen's avatar
Jonas Stienen committed
658
659
	}

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
660
661
	inline void SetSoundReceiverAuralizationMode( const int iSoundReceiverID, const int iAuralizationMode )
	{
Jonas Stienen's avatar
Jonas Stienen committed
662
663
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
664
665
		m_pProtocol->ClientSetSoundReceiverAuralizationMode( iSoundReceiverID, iAuralizationMode );
	};
Jonas Stienen's avatar
Jonas Stienen committed
666

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
667
	inline CVAStruct GetSoundReceiverParameters( const int iID, const CVAStruct& oArgs ) const
Jonas Stienen's avatar
Jonas Stienen committed
668
669
670
	{
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
671
672
		return m_pProtocol->ClientGetSoundReceiverParameters( iID, oArgs );
	};
Jonas Stienen's avatar
Jonas Stienen committed
673

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
674
	inline void SetSoundReceiverParameters( const int iID, const CVAStruct& oParams )
Jonas Stienen's avatar
Jonas Stienen committed
675
676
677
	{
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
678
679
		m_pProtocol->ClientSetSoundReceiverParameters( iID, oParams );
	};
Jonas Stienen's avatar
Jonas Stienen committed
680

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
681
682
	inline int GetSoundReceiverDirectivity( 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
686
		return m_pProtocol->ClientGetSoundReceiverDirectivity( iSoundReceiverID );
	};
Jonas Stienen's avatar
Jonas Stienen committed
687

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
688
689
	inline void SetSoundReceiverDirectivity( const int iSoundReceiverID, const int iDirectivityID )
	{
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->ClientSetSoundReceiverDirectivity( iSoundReceiverID, iDirectivityID );
	};
Jonas Stienen's avatar
Jonas Stienen committed
694

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
695
696
	inline void GetSoundReceiverPose( const int iID, VAVec3& v3Pos, VAQuat& qOrient ) const
	{
Jonas Stienen's avatar
Jonas Stienen committed
697
698
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
699
700
		m_pProtocol->ClientGetSoundReceiverPose( iID, v3Pos, qOrient );
	};
Jonas Stienen's avatar
Jonas Stienen committed
701

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
702
703
	inline void SetSoundReceiverPose( const int iID, const VAVec3& v3Pos, const VAQuat& qOrient )
	{
Jonas Stienen's avatar
Jonas Stienen committed
704
705
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
706
707
		m_pProtocol->ClientSetSoundReceiverPose( iID, v3Pos, qOrient );
	};
Jonas Stienen's avatar
Jonas Stienen committed
708

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
709
710
	inline VAVec3 GetSoundReceiverPosition( const int iID ) 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->ClientGetSoundReceiverPosition( iID );
	};
Jonas Stienen's avatar
Jonas Stienen committed
715

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
716
717
	inline void SetSoundReceiverPosition( const int iID, const VAVec3& v3Pos )
	{
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->ClientSetSoundReceiverPosition( iID, v3Pos );
	};
Jonas Stienen's avatar
Jonas Stienen committed
722

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
723
724
	inline VAQuat GetSoundReceiverOrientation( const int iSoundReceiverID ) 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
		return m_pProtocol->ClientGetSoundReceiverOrientation( iSoundReceiverID );
	};
Jonas Stienen's avatar
Jonas Stienen committed
729

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
730
731
	inline void SetSoundReceiverOrientation( const int iID, 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->ClientSetSoundReceiverOrientation( iID, qOrient );
	};
Jonas Stienen's avatar
Jonas Stienen committed
736

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
737
738
739

	inline void GetSoundReceiverOrientationVU( const int iSoundReceiverID, VAVec3& v3View, VAVec3& v3Up ) const
	{
Jonas Stienen's avatar
Jonas Stienen committed
740
741
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
742
743
		m_pProtocol->ClientGetSoundReceiverOrientationVU( iSoundReceiverID, v3View, v3Up );
	};
Jonas Stienen's avatar
Jonas Stienen committed
744

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
745
746
	inline void SetSoundReceiverOrientationVU( const int iID, const VAVec3& v3View, const VAVec3& v3Up )
	{
Jonas Stienen's avatar
Jonas Stienen committed
747
		VA_REQUIRE_CONNECTED;
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
748
749
750
		VA_MUTAL_EXCLUDE;
		m_pProtocol->ClientSetSoundReceiverOrientationVU( iID, v3View, v3Up );
	};
Jonas Stienen's avatar
Jonas Stienen committed
751

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
752
753
754
755
	inline VAQuat GetSoundReceiverHeadAboveTorsoOrientation( const int iID ) const
	{
		VA_EXCEPT_NOT_IMPLEMENTED;
	};
Jonas Stienen's avatar
Jonas Stienen committed
756

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
757
758
759
760
	inline void SetSoundReceiverHeadAboveTorsoOrientation( const int iID, const VAQuat& qOrient )
	{
		VA_EXCEPT_NOT_IMPLEMENTED;
	};
Jonas Stienen's avatar
Jonas Stienen committed
761

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
762
763
764
765
	inline int GetSoundReceiverGeometryMesh( const int iID ) const
	{
		VA_EXCEPT_NOT_IMPLEMENTED;
	};
Jonas Stienen's avatar
Jonas Stienen committed
766

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
767
768
769
770
	inline void SetSoundReceiverGeometryMesh( const int iSoundReceiverID, const int iGeometryMeshID )
	{
		VA_EXCEPT_NOT_IMPLEMENTED;
	};
Jonas Stienen's avatar
Jonas Stienen committed
771

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
772
773
774
775
	inline void GetSoundReceiverRealWorldPose( const int iID, VAVec3& v3Pos, VAQuat& qOrient ) const
	{
		VA_EXCEPT_NOT_IMPLEMENTED;
	};
Jonas Stienen's avatar
Jonas Stienen committed
776

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
777
778
779
780
	inline void SetSoundReceiverRealWorldPose( const int iID, const VAVec3& v3Pos, const VAQuat& qOrient )
	{
		VA_EXCEPT_NOT_IMPLEMENTED;
	};
Jonas Stienen's avatar
Jonas Stienen committed
781

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
782
783
784
785
	inline VAQuat GetSoundReceiverRealWorldHeadAboveTorsoOrientation( const int iID ) const
	{
		VA_EXCEPT_NOT_IMPLEMENTED;
	};
Jonas Stienen's avatar
Jonas Stienen committed
786

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
787
788
789
790
791
792
793
794
795
796
797
798
799
800
	inline void SetSoundReceiverRealWorldHeadAboveTorsoOrientation( const int iID, const VAQuat& qOrient )
	{
		VA_EXCEPT_NOT_IMPLEMENTED;
	};

	inline void GetSoundReceiverRealWorldPositionOrientationVU( const int iID, VAVec3& v3Pos, VAVec3& v3View, VAVec3& v3Up ) const
	{
		VA_EXCEPT_NOT_IMPLEMENTED;
	};

	inline void SetSoundReceiverRealWorldPositionOrientationVU( const int iID, const VAVec3& v3Pos, const VAVec3& v3View, const VAVec3& v3Up )
	{
		VA_EXCEPT_NOT_IMPLEMENTED;
	};
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
801
	
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831

	inline void SetHomogeneousMediumSoundSpeed( const double dSoundSpeed )
	{
		VA_EXCEPT_NOT_IMPLEMENTED;
	};

	inline double GetHomogeneousMediumSoundSpeed() const
	{
		VA_EXCEPT_NOT_IMPLEMENTED;
	};

	inline void SetHomogeneousMediumTemperature( const double dDegreesCentigrade )
	{
		VA_EXCEPT_NOT_IMPLEMENTED;
	};

	inline double GetHomogeneousMediumTemperature() const
	{
		VA_EXCEPT_NOT_IMPLEMENTED;
	};

	inline void SetHomogeneousMediumStaticPressure( const double dPressurePascal )
	{
		VA_EXCEPT_NOT_IMPLEMENTED;
	};

	inline double GetHomogeneousMediumStaticPressure() const
	{
		VA_EXCEPT_NOT_IMPLEMENTED;
	};
Jonas Stienen's avatar
Jonas Stienen committed
832

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
833
834
835
836
837
838
839
840
841
	inline void SetHomogeneousMediumRelativeHumidity( const double dRelativeHumidityPercent )
	{
		VA_EXCEPT_NOT_IMPLEMENTED;
	};

	inline double GetHomogeneousMediumRelativeHumidity()
	{
		VA_EXCEPT_NOT_IMPLEMENTED;
	};
Jonas Stienen's avatar
Jonas Stienen committed
842

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
	inline void SetHomogeneousMediumShiftSpeed( const VAVec3& v3TranslationSpeed )
	{
		VA_EXCEPT_NOT_IMPLEMENTED;
	};

	inline VAVec3 GetHomogeneousMediumShiftSpeed() const
	{
		VA_EXCEPT_NOT_IMPLEMENTED;
	};

	inline void SetHomogeneousMediumParameters( const CVAStruct& oParams )
	{
		VA_EXCEPT_NOT_IMPLEMENTED;
	};

	inline CVAStruct GetHomogeneousMediumParameters()
	{
		VA_EXCEPT_NOT_IMPLEMENTED;
	};
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
862
	
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
863
864
865

	inline std::string CreateScene( const CVAStruct& oParams, const std::string& sName = "" )
	{
Jonas Stienen's avatar
Jonas Stienen committed
866
867
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
868
869
870
871
872
873
874
875
876
877
878
879
		return m_pProtocol->ClientCreateScene( oParams, sName );
	};

	inline void GetSceneIDs( std::vector< std::string >& vsIDs ) const
	{
		VA_EXCEPT_NOT_IMPLEMENTED;
	};

	inline void SetSceneName( const std::string& sID, const std::string& sName )
	{
		VA_EXCEPT_NOT_IMPLEMENTED;
	};
Jonas Stienen's avatar
Jonas Stienen committed
880

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
881
882
	inline std::string GetSceneName( const std::string& sID ) const
	{
Jonas Stienen's avatar
Jonas Stienen committed
883
884
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
885
886
		return m_pProtocol->ClientGetSceneName( sID );
	};
Jonas Stienen's avatar
Jonas Stienen committed
887

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
888
889
	inline CVASceneInfo GetSceneInfo( const std::string& sID ) const
	{
Jonas Stienen's avatar
Jonas Stienen committed
890
891
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
892
893
894
895
896
897
898
		return m_pProtocol->ClientGetSceneInfo( sID );
	};

	inline void SetSceneEnabled( const std::string& sID, const bool bEnabled = true )
	{
		VA_EXCEPT_NOT_IMPLEMENTED;
	};
Jonas Stienen's avatar
Jonas Stienen committed
899

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
900
901
902
903
904
905
	inline bool GetSceneEnabled( const std::string& sID ) const
	{
		VA_EXCEPT_NOT_IMPLEMENTED;
	};

	inline void GetSoundPortalIDs( std::vector< int >& viIDs )
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
906
	{
Jonas Stienen's avatar
Jonas Stienen committed
907
908
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
909
		m_pProtocol->ClientGetSoundPortalIDs( viIDs );
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
910
	};
Jonas Stienen's avatar
Jonas Stienen committed
911

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
912
913
	inline std::string GetPortalName( const int iID ) const
	{
Jonas Stienen's avatar
Jonas Stienen committed
914
915
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
916
		return m_pProtocol->ClientGetSoundPortalName( iID );
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
917
	};
Jonas Stienen's avatar
Jonas Stienen committed
918

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
919
920
	inline void SetPortalName( const int iPortalID, const std::string& sName )
	{
Jonas Stienen's avatar
Jonas Stienen committed
921
922
923
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
		m_pProtocol->ClientSetPortalName( iPortalID, sName );
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
924
	};
Jonas Stienen's avatar
Jonas Stienen committed
925

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
926
927
	inline CVAStruct GetSoundPortalParameters( const int iPortalID ) const
	{
Jonas Stienen's avatar
Jonas Stienen committed
928
929
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
930
931
		return m_pProtocol->ClientGetSoundPortalParameters( iPortalID );
	};
Jonas Stienen's avatar
Jonas Stienen committed
932

Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
933
934
	inline void SetSoundPortalParameters( const int iPortalID, const CVAStruct& oParams )
	{
Jonas Stienen's avatar
Jonas Stienen committed
935
936
		VA_REQUIRE_CONNECTED;
		VA_MUTAL_EXCLUDE;
Dipl.-Ing. Jonas Stienen's avatar
Dipl.-Ing. Jonas Stienen committed
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
		m_pProtocol->ClientSetSoundPortalParameters( iPortalID, oParams );
	};

	//! Create a sound portal
	inline int CreateSoundPortal( const std::string& sName = "" )
	{
		VA_EXCEPT_NOT_IMPLEMENTED;
	};

	inline CVASoundPortalInfo GetSoundPortalInfo( const int iID ) const
	{
		VA_EXCEPT_NOT_IMPLEMENTED;
	};

	//! Returns the name of a portal
	inline std::string GetSoundPortalName( const int iID ) const
	{
		VA_EXCEPT_NOT_IMPLEMENTED;
	};

	inline void SetSoundPortalName( const int iID, const std::string& sName )
	{
		VA_EXCEPT_NOT_IMPLEMENTED;
	};

	inline void SetSoundPortalMaterial( const int iSoundPortalID, const int iMaterialID )
	{
		VA_EXCEPT_NOT_IMPLEMENTED;
	};

	inline int GetSoundPortalMaterial( const int iSoundPortalID ) const
	{
		VA_EXCEPT_NOT_IMPLEMENTED;
	};

	inline void SetSoundPortalNextPortal( const int iSoundPortalID, const int iNextSoundPortalID )
	{
		VA_EXCEPT_NOT_IMPLEMENTED;
	};

	inline int GetSoundPortalNextPortal( const int iSoundPortalID ) const
	{
		VA_EXCEPT_NOT_IMPLEMENTED;
	};

	inline void SetSoundPortalSoundReceiver( const int iSoundPortalID, const int iSoundReceiverID )
	{
		VA_EXCEPT_NOT_IMPLEMENTED;
	};

	inline int GetSoundPortalSoundReceiver( const int iSoundPortalID ) const
	{
		VA_EXCEPT_NOT_IMPLEMENTED;
	};

	inline void SetSoundPortalSoundSource( const int iSoundPortalID, const int iSoundSourceID )
	{
		VA_EXCEPT_NOT_IMPLEMENTED;
	};

	inline int GetSoundPortalSoundSource( const int iSoundPortalID ) const
	{
		VA_EXCEPT_NOT_IMPLEMENTED;
	};