Fixed bug. Sound not longer always in origin.

This commit is contained in:
Stiffly
2014-05-27 06:05:47 +02:00
parent 62adbdb2c8
commit 7e995fc8b7
4 changed files with 39 additions and 37 deletions
+2 -2
View File
@@ -37,7 +37,7 @@ private:
bool PlayASound(const Events::PlaySound &event);
void LoadSound(FMOD_SOUND*&, std::string, float, float);
void PlaySound(FMOD_CHANNEL*, FMOD_SOUND*, float volume, bool loop);
void PlaySound(FMOD_CHANNEL**, FMOD_SOUND*, float volume, bool loop);
FMOD_SYSTEM* m_System;
std::vector<EntityID> m_Listeners;
@@ -46,7 +46,7 @@ private:
std::map<EntityID, FMOD_SOUND*> m_Sounds;
std::map<EntityID, FMOD_SOUND*> m_DeleteSounds;
std::shared_ptr<Systems::TransformSystem> m_TransformSystem;
};
}