VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtSoundModel.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2019 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvAudio/vrvAudio.h>
13 #include <vrvCore/DtUniqueID.h>
14 #include <makAudio/abstractAudio.h>
15 #include <matrix/vlVector.h>
16 
17 namespace makAudio
18 {
19  class DtSound;
20 }
21 
22 namespace makVrv
23 {
24  class DtDe;
25 
30  {
31  public:
32 
34  DtSoundModel(DtDe& de, DtUniqueID id);
35 
37  virtual ~DtSoundModel();
38 
40  virtual void setModelDefinition(const std::string& modelDef);
41 
48  void realize(const std::string& filename, float decibels, bool is3d,
49  bool isLooping, makAudio::DtAbstractAudio::Priority priority);
50 
53  void play();
54 
57  void pause();
58 
61  void stop();
62 
65  void setRelativePosition(bool relative);
66 
69  void setPosition(const DtVector& pos);
70 
73  void setVelocity(const DtVector& vel);
74 
76  void setDecibel(float decibel);
77 
79  float decibel();
80 
82  float maxFalloffDistance();
83 
85  void setIs3d(bool is3d);
86 
88  bool shouldPlaySound();
89 
93  void setIsInteractionSound(bool isInteractionSound);
94 
98  bool isInteractionSound();
99 
102  void setAttachedEntityEngineRunning(bool running);
103 
106  bool attachedEntityEngineRunning();
107 
108  private:
110  DtSoundModel();
112  DtSoundModel(const DtSoundModel&);
114  DtSoundModel& operator=(const DtSoundModel&);
115 
116  protected:
119  makAudio::DtSound* mySound;
120  float myDecibel;
121  bool myIs3d;
126  };
127 }
bool myTransient
Definition: DtSoundModel.h:122
DtSoundModel is a distributed object used to configure, start, and stop a sound.
Definition: DtSoundModel.h:29
float myDecibel
Definition: DtSoundModel.h:120
Contains the DLL export macro for vrvAudio classes.
DtVector myPosition
Definition: DtSoundModel.h:124
DtDe & myDe
Definition: DtSoundModel.h:117
bool myAttachedEntityEngineRunning
Definition: DtSoundModel.h:125
DtUniqueID myId
Definition: DtSoundModel.h:118
bool myIsInteractionSound
Definition: DtSoundModel.h:123
unsigned long long DtUniqueID
Definition: DtUniqueID.h:19
Contains makVrv::DtUniqueID type.
#define DT_DLL_VRVAUDIO
Definition: vrvAudio.h:20
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
bool myIs3d
Definition: DtSoundModel.h:121
makAudio::DtSound * mySound
Definition: DtSoundModel.h:119

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)