Separated PlaySound into PlaySFX and PlayBGM.

This commit is contained in:
Stiffly
2014-05-28 22:06:26 +02:00
parent 1a043ab411
commit 1b2f930afa
13 changed files with 87 additions and 27 deletions
+6
View File
@@ -10,6 +10,11 @@ namespace Components
struct SoundEmitter : Component
{
enum SoundType
{
BGM_SOUND,
SFX_SOUND
};
SoundEmitter() : Gain(1.f), MaxDistance(1.f), MinDistance(1.f), Pitch(1.f), Loop(false) {}
float Gain;
float MaxDistance;
@@ -17,6 +22,7 @@ struct SoundEmitter : Component
float Pitch;
bool Loop;
std::string Path;
SoundType type;
virtual SoundEmitter* Clone() const override { return new SoundEmitter(*this); }
};