Added logic for 3D sound
This commit is contained in:
@@ -25,13 +25,23 @@ public:
|
||||
void Initialize() override;
|
||||
void Update(double dt) override;
|
||||
void UpdateEntity(double dt, EntityID entity, EntityID parent) override;
|
||||
//void OnComponentCreated(std::string type, std::shared_ptr<Component> component) override;
|
||||
void OnComponentCreated(std::string type, std::shared_ptr<Component> component) override;
|
||||
|
||||
FMOD::System *m_FmodSystem;
|
||||
|
||||
private:
|
||||
// Events
|
||||
EventRelay<Events::PlaySound> m_EPlaySound;
|
||||
|
||||
bool LoadSound(std::string filePath);
|
||||
void PlaySound(FMOD_CHANNEL*, float volume, bool loop);
|
||||
std::vector<EntityID> m_Listeners;
|
||||
FMOD_SYSTEM* m_System;
|
||||
FMOD_CHANNELGROUP* m_ChannelGruoup;
|
||||
std::map<EntityID, FMOD_CHANNEL*> m_Channels;
|
||||
|
||||
FMOD_SOUND* m_Sound; //Temp
|
||||
bool m_Playing; //TEMP
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user