VR-Forces 4.6.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
include
vrvAudioCommon
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
12
#include <
vrvAudioCommon/vrvAudioCommon.h
>
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
29
class
DT_DLL_VRVAUDIOCOMMON
DtSoundObject
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
:
49
DtDe
&
myDe
;
50
DtUniqueID
myId
;
51
DtUniqueID
myAttachedSceneObjectId
;
52
53
makAudio::DtSound*
mySound
;
54
DtSoundPositionTickable
*
myTickable
;
55
};
56
}
Document ID: Generated on Wed Jul 25 16:57:45 EDT 2018 from SVN revision 190790
Copyright © 2005-2018 VT MÄK. All Rights Reserved (
www.mak.com
)