31 #include "Utilities/Math/Math.h" 32 #include "Platform/AudioAPI.h" 33 #include "Utilities/ECS/Component.h" 43 float currentVolume = 1.0f;
44 float currentSpeed = 1.0f;
45 Vector3 velocity = MakeVector3(0.0f);
46 Vector3 direction = MakeVector3(0.0f, 0.0f, 1.0f);
47 float outerAngleVolume = 0.0f;
48 float outerAngle = 360.0f;
49 float innerAngle = 360.0f;
50 float rollofFactor = 1.0f;
51 float referenceDistance = 1.0f;
52 bool isLooping =
false;
53 bool isPlaying =
false;
54 bool isRelative =
false;
70 void SetVolume(
float volume);
71 void SetLooping(
bool value);
72 void SetRelative(
bool value);
73 void SetPlaybackSpeed(
float speed);
74 void SetVelocity(
const Vector3& velocity);
75 void SetDirection(
const Vector3& direction);
76 void SetOuterAngle(
float angle);
77 void SetInnerAngle(
float angle);
78 void SetOuterAngleVolume(
float volume);
79 void SetRollofFactor(
float factor);
80 void SetReferenceDistance(
float distance);
81 void MakeOmnidirectional();
82 bool IsOmnidirectional()
const;
83 bool IsLooping()
const;
84 bool IsPlaying()
const;
85 bool IsRelative()
const;
86 float GetVolume()
const;
87 float GetSpeed()
const;
88 float GetOuterAngleVolume()
const;
89 float GetOuterAngle()
const;
90 float GetInnerAngle()
const;
91 const Vector3& GetVelocity()
const;
92 const Vector3& GetDirection()
const;
93 float GetRollofFactor()
const;
94 float GetReferenceDistance()
const;
Definition: AbstractFactory.h:61
Definition: AudioSource.h:37
Definition: Application.cpp:49