VR-Forces 4.3 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DtVrlinkAudioController.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Copyright (c) 2012 MAK Technologies, Inc.
3  * All rights reserved.
4  *****************************************************************************/
5 
10 
11 #pragma once
12 
14 
15 #include <vrvCore/DtUniqueID.h>
16 
19 
21 
22 #include <matrix/vlTaitBryan.h>
23 #include <matrix/vlVector.h>
24 
25 
26 namespace makVrv
27 {
28 
29  class DtDe;
30  class DtEntitySoundMapRecord;
31  class DtExerciseSoundPlayer;
32 
33  namespace DT_PROTOCOL_NAMESPACE
34  {
35 
40  {
41  public:
42 
47 
49  virtual ~DtVrlinkAudioController();
50 
54  virtual bool open();
55 
59  virtual bool close();
60 
66  void updateListener( DtVector pos, DtVector vel, DtTaitBryan ang );
67 
68  protected:
69 
70  //@name Slot functions
72 
74  virtual void slot_Close();
75 
78  virtual void slot_AundionOn( bool val );
79 
82  virtual void slot_VolumeChanged( double val );
83 
86  virtual void slot_RangeChanged( double val );
87 
93  virtual void slot_RangeEnabled( bool val );
94 
96  virtual void slot_ClearMapData();
97 
99  virtual void slot_ReloadMapData();
100 
104  virtual void slot_MapEntitySound(
105  const DtEntitySoundMapRecord& sndRec, bool reload );
106 
110  virtual void slot_RemoveEntitySoundMap(
111  const DtEntitySoundMapRecord& sndRec, bool reload );
112 
116  virtual void slot_MapWeaponFireSound(
117  const DtEntitySoundMapRecord& sndRec, bool reload );
118 
122  virtual void slot_RemoveWeaponFireSoundMap(
123  const DtEntitySoundMapRecord& sndRec, bool reload );
124 
128  virtual void slot_MapDetonationSound(
129  const DtEntitySoundMapRecord& sndRec, bool reload );
130 
134  virtual void slot_RemoveDetonationSoundMap(
135  const DtEntitySoundMapRecord& sndRec, bool reload );
136 
138 
139  private:
140  // Helper function to create a new player and reload sound mappings.
141  virtual bool ReloadSoundPlayer();
142 
143  // Helper function to destroy the current sound player.
144  virtual void destroySoundPlayer();
145 
146  protected:
150  };
151 
152  }
153 }

Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)