VR-Forces 4.7 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtSoundObject.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2017 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
13 #include <vrvCore/DtUniqueID.h>
14 
15 #include <makAudio/abstractAudio.h>
16 
17 #include <matrix/vlVector.h>
18 
19 namespace makAudio
20 {
21  class DtSound;
22 }
23 
24 namespace makVrv
25 {
26  class DtDe;
27  class DtSoundPositionTickable;
28 
30  {
31  public:
32  DtSoundObject(DtDe& de, DtUniqueID id);
33  virtual ~DtSoundObject();
34 
35  void realize(std::string filename, float decibels, bool is3d, bool isLooping, makAudio::DtAbstractAudio::Priority priority);
36  void setAttachedEntity(std::string networkId);
37 
38  void play();
39  void pause();
40  void stop();
41 
42  void setRelativePosition(bool relative);
43  void setPosition(DtVector pos);
44  void setVelocity(DtVector vel);
45 
46  bool shouldPlaySound();
47 
48  protected:
52 
53  makAudio::DtSound* mySound;
55  };
56 }

Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)