attenuation on sound

This commit is contained in:
Adam
2014-03-11 03:34:49 +01:00
parent 57e2e404bc
commit a7aad7679d
3 changed files with 11 additions and 12 deletions
+3 -4
View File
@@ -23,11 +23,10 @@ public:
void UpdateEntity(double dt, EntityID entity, EntityID parent) override;
void OnComponentCreated(std::string type, std::shared_ptr<Component> component) override;
void PlaySound(std::shared_ptr<Components::SoundEmitter> emitter, std::string fileName);
ALuint LoadFile(std::string fileName);
ALuint CreateSource();
private:
ALCcontext* context;
ALuint LoadFile(std::string fileName);
ALuint CreateSource();
//File-info
char type[4];
@@ -37,7 +36,7 @@ private:
short bytesPerSample, bitsPerSample;
DWORD dataSize;
std::map<Component*, ALuint> m_Source;
std::map<std::string, ALuint> m_BufferCache; // string = fileName
};