Uses an enumerator to seperate 3D and 2D sound instead of the path name.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user