Making use of Doppler effect. Added a bunch of events: Pause, stop, continue, variations of play.

This commit is contained in:
stiffly
2016-01-11 17:52:27 +01:00
parent 3cce9f8075
commit f80ad1377b
13 changed files with 296 additions and 54 deletions
+21
View File
@@ -0,0 +1,21 @@
#ifndef Events_PlaySoundOnEntity_h__
#define Events_PlaySoundOnEntity_h__
#include <string>
#include "Core/Entity.h"
#include "Core/Event.h"
namespace Events
{
// Plays a sound on an entity with a SoundEmitter component attached.
// Sound behavior is thereby specified in the SoundEmitter component.
struct PlaySoundOnEntity : public Event
{
EntityID EmitterID = 0;
std::string FilePath = "";
};
}
#endif