Uses an enumerator to seperate 3D and 2D sound instead of the path name.

This commit is contained in:
Stiffly
2014-05-29 21:25:21 +02:00
parent 03d6594f9a
commit 2ec484c906
5 changed files with 17 additions and 36 deletions
+5 -4
View File
@@ -7,14 +7,15 @@
namespace Components
{
struct SoundEmitter : Component
{
enum SoundType
enum class SoundType
{
BGM_SOUND,
SFX_SOUND
SOUND_3D,
SOUND_2D
};
SoundEmitter() : Gain(1.f), MaxDistance(1.f), MinDistance(1.f), Pitch(1.f), Loop(false) {}
float Gain;
float MaxDistance;